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

Side by Side Diff: chrome/browser/chromeos/settings/system_settings_provider.cc

Issue 10824112: Move Chrome OS device settings stuff to chrome/browser/chromeos/settings. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase. Created 8 years, 4 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 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/chromeos/system_settings_provider.h" 5 #include "chrome/browser/chromeos/settings/system_settings_provider.h"
6 6
7 #include "base/string16.h" 7 #include "base/string16.h"
8 #include "base/time.h" 8 #include "base/time.h"
9 #include "base/values.h" 9 #include "base/values.h"
10 #include "chrome/browser/chromeos/cros_settings.h"
11 #include "chrome/browser/chromeos/cros_settings_names.h"
12 #include "chrome/browser/chromeos/login/user_manager.h" 10 #include "chrome/browser/chromeos/login/user_manager.h"
11 #include "chrome/browser/chromeos/settings/cros_settings.h"
12 #include "chrome/browser/chromeos/settings/cros_settings_names.h"
13 #include "grit/generated_resources.h" 13 #include "grit/generated_resources.h"
14 #include "ui/base/l10n/l10n_util.h" 14 #include "ui/base/l10n/l10n_util.h"
15 15
16 namespace chromeos { 16 namespace chromeos {
17 17
18 SystemSettingsProvider::SystemSettingsProvider( 18 SystemSettingsProvider::SystemSettingsProvider(
19 const NotifyObserversCallback& notify_cb) 19 const NotifyObserversCallback& notify_cb)
20 : CrosSettingsProvider(notify_cb) { 20 : CrosSettingsProvider(notify_cb) {
21 system::TimezoneSettings *timezone_settings = 21 system::TimezoneSettings *timezone_settings =
22 system::TimezoneSettings::GetInstance(); 22 system::TimezoneSettings::GetInstance();
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
66 } 66 }
67 67
68 void SystemSettingsProvider::TimezoneChanged(const icu::TimeZone& timezone) { 68 void SystemSettingsProvider::TimezoneChanged(const icu::TimeZone& timezone) {
69 // Fires system setting change notification. 69 // Fires system setting change notification.
70 timezone_value_.reset(base::Value::CreateStringValue( 70 timezone_value_.reset(base::Value::CreateStringValue(
71 system::TimezoneSettings::GetTimezoneID(timezone))); 71 system::TimezoneSettings::GetTimezoneID(timezone)));
72 NotifyObservers(kSystemTimezone); 72 NotifyObservers(kSystemTimezone);
73 } 73 }
74 74
75 } // namespace chromeos 75 } // namespace chromeos
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698