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

Unified Diff: content/browser/tab_contents/navigation_entry.h

Issue 7453053: history: use display title, not page title (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: const Created 9 years, 5 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/history/history_tab_helper.cc ('k') | content/browser/tab_contents/navigation_entry.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/tab_contents/navigation_entry.h
diff --git a/content/browser/tab_contents/navigation_entry.h b/content/browser/tab_contents/navigation_entry.h
index 6cdce325998f698987554fb4a2bd6d3c1dde4839..a43eba92af5ab51ea957ca4c75d3b8f0c9b6f38c 100644
--- a/content/browser/tab_contents/navigation_entry.h
+++ b/content/browser/tab_contents/navigation_entry.h
@@ -324,7 +324,7 @@ class NavigationEntry {
// the page if it is available or the URL. |languages| is the list of
// accpeted languages (e.g., prefs::kAcceptLanguages) or empty if proper
// URL formatting isn't needed (e.g., unit tests).
- const string16& GetTitleForDisplay(const std::string& languages);
+ const string16& GetTitleForDisplay(const std::string& languages) const;
// Returns true if the current tab is in view source mode. This will be false
// if there is no navigation.
@@ -421,7 +421,7 @@ class NavigationEntry {
// us from having to do URL formatting on the URL evey time the title is
// displayed. When the URL, virtual URL, or title is set, this should be
// cleared to force a refresh.
- string16 cached_display_title_;
+ mutable string16 cached_display_title_;
// Copy and assignment is explicitly allowed for this class.
};
« no previous file with comments | « chrome/browser/history/history_tab_helper.cc ('k') | content/browser/tab_contents/navigation_entry.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698