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

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

Issue 50613003: Move the PolicyDomain and PolicyNamespace types to the policy component. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase 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
« no previous file with comments | « no previous file | chrome/browser/policy/async_policy_loader.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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/policy/device_local_account_policy_provider.h" 5 #include "chrome/browser/chromeos/policy/device_local_account_policy_provider.h"
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "chrome/browser/policy/cloud/cloud_policy_core.h" 8 #include "chrome/browser/policy/cloud/cloud_policy_core.h"
9 #include "chrome/browser/policy/cloud/cloud_policy_service.h" 9 #include "chrome/browser/policy/cloud/cloud_policy_service.h"
10 #include "chrome/browser/policy/policy_bundle.h" 10 #include "chrome/browser/policy/policy_bundle.h"
11 #include "chrome/browser/policy/policy_service.h" 11 #include "components/policy/core/common/policy_namespace.h"
12 12
13 namespace policy { 13 namespace policy {
14 14
15 DeviceLocalAccountPolicyProvider::DeviceLocalAccountPolicyProvider( 15 DeviceLocalAccountPolicyProvider::DeviceLocalAccountPolicyProvider(
16 const std::string& user_id, 16 const std::string& user_id,
17 DeviceLocalAccountPolicyService* service) 17 DeviceLocalAccountPolicyService* service)
18 : user_id_(user_id), 18 : user_id_(user_id),
19 service_(service), 19 service_(service),
20 store_initialized_(false), 20 store_initialized_(false),
21 waiting_for_policy_refresh_(false), 21 waiting_for_policy_refresh_(false),
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after
82 } else { 82 } else {
83 // Keep existing policy, but do send an update. 83 // Keep existing policy, but do send an update.
84 waiting_for_policy_refresh_ = false; 84 waiting_for_policy_refresh_ = false;
85 weak_factory_.InvalidateWeakPtrs(); 85 weak_factory_.InvalidateWeakPtrs();
86 bundle->CopyFrom(policies()); 86 bundle->CopyFrom(policies());
87 } 87 }
88 UpdatePolicy(bundle.Pass()); 88 UpdatePolicy(bundle.Pass());
89 } 89 }
90 90
91 } // namespace policy 91 } // namespace policy
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/policy/async_policy_loader.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698