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

Unified Diff: chrome/browser/ui/webui/options/chromeos/internet_options_handler.cc

Issue 113653004: Removing GitDefaultProfile occurences from the remaining WebUI areas (mobile & test) (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years 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/webui/options/chromeos/internet_options_handler.cc
diff --git a/chrome/browser/ui/webui/options/chromeos/internet_options_handler.cc b/chrome/browser/ui/webui/options/chromeos/internet_options_handler.cc
index 25a449a75d9a9f47a127282b0b20c76d52af9dc2..a9f90ae9fc9247d07af2636926b74eddaa78d82b 100644
--- a/chrome/browser/ui/webui/options/chromeos/internet_options_handler.cc
+++ b/chrome/browser/ui/webui/options/chromeos/internet_options_handler.cc
@@ -1085,8 +1085,9 @@ void InternetOptionsHandler::EnableCellularCallback(
if (locale_config) {
std::string setup_url = locale_config->setup_url();
if (!setup_url.empty()) {
+ // The mobile device will be managed by the primary user.
chrome::ScopedTabbedBrowserDisplayer displayer(
- ProfileManager::GetDefaultProfileOrOffTheRecord(),
+ ProfileManager::GetPrimaryUserProfile(),
chrome::HOST_DESKTOP_TYPE_ASH);
chrome::ShowSingletonTab(displayer.browser(), GURL(setup_url));
return;

Powered by Google App Engine
This is Rietveld 408576698