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

Unified Diff: chrome/browser/ui/extensions/hosted_app_browser_controller.cc

Issue 1473523002: Switch SecurityStateModel ownership to ChromeSecurityStateModelClient (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 5 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/extensions/hosted_app_browser_controller.cc
diff --git a/chrome/browser/ui/extensions/hosted_app_browser_controller.cc b/chrome/browser/ui/extensions/hosted_app_browser_controller.cc
index 55febb5ea8afb89ee5f54dce9b21881185c40719..f386e58fe69df095a548e12a93ab2844b25cff78 100644
--- a/chrome/browser/ui/extensions/hosted_app_browser_controller.cc
+++ b/chrome/browser/ui/extensions/hosted_app_browser_controller.cc
@@ -6,6 +6,7 @@
#include "base/command_line.h"
#include "chrome/browser/profiles/profile.h"
+#include "chrome/browser/ssl/chrome_security_state_model_client.h"
#include "chrome/browser/ssl/security_state_model.h"
#include "chrome/browser/ui/browser.h"
#include "chrome/browser/ui/browser_window.h"
@@ -92,10 +93,10 @@ bool HostedAppBrowserController::ShouldShowLocationBar() const {
if (web_contents->GetLastCommittedURL().is_empty())
return false;
- const SecurityStateModel* model =
- SecurityStateModel::FromWebContents(web_contents);
- if (model &&
- model->GetSecurityInfo().security_level ==
+ const ChromeSecurityStateModelClient* model_delegate =
+ ChromeSecurityStateModelClient::FromWebContents(web_contents);
+ if (model_delegate &&
+ model_delegate->GetSecurityInfo().security_level ==
SecurityStateModel::SECURITY_ERROR)
return true;

Powered by Google App Engine
This is Rietveld 408576698