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

Side by Side Diff: chrome/browser/chromeos/policy/login_screen_power_management_policy.cc

Issue 109743002: Move policy code into components/policy. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: moar fixes Created 7 years 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/policy/login_screen_power_management_policy.h" 5 #include "chrome/browser/chromeos/policy/login_screen_power_management_policy.h"
6 6
7 #include "base/json/json_reader.h" 7 #include "base/json/json_reader.h"
8 #include "base/strings/string_number_conversions.h" 8 #include "base/strings/string_number_conversions.h"
9 #include "base/values.h" 9 #include "base/values.h"
10 #include "chrome/browser/policy/configuration_policy_handler.h"
11 #include "chromeos/dbus/power_policy_controller.h" 10 #include "chromeos/dbus/power_policy_controller.h"
11 #include "components/policy/core/browser/configuration_policy_handler.h"
12 #include "components/policy/core/browser/policy_error_map.h" 12 #include "components/policy/core/browser/policy_error_map.h"
13 #include "grit/component_strings.h" 13 #include "grit/component_strings.h"
14 #include "policy/policy_constants.h" 14 #include "policy/policy_constants.h"
15 15
16 namespace policy { 16 namespace policy {
17 17
18 namespace { 18 namespace {
19 const char kScreenDimDelayAC[] = "AC.Delays.ScreenDim"; 19 const char kScreenDimDelayAC[] = "AC.Delays.ScreenDim";
20 const char kScreenOffDelayAC[] = "AC.Delays.ScreenOff"; 20 const char kScreenOffDelayAC[] = "AC.Delays.ScreenOff";
21 const char kIdleDelayAC[] = "AC.Delays.Idle"; 21 const char kIdleDelayAC[] = "AC.Delays.Idle";
(...skipping 165 matching lines...) Expand 10 before | Expand all | Expand 10 after
187 const base::Value* LoginScreenPowerManagementPolicy::GetLidCloseAction() const { 187 const base::Value* LoginScreenPowerManagementPolicy::GetLidCloseAction() const {
188 return lid_close_action_.get(); 188 return lid_close_action_.get();
189 } 189 }
190 190
191 const base::Value* LoginScreenPowerManagementPolicy:: 191 const base::Value* LoginScreenPowerManagementPolicy::
192 GetUserActivityScreenDimDelayScale() const { 192 GetUserActivityScreenDimDelayScale() const {
193 return user_activity_screen_dim_delay_scale_.get(); 193 return user_activity_screen_dim_delay_scale_.get();
194 } 194 }
195 195
196 } // namespace policy 196 } // namespace policy
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698