summaryrefslogtreecommitdiffstats
path: root/chrome
diff options
context:
space:
mode:
Diffstat (limited to 'chrome')
-rw-r--r--chrome/views/view.cc5
1 files changed, 4 insertions, 1 deletions
diff --git a/chrome/views/view.cc b/chrome/views/view.cc
index c7bb123..d435ddb 100644
--- a/chrome/views/view.cc
+++ b/chrome/views/view.cc
@@ -1172,7 +1172,10 @@ void View::RestoreFloatingViewFocus() {
restore_focus_view_task_ = NULL;
should_restore_focus_ = false;
- GetFocusManager()->RestoreFocusedView();
+ FocusManager* focus_manager = GetFocusManager();
+ DCHECK(focus_manager);
+ if (focus_manager)
+ focus_manager->RestoreFocusedView();
}
// static