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

Unified Diff: components/security_state/core/security_state_ui.h

Issue 2574733003: Introduce security_state::ShouldAlwaysShowIcon() for mobile omnibox calculations. (Closed)
Patch Set: Fix code and add comment. 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 | « components/security_state/core/BUILD.gn ('k') | components/security_state/core/security_state_ui.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/security_state/core/security_state_ui.h
diff --git a/components/security_state/core/security_state_ui.h b/components/security_state/core/security_state_ui.h
new file mode 100644
index 0000000000000000000000000000000000000000..035091f7789db735fce998d754b599551b766783
--- /dev/null
+++ b/components/security_state/core/security_state_ui.h
@@ -0,0 +1,21 @@
+// Copyright 2016 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef COMPONENTS_SECURITY_STATE_SECURITY_STATE_UI_H_
+#define COMPONENTS_SECURITY_STATE_SECURITY_STATE_UI_H_
+
+#include "components/security_state/core/security_state.h"
+
+// Provides helper methods that encapsulate platform-independent security UI
+// logic.
+namespace security_state {
+
+// On some (mobile) form factors, the security indicator icon is hidden to save
+// UI space. This returns whether the icon should always be shown for the given
+// |security_level|, i.e. whether to override the hiding behaviour.
+bool ShouldAlwaysShowIcon(SecurityLevel security_level);
+
+} // namespace security_state
+
+#endif // COMPONENTS_SECURITY_STATE_SECURITY_STATE_UI_H_
« no previous file with comments | « components/security_state/core/BUILD.gn ('k') | components/security_state/core/security_state_ui.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698