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

Side by Side 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "chrome/browser/ui/webui/options/chromeos/internet_options_handler.h" 5 #include "chrome/browser/ui/webui/options/chromeos/internet_options_handler.h"
6 6
7 #include <ctype.h> 7 #include <ctype.h>
8 8
9 #include <map> 9 #include <map>
10 #include <string> 10 #include <string>
(...skipping 1067 matching lines...) Expand 10 before | Expand all | Expand 10 after
1078 return; 1078 return;
1079 } 1079 }
1080 if (device->IsSimAbsent()) { 1080 if (device->IsSimAbsent()) {
1081 MobileConfig* config = MobileConfig::GetInstance(); 1081 MobileConfig* config = MobileConfig::GetInstance();
1082 if (config->IsReady()) { 1082 if (config->IsReady()) {
1083 const MobileConfig::LocaleConfig* locale_config = 1083 const MobileConfig::LocaleConfig* locale_config =
1084 config->GetLocaleConfig(); 1084 config->GetLocaleConfig();
1085 if (locale_config) { 1085 if (locale_config) {
1086 std::string setup_url = locale_config->setup_url(); 1086 std::string setup_url = locale_config->setup_url();
1087 if (!setup_url.empty()) { 1087 if (!setup_url.empty()) {
1088 // The mobile device will be managed by the primary user.
1088 chrome::ScopedTabbedBrowserDisplayer displayer( 1089 chrome::ScopedTabbedBrowserDisplayer displayer(
1089 ProfileManager::GetDefaultProfileOrOffTheRecord(), 1090 ProfileManager::GetPrimaryUserProfile(),
1090 chrome::HOST_DESKTOP_TYPE_ASH); 1091 chrome::HOST_DESKTOP_TYPE_ASH);
1091 chrome::ShowSingletonTab(displayer.browser(), GURL(setup_url)); 1092 chrome::ShowSingletonTab(displayer.browser(), GURL(setup_url));
1092 return; 1093 return;
1093 } 1094 }
1094 } 1095 }
1095 } 1096 }
1096 // TODO(nkostylev): Show generic error message. http://crosbug.com/15444 1097 // TODO(nkostylev): Show generic error message. http://crosbug.com/15444
1097 } 1098 }
1098 LOG(ERROR) << "EnableCellularCallback called for enabled mobile device"; 1099 LOG(ERROR) << "EnableCellularCallback called for enabled mobile device";
1099 } 1100 }
(...skipping 977 matching lines...) Expand 10 before | Expand all | Expand 10 after
2077 dictionary->SetBoolean( 2078 dictionary->SetBoolean(
2078 kTagWimaxAvailable, 2079 kTagWimaxAvailable,
2079 handler->IsTechnologyAvailable(NetworkTypePattern::Wimax())); 2080 handler->IsTechnologyAvailable(NetworkTypePattern::Wimax()));
2080 dictionary->SetBoolean( 2081 dictionary->SetBoolean(
2081 kTagWimaxEnabled, 2082 kTagWimaxEnabled,
2082 handler->IsTechnologyEnabled(NetworkTypePattern::Wimax())); 2083 handler->IsTechnologyEnabled(NetworkTypePattern::Wimax()));
2083 } 2084 }
2084 2085
2085 } // namespace options 2086 } // namespace options
2086 } // namespace chromeos 2087 } // namespace chromeos
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698