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

Unified Diff: components/toolbar/test_toolbar_model.cc

Issue 2448943002: Refactor SecurityStateModel/Clients for simplicity and reusability. (Closed)
Patch Set: sync. Created 4 years, 1 month 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 4188361ce8936bbc97ab141ff678e3c0a96ca70f..eaadf8c3f5b5dc09333e498131533ada2fb829c3 100644
--- a/components/toolbar/test_toolbar_model.cc
+++ b/components/toolbar/test_toolbar_model.cc
@@ -7,7 +7,7 @@
#include "ui/gfx/vector_icons_public.h"
TestToolbarModel::TestToolbarModel()
- : security_level_(security_state::SecurityStateModel::NONE),
+ : security_level_(security_state::NONE),
#if defined(TOOLKIT_VIEWS)
icon_(gfx::VectorIconId::LOCATION_BAR_HTTP),
#else
@@ -26,8 +26,8 @@ GURL TestToolbarModel::GetURL() const {
return url_;
}
-security_state::SecurityStateModel::SecurityLevel
-TestToolbarModel::GetSecurityLevel(bool ignore_editing) const {
+security_state::SecurityLevel TestToolbarModel::GetSecurityLevel(
+ bool ignore_editing) const {
return security_level_;
}
@@ -40,9 +40,8 @@ base::string16 TestToolbarModel::GetSecureVerboseText() const {
}
base::string16 TestToolbarModel::GetEVCertName() const {
- return (security_level_ == security_state::SecurityStateModel::EV_SECURE)
- ? ev_cert_name_
- : base::string16();
+ return (security_level_ == security_state::EV_SECURE) ? ev_cert_name_
+ : base::string16();
}
bool TestToolbarModel::ShouldDisplayURL() 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