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:
@@ -175,7 +175,7 @@ ui::ImeTextSpan::UnderlineStyle GetImeUnderlineStyle(
|
||||
return ui::ImeTextSpan::UnderlineStyle::kNone;
|
||||
}
|
||||
|
||||
NOTREACHED();
|
||||
DCHECK(false);
|
||||
return ui::ImeTextSpan::UnderlineStyle::kSolid;
|
||||
}
|
||||
|
||||
@@ -489,7 +489,7 @@ CefRenderWidgetHostViewOSR::GetDisplayFeature() {
|
||||
|
||||
void CefRenderWidgetHostViewOSR::SetDisplayFeatureForTesting(
|
||||
const content::DisplayFeature* display_feature) {
|
||||
NOTREACHED();
|
||||
DCHECK(false);
|
||||
}
|
||||
|
||||
blink::mojom::PointerLockResult CefRenderWidgetHostViewOSR::LockMouse(
|
||||
@@ -904,7 +904,7 @@ void CefRenderWidgetHostViewOSR::NotifyHostAndDelegateOnWasShown(
|
||||
blink::mojom::RecordContentToVisibleTimeRequestPtr visible_time_request) {
|
||||
// We don't call RenderWidgetHostViewBase::OnShowWithPageVisibility, so this
|
||||
// method should not be called.
|
||||
NOTREACHED();
|
||||
DCHECK(false);
|
||||
}
|
||||
|
||||
void CefRenderWidgetHostViewOSR::
|
||||
@@ -913,14 +913,14 @@ void CefRenderWidgetHostViewOSR::
|
||||
visible_time_request) {
|
||||
// We don't call RenderWidgetHostViewBase::OnShowWithPageVisibility, so this
|
||||
// method should not be called.
|
||||
NOTREACHED();
|
||||
DCHECK(false);
|
||||
}
|
||||
|
||||
void CefRenderWidgetHostViewOSR::
|
||||
CancelSuccessfulPresentationTimeRequestForHostAndDelegate() {
|
||||
// We don't call RenderWidgetHostViewBase::OnShowWithPageVisibility, so this
|
||||
// method should not be called.
|
||||
NOTREACHED();
|
||||
DCHECK(false);
|
||||
}
|
||||
|
||||
std::unique_ptr<content::SyntheticGestureTarget>
|
||||
|
Reference in New Issue
Block a user