Chromium Code Reviews| Index: chrome/views/view.cc |
| =================================================================== |
| --- chrome/views/view.cc (revision 10504) |
| +++ chrome/views/view.cc (working copy) |
| @@ -1172,7 +1172,9 @@ |
| restore_focus_view_task_ = NULL; |
| should_restore_focus_ = false; |
| - GetFocusManager()->RestoreFocusedView(); |
| + FocusManager* focus_manager = GetFocusManager(); |
| + if (focus_manager) |
| + focus_manager->RestoreFocusedView(); |
| } |
| // static |