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

Unified Diff: chrome/browser/chromeos/login/ui/simple_web_view_dialog.cc

Issue 1314843007: Refactor connection_security into SecurityStateModel (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: create SecurityStateModel for chromeos login webview Created 5 years, 3 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
Index: chrome/browser/chromeos/login/ui/simple_web_view_dialog.cc
diff --git a/chrome/browser/chromeos/login/ui/simple_web_view_dialog.cc b/chrome/browser/chromeos/login/ui/simple_web_view_dialog.cc
index 30afabffa2319b9b2595507b98690b0b627b75a4..bec62b2f10dec10335a8db10966571f2d9d8a655 100644
--- a/chrome/browser/chromeos/login/ui/simple_web_view_dialog.cc
+++ b/chrome/browser/chromeos/login/ui/simple_web_view_dialog.cc
@@ -14,6 +14,7 @@
#include "chrome/browser/command_updater.h"
#include "chrome/browser/password_manager/chrome_password_manager_client.h"
#include "chrome/browser/profiles/profile.h"
+#include "chrome/browser/ssl/security_state_model.h"
#include "chrome/browser/ui/autofill/chrome_autofill_client.h"
#include "chrome/browser/ui/browser.h"
#include "chrome/browser/ui/content_settings/content_setting_bubble_model_delegate.h"
@@ -159,6 +160,9 @@ void SimpleWebViewDialog::StartLoad(const GURL& url) {
}
void SimpleWebViewDialog::Init() {
+ // Create the security state model that the toolbar model needs.
+ if (web_view_->GetWebContents())
+ SecurityStateModel::CreateForWebContents(web_view_->GetWebContents());
toolbar_model_.reset(new ToolbarModelImpl(this));
set_background(views::Background::CreateSolidBackground(kDialogColor));
« no previous file with comments | « chrome/browser/android/chrome_web_contents_delegate_android.cc ('k') | chrome/browser/ssl/connection_security.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698