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

Unified Diff: components/toolbar/test_toolbar_model.cc

Issue 2644903004: Move around more vector icons. (Closed)
Patch Set: fix comment Created 3 years, 11 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
« no previous file with comments | « components/toolbar/test_toolbar_model.h ('k') | components/toolbar/toolbar_model.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/toolbar/test_toolbar_model.cc
diff --git a/components/toolbar/test_toolbar_model.cc b/components/toolbar/test_toolbar_model.cc
index eaadf8c3f5b5dc09333e498131533ada2fb829c3..cebc76cc2a08b6500329cafaa1f7b71b1d44cfdc 100644
--- a/components/toolbar/test_toolbar_model.cc
+++ b/components/toolbar/test_toolbar_model.cc
@@ -4,14 +4,14 @@
#include "components/toolbar/test_toolbar_model.h"
-#include "ui/gfx/vector_icons_public.h"
+#if defined(TOOLKIT_VIEWS)
+#include "components/toolbar/vector_icons.h" // nogncheck
+#endif
TestToolbarModel::TestToolbarModel()
: security_level_(security_state::NONE),
#if defined(TOOLKIT_VIEWS)
- icon_(gfx::VectorIconId::LOCATION_BAR_HTTP),
-#else
- icon_(gfx::VectorIconId::VECTOR_ICON_NONE),
+ icon_(&toolbar::kHttpIcon),
#endif
should_display_url_(true) {
}
@@ -31,8 +31,8 @@ security_state::SecurityLevel TestToolbarModel::GetSecurityLevel(
return security_level_;
}
-gfx::VectorIconId TestToolbarModel::GetVectorIcon() const {
- return icon_;
+const gfx::VectorIcon& TestToolbarModel::GetVectorIcon() const {
+ return *icon_;
}
base::string16 TestToolbarModel::GetSecureVerboseText() const {
« no previous file with comments | « components/toolbar/test_toolbar_model.h ('k') | components/toolbar/toolbar_model.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698