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

Side by Side Diff: chrome/browser/chromeos/power/power_prefs.cc

Issue 271793003: components: Extract pref_registry component out of user_prefs. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 6 years, 7 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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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/power/power_prefs.h" 5 #include "chrome/browser/chromeos/power/power_prefs.h"
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "base/bind_helpers.h" 8 #include "base/bind_helpers.h"
9 #include "base/callback.h" 9 #include "base/callback.h"
10 #include "base/logging.h" 10 #include "base/logging.h"
11 #include "base/prefs/pref_change_registrar.h" 11 #include "base/prefs/pref_change_registrar.h"
12 #include "base/prefs/pref_service.h" 12 #include "base/prefs/pref_service.h"
13 #include "chrome/browser/browser_process.h" 13 #include "chrome/browser/browser_process.h"
14 #include "chrome/browser/chrome_notification_types.h" 14 #include "chrome/browser/chrome_notification_types.h"
15 #include "chrome/browser/chromeos/profiles/profile_helper.h" 15 #include "chrome/browser/chromeos/profiles/profile_helper.h"
16 #include "chrome/browser/profiles/profile.h" 16 #include "chrome/browser/profiles/profile.h"
17 #include "chrome/browser/profiles/profile_manager.h" 17 #include "chrome/browser/profiles/profile_manager.h"
18 #include "chrome/common/pref_names.h" 18 #include "chrome/common/pref_names.h"
19 #include "chromeos/dbus/power_policy_controller.h" 19 #include "chromeos/dbus/power_policy_controller.h"
20 #include "components/user_prefs/pref_registry_syncable.h" 20 #include "components/pref_registry/pref_registry_syncable.h"
21 #include "content/public/browser/notification_details.h" 21 #include "content/public/browser/notification_details.h"
22 #include "content/public/browser/notification_service.h" 22 #include "content/public/browser/notification_service.h"
23 #include "content/public/browser/notification_source.h" 23 #include "content/public/browser/notification_source.h"
24 24
25 namespace chromeos { 25 namespace chromeos {
26 26
27 PowerPrefs::PowerPrefs(PowerPolicyController* power_policy_controller) 27 PowerPrefs::PowerPrefs(PowerPolicyController* power_policy_controller)
28 : power_policy_controller_(power_policy_controller), 28 : power_policy_controller_(power_policy_controller),
29 profile_(NULL) { 29 profile_(NULL) {
30 notification_registrar_.Add(this, 30 notification_registrar_.Add(this,
(...skipping 242 matching lines...) Expand 10 before | Expand all | Expand 10 after
273 update_callback); 273 update_callback);
274 pref_change_registrar_->Add(prefs::kPowerUserActivityScreenDimDelayFactor, 274 pref_change_registrar_->Add(prefs::kPowerUserActivityScreenDimDelayFactor,
275 update_callback); 275 update_callback);
276 pref_change_registrar_->Add(prefs::kPowerWaitForInitialUserActivity, 276 pref_change_registrar_->Add(prefs::kPowerWaitForInitialUserActivity,
277 update_callback); 277 update_callback);
278 278
279 UpdatePowerPolicyFromPrefs(); 279 UpdatePowerPolicyFromPrefs();
280 } 280 }
281 281
282 } // namespace chromeos 282 } // namespace chromeos
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698