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

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

Issue 78823004: Move PolicyBundle into components/policy/. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase on master Created 7 years, 1 month 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_profile_policy_provider.h" 5 #include "chrome/browser/chromeos/policy/login_profile_policy_provider.h"
6 6
7 #include <string> 7 #include <string>
8 8
9 #include "base/bind.h" 9 #include "base/bind.h"
10 #include "base/callback.h" 10 #include "base/callback.h"
11 #include "base/memory/scoped_ptr.h" 11 #include "base/memory/scoped_ptr.h"
12 #include "base/values.h" 12 #include "base/values.h"
13 #include "chrome/browser/chromeos/policy/login_screen_power_management_policy.h" 13 #include "chrome/browser/chromeos/policy/login_screen_power_management_policy.h"
14 #include "chrome/browser/policy/policy_bundle.h"
15 #include "chrome/browser/policy/policy_error_map.h" 14 #include "chrome/browser/policy/policy_error_map.h"
16 #include "components/policy/core/common/external_data_fetcher.h" 15 #include "components/policy/core/common/external_data_fetcher.h"
16 #include "components/policy/core/common/policy_bundle.h"
17 #include "components/policy/core/common/policy_map.h" 17 #include "components/policy/core/common/policy_map.h"
18 #include "components/policy/core/common/policy_types.h" 18 #include "components/policy/core/common/policy_types.h"
19 #include "policy/policy_constants.h" 19 #include "policy/policy_constants.h"
20 20
21 namespace policy { 21 namespace policy {
22 22
23 namespace { 23 namespace {
24 24
25 // Applies the value of |device_policy| in |device_policy_map| as the 25 // Applies the value of |device_policy| in |device_policy_map| as the
26 // recommended value of |user_policy| in |user_policy_map|. If the value of 26 // recommended value of |user_policy| in |user_policy_map|. If the value of
(...skipping 146 matching lines...) Expand 10 before | Expand all | Expand 10 after
173 ApplyValueAsMandatoryPolicy( 173 ApplyValueAsMandatoryPolicy(
174 power_management_policy.GetUserActivityScreenDimDelayScale(), 174 power_management_policy.GetUserActivityScreenDimDelayScale(),
175 key::kUserActivityScreenDimDelayScale, 175 key::kUserActivityScreenDimDelayScale,
176 &user_policy_map); 176 &user_policy_map);
177 } 177 }
178 178
179 UpdatePolicy(bundle.Pass()); 179 UpdatePolicy(bundle.Pass());
180 } 180 }
181 181
182 } // namespace policy 182 } // namespace policy
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698