mirror of
https://bitbucket.org/chromiumembedded/cef
synced 2025-06-05 21:39:12 +02:00
Replace NOTREACHED() with DCHECK(false) (fixes #3500)
Restores the old behavior of assertion in Debug build only.
This commit is contained in:
@@ -35,7 +35,7 @@ const char* GetTypeString(base::Value::Type type) {
|
||||
return "LIST";
|
||||
}
|
||||
|
||||
NOTREACHED();
|
||||
DCHECK(false);
|
||||
return "UNKNOWN";
|
||||
}
|
||||
|
||||
|
@@ -74,7 +74,7 @@ class CefPreferenceRegistrarImpl : public CefPreferenceRegistrar {
|
||||
} else if (impl_value.type() == base::Value::Type::LIST) {
|
||||
registry_->RegisterListPref(name, std::move(impl_value));
|
||||
} else {
|
||||
NOTREACHED();
|
||||
DCHECK(false);
|
||||
}
|
||||
}
|
||||
|
||||
|
@@ -196,7 +196,7 @@ blink::mojom::PreferredColorScheme ToBlinkPreferredColorScheme(
|
||||
return blink::mojom::PreferredColorScheme::kLight;
|
||||
}
|
||||
|
||||
NOTREACHED();
|
||||
DCHECK(false);
|
||||
}
|
||||
|
||||
// From chrome/browser/chrome_content_browser_client.cc
|
||||
|
Reference in New Issue
Block a user