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

Unified Diff: chrome/browser/tab_contents/navigation_entry.cc

Issue 164383: Renames the NavigationEntry::display_url() to virtual_url().... (Closed) Base URL: http://src.chromium.org/svn/trunk/src/
Patch Set: '' Created 11 years, 4 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
Index: chrome/browser/tab_contents/navigation_entry.cc
===================================================================
--- chrome/browser/tab_contents/navigation_entry.cc (revision 23341)
+++ chrome/browser/tab_contents/navigation_entry.cc (working copy)
@@ -74,15 +74,15 @@
if (!cached_display_title_.empty())
return cached_display_title_;
- // Use the display URL first if any, and fall back on using the real URL.
+ // Use the virtual URL first if any, and fall back on using the real URL.
std::wstring languages;
if (navigation_controller) {
languages = navigation_controller->profile()->GetPrefs()->GetString(
prefs::kAcceptLanguages);
}
- if (!display_url_.is_empty()) {
+ if (!virtual_url_.is_empty()) {
cached_display_title_ = WideToUTF16Hack(net::FormatUrl(
- display_url_, languages));
+ virtual_url_, languages));
} else if (!url_.is_empty()) {
cached_display_title_ = WideToUTF16Hack(net::FormatUrl(url_, languages));
}
@@ -90,5 +90,5 @@
}
bool NavigationEntry::IsViewSourceMode() const {
- return display_url_.SchemeIs(chrome::kViewSourceScheme);
+ return virtual_url_.SchemeIs(chrome::kViewSourceScheme);
}
« no previous file with comments | « chrome/browser/tab_contents/navigation_entry.h ('k') | chrome/browser/tab_contents/navigation_entry_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698