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

Unified Diff: chrome/browser/chromeos/login/webui_login_view.cc

Issue 13633003: Part of multiprofile implementation. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 7 years, 9 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/webui_login_view.cc
diff --git a/chrome/browser/chromeos/login/webui_login_view.cc b/chrome/browser/chromeos/login/webui_login_view.cc
index e6f7dedd74d71ec79a76352e5f29b93e2d86af74..92bfb534f67dc1e761bfda275392b3cfc4956f67 100644
--- a/chrome/browser/chromeos/login/webui_login_view.cc
+++ b/chrome/browser/chromeos/login/webui_login_view.cc
@@ -152,7 +152,9 @@ WebUILoginView::~WebUILoginView() {
void WebUILoginView::Init(views::Widget* login_window) {
login_window_ = login_window;
- webui_login_ = new views::WebView(ProfileManager::GetDefaultProfile());
+
+ Profile* signing_profile = ProfileManager::GetSigninProfile();
Nikita (slow) 2013/04/04 12:59:13 nit: signin_profile
+ webui_login_ = new views::WebView(signing_profile);
AddChildView(webui_login_);
WebContents* web_contents = webui_login_->GetWebContents();
@@ -168,7 +170,7 @@ void WebUILoginView::Init(views::Widget* login_window) {
web_contents->SetDelegate(this);
renderer_preferences_util::UpdateFromSystemSettings(
web_contents->GetMutableRendererPrefs(),
- ProfileManager::GetDefaultProfile());
+ signing_profile);
registrar_.Add(this,
content::NOTIFICATION_WEB_CONTENTS_RENDER_VIEW_HOST_CREATED,

Powered by Google App Engine
This is Rietveld 408576698