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

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

Issue 7014032: Reload a crashed singleton tab when trying to navigate to it. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Add a browser test 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 | « no previous file | chrome/browser/ui/browser_navigator_browsertest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/browser_navigator.cc
diff --git a/chrome/browser/ui/browser_navigator.cc b/chrome/browser/ui/browser_navigator.cc
index 7fa393bf93c1bb054c3360b210fcfd87a2b3eef7..bac5a9315fc94c15d8a38233b0aa7469b226e124 100644
--- a/chrome/browser/ui/browser_navigator.cc
+++ b/chrome/browser/ui/browser_navigator.cc
@@ -509,7 +509,9 @@ void Navigate(NavigateParams* params) {
if (singleton_index >= 0) {
TabContents* target = params->browser->GetTabContentsAt(singleton_index);
- if (params->path_behavior == NavigateParams::IGNORE_AND_NAVIGATE &&
+ if (target->is_crashed()) {
+ target->controller().Reload(true);
+ } else if (params->path_behavior == NavigateParams::IGNORE_AND_NAVIGATE &&
target->GetURL() != params->url) {
target->controller().LoadURL(
params->url, params->referrer, params->transition);
« no previous file with comments | « no previous file | chrome/browser/ui/browser_navigator_browsertest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698