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

Side by Side Diff: chrome/browser/toolbar_model.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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « chrome/browser/tab_contents/tab_contents.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "chrome/browser/toolbar_model.h" 5 #include "chrome/browser/toolbar_model.h"
6 6
7 #include "app/l10n_util.h" 7 #include "app/l10n_util.h"
8 #include "chrome/browser/cert_store.h" 8 #include "chrome/browser/cert_store.h"
9 #include "chrome/browser/profile.h" 9 #include "chrome/browser/profile.h"
10 #include "chrome/browser/ssl/ssl_error_info.h" 10 #include "chrome/browser/ssl/ssl_error_info.h"
(...skipping 20 matching lines...) Expand all
31 NavigationController* navigation_controller = GetNavigationController(); 31 NavigationController* navigation_controller = GetNavigationController();
32 if (navigation_controller) { 32 if (navigation_controller) {
33 languages = navigation_controller->profile()->GetPrefs()->GetString( 33 languages = navigation_controller->profile()->GetPrefs()->GetString(
34 prefs::kAcceptLanguages); 34 prefs::kAcceptLanguages);
35 NavigationEntry* entry = navigation_controller->GetActiveEntry(); 35 NavigationEntry* entry = navigation_controller->GetActiveEntry();
36 // We may not have a navigation entry yet 36 // We may not have a navigation entry yet
37 if (!navigation_controller->tab_contents()->ShouldDisplayURL()) { 37 if (!navigation_controller->tab_contents()->ShouldDisplayURL()) {
38 // Explicitly hide the URL for this tab. 38 // Explicitly hide the URL for this tab.
39 url = GURL(); 39 url = GURL();
40 } else if (entry) { 40 } else if (entry) {
41 url = entry->display_url(); 41 url = entry->virtual_url();
42 } 42 }
43 } 43 }
44 return net::FormatUrl(url, languages, true, UnescapeRule::NORMAL, NULL, NULL); 44 return net::FormatUrl(url, languages, true, UnescapeRule::NORMAL, NULL, NULL);
45 } 45 }
46 46
47 ToolbarModel::SecurityLevel ToolbarModel::GetSecurityLevel() { 47 ToolbarModel::SecurityLevel ToolbarModel::GetSecurityLevel() {
48 if (input_in_progress_) // When editing, assume no security style. 48 if (input_in_progress_) // When editing, assume no security style.
49 return ToolbarModel::NORMAL; 49 return ToolbarModel::NORMAL;
50 50
51 NavigationController* navigation_controller = GetNavigationController(); 51 NavigationController* navigation_controller = GetNavigationController();
(...skipping 158 matching lines...) Expand 10 before | Expand all | Expand 10 after
210 // Multiple errors. 210 // Multiple errors.
211 text->assign(l10n_util::GetString(IDS_SEVERAL_SSL_ERRORS)); 211 text->assign(l10n_util::GetString(IDS_SEVERAL_SSL_ERRORS));
212 text->append(L"\n"); 212 text->append(L"\n");
213 for (int i = 0; i < error_count; ++i) { 213 for (int i = 0; i < error_count; ++i) {
214 text->append(errors[i].short_description()); 214 text->append(errors[i].short_description());
215 if (i != error_count - 1) 215 if (i != error_count - 1)
216 text->append(L"\n"); 216 text->append(L"\n");
217 } 217 }
218 } 218 }
219 } 219 }
OLDNEW
« no previous file with comments | « chrome/browser/tab_contents/tab_contents.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698