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

Unified Diff: chrome/browser/ui/cocoa/location_bar/location_bar_view_mac.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
Index: chrome/browser/ui/cocoa/location_bar/location_bar_view_mac.h
diff --git a/chrome/browser/ui/cocoa/location_bar/location_bar_view_mac.h b/chrome/browser/ui/cocoa/location_bar/location_bar_view_mac.h
index 14b3c7e9a848599869688c71132bdf217d54b7c5..2820b31f1a46d7e31e809de9b5597420eea9dab6 100644
--- a/chrome/browser/ui/cocoa/location_bar/location_bar_view_mac.h
+++ b/chrome/browser/ui/cocoa/location_bar/location_bar_view_mac.h
@@ -20,7 +20,7 @@
#include "chrome/browser/ui/omnibox/chrome_omnibox_edit_controller.h"
#include "components/content_settings/core/common/content_settings_types.h"
#include "components/prefs/pref_member.h"
-#include "components/security_state/security_state_model.h"
+#include "components/security_state/core/security_state.h"
#include "components/zoom/zoom_event_manager_observer.h"
@class AutocompleteTextField;
@@ -255,12 +255,10 @@ class LocationBarViewMac : public LocationBar,
void UpdateSecurityState(bool tab_changed);
// Returns true if the security state can animate for the |level|.
- bool CanAnimateSecurityLevel(
- security_state::SecurityStateModel::SecurityLevel level) const;
+ bool CanAnimateSecurityLevel(security_state::SecurityLevel level) const;
// Returns true if |level| is SECURE or EV_SECURE.
- bool IsSecureConnection(
- security_state::SecurityStateModel::SecurityLevel level) const;
+ bool IsSecureConnection(security_state::SecurityLevel level) const;
// Returns pointers to all of the LocationBarDecorations owned by this
// LocationBarViewMac. This helper function is used for positioning and
@@ -340,7 +338,7 @@ class LocationBarViewMac : public LocationBar,
bool is_width_available_for_security_verbose_;
// The security level of the location bar icon.
- security_state::SecurityStateModel::SecurityLevel security_level_;
+ security_state::SecurityLevel security_level_;
// Used to schedule a task for the first run info bubble.
base::WeakPtrFactory<LocationBarViewMac> weak_ptr_factory_;
« no previous file with comments | « chrome/browser/ui/cocoa/browser_window_cocoa.mm ('k') | chrome/browser/ui/cocoa/location_bar/location_bar_view_mac.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698