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)); |