summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorpfeldman@chromium.org <pfeldman@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-12-18 21:03:29 +0000
committerpfeldman@chromium.org <pfeldman@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-12-18 21:03:29 +0000
commitcd3d50d691726ab143e47567a8e1f382f9e2996c (patch)
treebc8d8c14e16fa175f136ac4d9ffd955e1d6f6642
parent4c474f17efb98227045c64ed3b96f031ab88d2a0 (diff)
downloadchromium_src-cd3d50d691726ab143e47567a8e1f382f9e2996c.zip
chromium_src-cd3d50d691726ab143e47567a8e1f382f9e2996c.tar.gz
chromium_src-cd3d50d691726ab143e47567a8e1f382f9e2996c.tar.bz2
View source page's title isn't distiuishable from normal page's title.
BUG=67439 TBR=yurys git-svn-id: svn://svn.chromium.org/chrome/trunk/src@69655 0039d316-1c4b-4281-b951-d872f2087c98
-rw-r--r--chrome/browser/ui/browser.cc2
1 files changed, 2 insertions, 0 deletions
diff --git a/chrome/browser/ui/browser.cc b/chrome/browser/ui/browser.cc
index 89d6e49..f3e8cbb7 100644
--- a/chrome/browser/ui/browser.cc
+++ b/chrome/browser/ui/browser.cc
@@ -4169,6 +4169,8 @@ void Browser::ViewSource(TabContentsWrapper* contents) {
GURL url = GURL(chrome::kViewSourceScheme + std::string(":") +
active_entry->url().spec());
active_entry->set_virtual_url(url);
+ // Do not restore title, derive it from the url.
+ active_entry->set_title(string16());
InsertContentsDupe(contents, view_source_contents);
}