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

Unified Diff: components/toolbar/toolbar_model_impl.cc

Issue 2555063003: Render extension URLs with chips (Closed)
Patch Set: Enlarge the window so that it's over the minimum window size Created 4 years 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: components/toolbar/toolbar_model_impl.cc
diff --git a/components/toolbar/toolbar_model_impl.cc b/components/toolbar/toolbar_model_impl.cc
index b57c64b61b7cc07dcb266ece768765c20f974016..fc876b0d7fbf9e55a70ebe36c80d6f6ea58fc03e 100644
--- a/components/toolbar/toolbar_model_impl.cc
+++ b/components/toolbar/toolbar_model_impl.cc
@@ -69,6 +69,9 @@ security_state::SecurityLevel ToolbarModelImpl::GetSecurityLevel(
gfx::VectorIconId ToolbarModelImpl::GetVectorIcon() const {
#if !defined(OS_ANDROID) && !defined(OS_IOS)
+ if (GetURL().SchemeIs("chrome-extension")) {
Peter Kasting 2016/12/14 22:47:07 Nit: No {}
meacer 2016/12/16 18:46:18 Done.
+ return gfx::VectorIconId::EXTENSION;
+ }
switch (GetSecurityLevel(false)) {
case security_state::NONE:
case security_state::HTTP_SHOW_WARNING:

Powered by Google App Engine
This is Rietveld 408576698