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

Side by Side Diff: chrome/browser/ui/views/toolbar/origin_chip_view.cc

Issue 149643010: Cleanup: Move kChromeUIScheme constant into content namespace. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 10 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
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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/ui/views/toolbar/origin_chip_view.h" 5 #include "chrome/browser/ui/views/toolbar/origin_chip_view.h"
6 6
7 #include "base/files/file_path.h" 7 #include "base/files/file_path.h"
8 #include "base/metrics/histogram.h" 8 #include "base/metrics/histogram.h"
9 #include "base/strings/string_util.h" 9 #include "base/strings/string_util.h"
10 #include "base/strings/utf_string_conversions.h" 10 #include "base/strings/utf_string_conversions.h"
(...skipping 209 matching lines...) Expand 10 before | Expand all | Expand 10 after
220 host_label_->SetText(host); 220 host_label_->SetText(host);
221 host_label_->SetTooltipText(host); 221 host_label_->SetTooltipText(host);
222 host_label_->SetBackgroundColor(label_background); 222 host_label_->SetBackgroundColor(label_background);
223 host_label_->SetElideBehavior(views::Label::NO_ELIDE); 223 host_label_->SetElideBehavior(views::Label::NO_ELIDE);
224 224
225 int icon = toolbar_view_->GetToolbarModel()->GetIconForSecurityLevel( 225 int icon = toolbar_view_->GetToolbarModel()->GetIconForSecurityLevel(
226 security_level_); 226 security_level_);
227 showing_16x16_icon_ = false; 227 showing_16x16_icon_ = false;
228 228
229 if (url_displayed_.is_empty() || 229 if (url_displayed_.is_empty() ||
230 url_displayed_.SchemeIs(chrome::kChromeUIScheme)) { 230 url_displayed_.SchemeIs(content::kChromeUIScheme)) {
231 icon = IDR_PRODUCT_LOGO_16; 231 icon = IDR_PRODUCT_LOGO_16;
232 showing_16x16_icon_ = true; 232 showing_16x16_icon_ = true;
233 } 233 }
234 234
235 location_icon_view_->SetImage(GetThemeProvider()->GetImageSkiaNamed(icon)); 235 location_icon_view_->SetImage(GetThemeProvider()->GetImageSkiaNamed(icon));
236 236
237 if (url_displayed_.SchemeIs(extensions::kExtensionScheme)) { 237 if (url_displayed_.SchemeIs(extensions::kExtensionScheme)) {
238 icon = IDR_EXTENSIONS_FAVICON; 238 icon = IDR_EXTENSIONS_FAVICON;
239 showing_16x16_icon_ = true; 239 showing_16x16_icon_ = true;
240 location_icon_view_->SetImage(GetThemeProvider()->GetImageSkiaNamed(icon)); 240 location_icon_view_->SetImage(GetThemeProvider()->GetImageSkiaNamed(icon));
(...skipping 137 matching lines...) Expand 10 before | Expand all | Expand 10 after
378 378
379 // Note: When OnSafeBrowsingHit would be called, OnSafeBrowsingMatch will 379 // Note: When OnSafeBrowsingHit would be called, OnSafeBrowsingMatch will
380 // have already been called. 380 // have already been called.
381 void OriginChipView::OnSafeBrowsingHit( 381 void OriginChipView::OnSafeBrowsingHit(
382 const SafeBrowsingUIManager::UnsafeResource& resource) {} 382 const SafeBrowsingUIManager::UnsafeResource& resource) {}
383 383
384 void OriginChipView::OnSafeBrowsingMatch( 384 void OriginChipView::OnSafeBrowsingMatch(
385 const SafeBrowsingUIManager::UnsafeResource& resource) { 385 const SafeBrowsingUIManager::UnsafeResource& resource) {
386 OnChanged(); 386 OnChanged();
387 } 387 }
OLDNEW
« no previous file with comments | « chrome/browser/ui/toolbar/toolbar_model_impl.cc ('k') | chrome/browser/ui/website_settings/website_settings.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698