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

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

Issue 292663018: [cros login] Cleanup: replace some of Profile usages with BrowserContext. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: add missing include, fix ProxySettingsDialog ctor Created 6 years, 7 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/login_web_dialog.cc
diff --git a/chrome/browser/chromeos/login/ui/login_web_dialog.cc b/chrome/browser/chromeos/login/ui/login_web_dialog.cc
index a3a9b119d714c949a78ab68bbb75de20ee974d68..f890d59fdba70c4a244fc6d8cfa6a86c189ab212 100644
--- a/chrome/browser/chromeos/login/ui/login_web_dialog.cc
+++ b/chrome/browser/chromeos/login/ui/login_web_dialog.cc
@@ -9,9 +9,8 @@
#include "base/lazy_instance.h"
#include "base/strings/utf_string_conversions.h"
#include "chrome/browser/chromeos/login/helper.h"
-#include "chrome/browser/chromeos/profiles/profile_helper.h"
-#include "chrome/browser/profiles/profile.h"
#include "chrome/browser/ui/browser_dialogs.h"
+#include "content/public/browser/browser_context.h"
#include "content/public/browser/notification_source.h"
#include "content/public/browser/notification_types.h"
#include "content/public/browser/web_contents.h"
@@ -46,13 +45,13 @@ static base::LazyInstance<std::deque<content::WebContents*> >
void LoginWebDialog::Delegate::OnDialogClosed() {
}
-LoginWebDialog::LoginWebDialog(Profile* profile,
+LoginWebDialog::LoginWebDialog(content::BrowserContext* browser_context,
Delegate* delegate,
gfx::NativeWindow parent_window,
const base::string16& title,
const GURL& url,
Style style)
- : profile_(profile),
+ : browser_context_(browser_context),
parent_window_(parent_window),
delegate_(delegate),
title_(title),
@@ -69,9 +68,7 @@ LoginWebDialog::~LoginWebDialog() {
}
void LoginWebDialog::Show() {
- chrome::ShowWebDialog(parent_window_,
- profile_,
- this);
+ chrome::ShowWebDialog(parent_window_, browser_context_, this);
is_open_ = true;
}
« no previous file with comments | « chrome/browser/chromeos/login/ui/login_web_dialog.h ('k') | chrome/browser/chromeos/login/ui/proxy_settings_dialog.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698