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

Unified Diff: chrome/browser/chromeos/charger_replace/charger_link_dialog.cc

Issue 128583002: Removal of GetDefaultProfile for new charger messages (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 11 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/charger_replace/charger_link_dialog.cc
diff --git a/chrome/browser/chromeos/charger_replace/charger_link_dialog.cc b/chrome/browser/chromeos/charger_replace/charger_link_dialog.cc
index 2113e8767d120aea4c86e1cfb20bff28a6e5b2bd..415b783832672ab44965f243a0dc21d658ef339f 100644
--- a/chrome/browser/chromeos/charger_replace/charger_link_dialog.cc
+++ b/chrome/browser/chromeos/charger_replace/charger_link_dialog.cc
@@ -38,8 +38,11 @@ ChargerLinkDialog::~ChargerLinkDialog() {
}
void ChargerLinkDialog::Show() {
+ // We show the dialog for the active user, so that the dialog will get
+ // displayed immediately. The parent window is a system modal/lock container
+ // and does not belong to any user.
chrome::ShowWebDialog(parent_window_,
- ProfileManager::GetDefaultProfile(),
+ ProfileManager::GetActiveUserProfile(),
this);
}

Powered by Google App Engine
This is Rietveld 408576698