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

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

Issue 164198: Merge 21961 - The focus would be messedup when reloading a crashed tab, also ... (Closed) Base URL: svn://chrome-svn/chrome/branches/195/src/
Patch Set: Created 11 years, 4 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 | « chrome/browser/browser_focus_uitest.cc ('k') | chrome/browser/views/tab_contents/tab_contents_view_win.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/tab_contents/tab_contents.cc
===================================================================
--- chrome/browser/tab_contents/tab_contents.cc (revision 22808)
+++ chrome/browser/tab_contents/tab_contents.cc (working copy)
@@ -1771,7 +1771,13 @@
}
NotifyConnected();
+ bool was_crashed = is_crashed();
SetIsCrashed(false);
+
+ // Restore the focus to the tab (otherwise the focus will be on the top
+ // window).
+ if (was_crashed && !FocusLocationBarByDefault())
+ Focus();
}
void TabContents::RenderViewGone(RenderViewHost* rvh) {
Property changes on: chrome\browser\tab_contents\tab_contents.cc
___________________________________________________________________
Modified: svn:mergeinfo
Merged /trunk/src/chrome/browser/tab_contents/tab_contents.cc:r21961
« no previous file with comments | « chrome/browser/browser_focus_uitest.cc ('k') | chrome/browser/views/tab_contents/tab_contents_view_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698