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

Unified Diff: chrome/browser/ui/webui/options2/browser_options_handler.cc

Issue 10689175: Refactored code for timezone settings. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Added missing comment. Created 8 years, 5 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/options2/browser_options_handler.cc
diff --git a/chrome/browser/ui/webui/options2/browser_options_handler.cc b/chrome/browser/ui/webui/options2/browser_options_handler.cc
index 3c80c1b5496af617214322348ed146450f00ff55..842cb13294d901d3ce452bc43d7d8f07c497324c 100644
--- a/chrome/browser/ui/webui/options2/browser_options_handler.cc
+++ b/chrome/browser/ui/webui/options2/browser_options_handler.cc
@@ -83,12 +83,11 @@
#if defined(OS_CHROMEOS)
#include "chrome/browser/chromeos/accessibility/accessibility_util.h"
-#include "chrome/browser/chromeos/cros_settings.h"
#include "chrome/browser/chromeos/extensions/wallpaper_manager_api.h"
#include "chrome/browser/chromeos/login/user_manager.h"
#include "chrome/browser/chromeos/options/take_photo_dialog.h"
-#include "chrome/browser/chromeos/system_settings_provider.h"
#include "chrome/browser/ui/browser_window.h"
+#include "chrome/browser/ui/webui/options2/chromeos/timezone_options_util.h"
#include "ui/gfx/image/image_skia.h"
#endif // defined(OS_CHROMEOS)
@@ -386,10 +385,7 @@ void BrowserOptionsHandler::GetLocalizedValues(DictionaryValue* values) {
// TODO(pastarmovj): replace this with a call to the CrosSettings list
// handling functionality to come.
- values->Set("timezoneList",
- static_cast<chromeos::SystemSettingsProvider*>(
- chromeos::CrosSettings::Get()->GetProvider(
- chromeos::kSystemTimezone))->GetTimezoneList());
+ values->Set("timezoneList", GetTimezoneList().release());
#endif
#if defined(OS_MACOSX)
values->SetString("macPasswordsWarning",
« no previous file with comments | « chrome/browser/policy/policy_builder.cc ('k') | chrome/browser/ui/webui/options2/chromeos/timezone_options_util.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698