Replace NOTREACHED() with DCHECK(false) (fixes #3500)

Restores the old behavior of assertion in Debug build only.
This commit is contained in:
Marshall Greenblatt
2023-05-08 18:22:46 +03:00
parent 153b1862fa
commit 4dbecb3301
88 changed files with 389 additions and 389 deletions

View File

@@ -35,7 +35,7 @@ const char* GetTypeString(base::Value::Type type) {
return "LIST";
}
NOTREACHED();
DCHECK(false);
return "UNKNOWN";
}

View File

@@ -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);
}
}

View File

@@ -196,7 +196,7 @@ blink::mojom::PreferredColorScheme ToBlinkPreferredColorScheme(
return blink::mojom::PreferredColorScheme::kLight;
}
NOTREACHED();
DCHECK(false);
}
// From chrome/browser/chrome_content_browser_client.cc