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: |