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

Unified Diff: components/toolbar/toolbar_model_impl.cc

Issue 2555063003: Render extension URLs with chips (Closed)
Patch Set: Chip -> text 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
« no previous file with comments | « chrome/test/data/extensions/api_test/window_update/resize/test.js ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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..b51addad3042fb8068ed7f4f2e4f74a63cb52ea9 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"))
+ return gfx::VectorIconId::EXTENSION;
+
switch (GetSecurityLevel(false)) {
case security_state::NONE:
case security_state::HTTP_SHOW_WARNING:
« no previous file with comments | « chrome/test/data/extensions/api_test/window_update/resize/test.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698