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

Unified Diff: chrome/browser/ui/login/login_prompt_ui.cc

Issue 7464009: Removal of Profile from content part 1. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: browser_context Created 9 years, 5 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/ui/login/login_prompt_ui.cc
diff --git a/chrome/browser/ui/login/login_prompt_ui.cc b/chrome/browser/ui/login/login_prompt_ui.cc
index d1d95926cf5e87ee400531f957ab7fdbed046352..36cf4a30204628060894d684a029e81c47963e99 100644
--- a/chrome/browser/ui/login/login_prompt_ui.cc
+++ b/chrome/browser/ui/login/login_prompt_ui.cc
@@ -242,10 +242,11 @@ void LoginHandlerHtml::BuildViewForPasswordManager(
LOG(INFO) << "BuildViewForPasswordManager";
TabContents* tab_contents = GetTabContentsForLogin();
- LoginHandlerSource::RegisterDataSource(tab_contents->profile());
+ Profile* profile = static_cast<Profile*>(tab_contents->browser_context());
+ LoginHandlerSource::RegisterDataSource(profile);
delegate_ = new LoginHandlerHtmlDelegate(this, tab_contents, explanation);
ConstrainedWindow* dialog = ConstrainedHtmlUI::CreateConstrainedHtmlDialog(
- tab_contents->profile(), delegate_, tab_contents);
+ profile, delegate_, tab_contents);
SetModel(manager);
SetDialog(dialog);

Powered by Google App Engine
This is Rietveld 408576698