| Index: chrome/browser/ui/webui/options/chromeos/system_options_handler.cc
|
| diff --git a/chrome/browser/ui/webui/options/chromeos/system_options_handler.cc b/chrome/browser/ui/webui/options/chromeos/system_options_handler.cc
|
| index 5ffb537afed8bd1621536fce97da0f33a038d67e..d5c60a9ccf7c284cb0fa8a25f9256e35f74c6a4c 100644
|
| --- a/chrome/browser/ui/webui/options/chromeos/system_options_handler.cc
|
| +++ b/chrome/browser/ui/webui/options/chromeos/system_options_handler.cc
|
| @@ -17,6 +17,7 @@
|
| #include "content/browser/tab_contents/tab_contents.h"
|
| #include "chrome/browser/browser_process.h"
|
| #include "chrome/browser/chromeos/accessibility_util.h"
|
| +#include "chrome/browser/chromeos/cros_settings.h"
|
| #include "chrome/browser/chromeos/language_preferences.h"
|
| #include "chrome/browser/extensions/extension_service.h"
|
| #include "chrome/browser/prefs/pref_service.h"
|
| @@ -33,9 +34,7 @@
|
| #include "ui/base/l10n/l10n_util.h"
|
| #include "ui/base/resource/resource_bundle.h"
|
|
|
| -SystemOptionsHandler::SystemOptionsHandler()
|
| - : chromeos::CrosOptionsPageUIHandler(
|
| - new chromeos::SystemSettingsProvider()) {
|
| +SystemOptionsHandler::SystemOptionsHandler() {
|
| }
|
|
|
| SystemOptionsHandler::~SystemOptionsHandler() {
|
| @@ -96,9 +95,12 @@ void SystemOptionsHandler::GetLocalizedValues(
|
| l10n_util::GetStringUTF16(
|
| IDS_OPTIONS_SETTINGS_ACCESSIBILITY_DESCRIPTION));
|
|
|
| + // TODO(pastarmovj): replace this with a call to the CrosSettings list
|
| + // handling functionality to come.
|
| localized_strings->Set("timezoneList",
|
| - reinterpret_cast<chromeos::SystemSettingsProvider*>(
|
| - settings_provider_.get())->GetTimezoneList());
|
| + static_cast<chromeos::SystemSettingsProvider*>(
|
| + chromeos::CrosSettings::Get()->GetProvider(
|
| + chromeos::kSystemTimezone))->GetTimezoneList());
|
| }
|
|
|
| void SystemOptionsHandler::Initialize() {
|
|
|