Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(20)

Unified Diff: chrome/browser/tab_contents/chrome_web_contents_view_delegate_win.cc

Issue 9733025: NULL check GetFocusManager() before using it in ChromeWebContentsViewDelegateWin::StoreFocus(). (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 8 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/tab_contents/chrome_web_contents_view_delegate_win.cc
===================================================================
--- chrome/browser/tab_contents/chrome_web_contents_view_delegate_win.cc (revision 127433)
+++ chrome/browser/tab_contents/chrome_web_contents_view_delegate_win.cc (working copy)
@@ -81,6 +81,8 @@
if (view_storage->RetrieveView(last_focused_view_storage_id_) != NULL)
view_storage->RemoveView(last_focused_view_storage_id_);
+ if (!GetFocusManager())
+ return;
views::View* focused_view = GetFocusManager()->GetFocusedView();
if (focused_view)
view_storage->StoreView(last_focused_view_storage_id_, focused_view);
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698