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

Unified Diff: chrome/browser/ui/toolbar/toolbar_model_impl.h

Issue 1138473003: Revert of Move SecurityLevel into a class of its own (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 7 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 | « chrome/browser/ui/toolbar/toolbar_model.h ('k') | chrome/browser/ui/toolbar/toolbar_model_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/toolbar/toolbar_model_impl.h
diff --git a/chrome/browser/ui/toolbar/toolbar_model_impl.h b/chrome/browser/ui/toolbar/toolbar_model_impl.h
index 0bea04547653ca6e755339fa0c8e684e903774e4..0291cf38abc3a677b9d93734f17c36d3f852c4f6 100644
--- a/chrome/browser/ui/toolbar/toolbar_model_impl.h
+++ b/chrome/browser/ui/toolbar/toolbar_model_impl.h
@@ -33,6 +33,9 @@
explicit ToolbarModelImpl(ToolbarModelDelegate* delegate);
~ToolbarModelImpl() override;
+ static SecurityLevel GetSecurityLevelForWebContents(
+ content::WebContents* web_contents);
+
private:
// ToolbarModel:
base::string16 GetText() const override;
@@ -40,11 +43,9 @@
base::string16 GetCorpusNameForMobile() const override;
GURL GetURL() const override;
bool WouldPerformSearchTermReplacement(bool ignore_editing) const override;
- ConnectionSecurityHelper::SecurityLevel GetSecurityLevel(
- bool ignore_editing) const override;
+ SecurityLevel GetSecurityLevel(bool ignore_editing) const override;
int GetIcon() const override;
- int GetIconForSecurityLevel(
- ConnectionSecurityHelper::SecurityLevel level) const override;
+ int GetIconForSecurityLevel(SecurityLevel level) const override;
base::string16 GetEVCertName() const override;
bool ShouldDisplayURL() const override;
« no previous file with comments | « chrome/browser/ui/toolbar/toolbar_model.h ('k') | chrome/browser/ui/toolbar/toolbar_model_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698