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

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

Issue 7867044: PART1: Initiated the SignedSettings refactoring. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Ckleaned up values.cc and profile_impl.cc that has creeped from the rebase back in. Created 9 years, 2 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/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 393515e4bc220236ee03507c80b4b22116de2298..15e30f938eafbabdb58b094b26d34c640eb62790 100644
--- a/chrome/browser/ui/webui/options/chromeos/internet_options_handler.cc
+++ b/chrome/browser/ui/webui/options/chromeos/internet_options_handler.cc
@@ -56,8 +56,7 @@
static const char kOtherNetworksFakePath[] = "?";
InternetOptionsHandler::InternetOptionsHandler()
- : chromeos::CrosOptionsPageUIHandler(NULL),
- proxy_settings_(NULL) {
+ : proxy_settings_(NULL) {
registrar_.Add(this, chrome::NOTIFICATION_REQUIRE_PIN_SETTING_CHANGE_ENDED,
NotificationService::AllSources());
registrar_.Add(this, chrome::NOTIFICATION_ENTER_PIN_ENDED,
@@ -360,8 +359,9 @@ void InternetOptionsHandler::GetLocalizedValues(
l10n_util::GetStringUTF16(IDS_CLOSE));
localized_strings->SetString("ownerOnly", l10n_util::GetStringUTF16(
IDS_OPTIONS_ACCOUNTS_OWNER_ONLY));
- localized_strings->SetString("ownerUserId", UTF8ToUTF16(
- chromeos::UserCrosSettingsProvider::cached_owner()));
+ std::string owner;
+ chromeos::CrosSettings::Get()->GetString(chromeos::kDeviceOwner, &owner);
+ localized_strings->SetString("ownerUserId", UTF8ToUTF16(owner));
FillNetworkInfo(localized_strings);
}
@@ -578,7 +578,7 @@ void InternetOptionsHandler::OnCellularDataPlanChanged(
void InternetOptionsHandler::Observe(int type,
const NotificationSource& source,
const NotificationDetails& details) {
- chromeos::CrosOptionsPageUIHandler::Observe(type, source, details);
+ OptionsPageUIHandler::Observe(type, source, details);
if (type == chrome::NOTIFICATION_REQUIRE_PIN_SETTING_CHANGE_ENDED) {
bool require_pin = *Details<bool>(details).ptr();
DictionaryValue dictionary;

Powered by Google App Engine
This is Rietveld 408576698