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

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

Issue 6973047: Fix to reload He's Dead Jim page when navigating through windows (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years, 7 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/ui/browser.h ('k') | chrome/browser/ui/views/frame/browser_view.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/browser.cc
diff --git a/chrome/browser/ui/browser.cc b/chrome/browser/ui/browser.cc
index cb03148a28227c154e34708e540bba00a05f2396..75c0af8445f98add0433622b358a25edcc30d541 100644
--- a/chrome/browser/ui/browser.cc
+++ b/chrome/browser/ui/browser.cc
@@ -972,6 +972,19 @@ void Browser::OnWindowClosing() {
CloseAllTabs();
}
+void Browser::OnWindowActivated() {
+ // On some platforms we want to automatically reload tabs that are
+ // killed when the user selects them.
+ TabContents* contents = GetSelectedTabContents();
+ if (contents && contents->crashed_status() ==
+ base::TERMINATION_STATUS_PROCESS_WAS_KILLED) {
+ if (CommandLine::ForCurrentProcess()->HasSwitch(
+ switches::kReloadKilledTabs)) {
+ Reload(CURRENT_TAB);
+ }
+ }
+}
+
////////////////////////////////////////////////////////////////////////////////
// In-progress download termination handling:
« no previous file with comments | « chrome/browser/ui/browser.h ('k') | chrome/browser/ui/views/frame/browser_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698