OLD | NEW |
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/policy/cloud/user_cloud_policy_store.h" | 5 #include "chrome/browser/policy/cloud/user_cloud_policy_store.h" |
6 | 6 |
7 #include "base/bind.h" | 7 #include "base/bind.h" |
8 #include "base/file_util.h" | 8 #include "base/file_util.h" |
9 #include "chrome/browser/policy/cloud/proto/device_management_backend.pb.h" | 9 #include "chrome/browser/policy/proto/cloud/device_management_backend.pb.h" |
10 #include "chrome/browser/policy/cloud/proto/device_management_local.pb.h" | 10 #include "chrome/browser/policy/proto/cloud/device_management_local.pb.h" |
11 #include "chrome/browser/profiles/profile.h" | 11 #include "chrome/browser/profiles/profile.h" |
12 #include "chrome/browser/signin/signin_manager.h" | 12 #include "chrome/browser/signin/signin_manager.h" |
13 #include "chrome/browser/signin/signin_manager_factory.h" | 13 #include "chrome/browser/signin/signin_manager_factory.h" |
14 #include "content/public/browser/browser_thread.h" | 14 #include "content/public/browser/browser_thread.h" |
15 #include "policy/policy_constants.h" | 15 #include "policy/policy_constants.h" |
16 #include "policy/proto/cloud_policy.pb.h" | 16 #include "policy/proto/cloud_policy.pb.h" |
17 | 17 |
18 namespace em = enterprise_management; | 18 namespace em = enterprise_management; |
19 | 19 |
20 namespace policy { | 20 namespace policy { |
(...skipping 229 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
250 content::BrowserThread::PostTask( | 250 content::BrowserThread::PostTask( |
251 content::BrowserThread::FILE, FROM_HERE, | 251 content::BrowserThread::FILE, FROM_HERE, |
252 base::Bind(&StorePolicyToDiskOnFileThread, | 252 base::Bind(&StorePolicyToDiskOnFileThread, |
253 backing_file_path_, *validator->policy())); | 253 backing_file_path_, *validator->policy())); |
254 InstallPolicy(validator->policy_data().Pass(), validator->payload().Pass()); | 254 InstallPolicy(validator->policy_data().Pass(), validator->payload().Pass()); |
255 status_ = STATUS_OK; | 255 status_ = STATUS_OK; |
256 NotifyStoreLoaded(); | 256 NotifyStoreLoaded(); |
257 } | 257 } |
258 | 258 |
259 } // namespace policy | 259 } // namespace policy |
OLD | NEW |