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

Unified Diff: components/toolbar/test_toolbar_model.h

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/BUILD.gn ('k') | components/toolbar/test_toolbar_model.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/toolbar/test_toolbar_model.h
diff --git a/components/toolbar/test_toolbar_model.h b/components/toolbar/test_toolbar_model.h
index a1e2c98fc14e7e0826b680d0ce06df6a771cc5b9..255ac00f63c1c8aab10b4a152a6c821de2e2e465 100644
--- a/components/toolbar/test_toolbar_model.h
+++ b/components/toolbar/test_toolbar_model.h
@@ -25,7 +25,7 @@ class TestToolbarModel : public ToolbarModel {
~TestToolbarModel() override;
base::string16 GetFormattedURL(size_t* prefix_end) const override;
GURL GetURL() const override;
- security_state::SecurityStateModel::SecurityLevel GetSecurityLevel(
+ security_state::SecurityLevel GetSecurityLevel(
bool ignore_editing) const override;
gfx::VectorIconId GetVectorIcon() const override;
base::string16 GetSecureVerboseText() const override;
@@ -33,9 +33,8 @@ class TestToolbarModel : public ToolbarModel {
bool ShouldDisplayURL() const override;
void set_text(const base::string16& text) { text_ = text; }
- void set_url(const GURL& url) { url_ = url;}
- void set_security_level(
- security_state::SecurityStateModel::SecurityLevel security_level) {
+ void set_url(const GURL& url) { url_ = url; }
+ void set_security_level(security_state::SecurityLevel security_level) {
security_level_ = security_level;
}
void set_icon(gfx::VectorIconId icon) { icon_ = icon; }
@@ -49,7 +48,7 @@ class TestToolbarModel : public ToolbarModel {
private:
base::string16 text_;
GURL url_;
- security_state::SecurityStateModel::SecurityLevel security_level_;
+ security_state::SecurityLevel security_level_;
gfx::VectorIconId icon_;
base::string16 ev_cert_name_;
bool should_display_url_;
« no previous file with comments | « components/toolbar/BUILD.gn ('k') | components/toolbar/test_toolbar_model.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698