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/chromeos/settings/session_manager_operation.h" | 5 #include "chrome/browser/chromeos/settings/session_manager_operation.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/file_util.h" | 9 #include "base/file_util.h" |
10 #include "base/files/file_path.h" | 10 #include "base/files/file_path.h" |
11 #include "base/message_loop.h" | 11 #include "base/message_loop.h" |
12 #include "base/stl_util.h" | 12 #include "base/stl_util.h" |
13 #include "base/task_runner_util.h" | 13 #include "base/task_runner_util.h" |
14 #include "base/threading/sequenced_worker_pool.h" | 14 #include "base/threading/sequenced_worker_pool.h" |
15 #include "base/time.h" | 15 #include "base/time.h" |
16 #include "chrome/browser/chromeos/policy/proto/chrome_device_policy.pb.h" | |
17 #include "chrome/browser/chromeos/settings/owner_key_util.h" | 16 #include "chrome/browser/chromeos/settings/owner_key_util.h" |
18 #include "chrome/browser/policy/cloud/cloud_policy_constants.h" | 17 #include "chrome/browser/policy/cloud/cloud_policy_constants.h" |
19 #include "chrome/browser/policy/cloud/proto/device_management_backend.pb.h" | 18 #include "chrome/browser/policy/proto/chromeos/chrome_device_policy.pb.h" |
| 19 #include "chrome/browser/policy/proto/cloud/device_management_backend.pb.h" |
20 #include "content/public/browser/browser_thread.h" | 20 #include "content/public/browser/browser_thread.h" |
21 #include "crypto/rsa_private_key.h" | 21 #include "crypto/rsa_private_key.h" |
22 #include "crypto/signature_creator.h" | 22 #include "crypto/signature_creator.h" |
23 | 23 |
24 namespace em = enterprise_management; | 24 namespace em = enterprise_management; |
25 | 25 |
26 namespace chromeos { | 26 namespace chromeos { |
27 | 27 |
28 SessionManagerOperation::SessionManagerOperation(const Callback& callback) | 28 SessionManagerOperation::SessionManagerOperation(const Callback& callback) |
29 : session_manager_client_(NULL), | 29 : session_manager_client_(NULL), |
(...skipping 272 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
302 } | 302 } |
303 | 303 |
304 void SignAndStoreSettingsOperation::HandleStoreResult(bool success) { | 304 void SignAndStoreSettingsOperation::HandleStoreResult(bool success) { |
305 if (!success) | 305 if (!success) |
306 ReportResult(DeviceSettingsService::STORE_OPERATION_FAILED); | 306 ReportResult(DeviceSettingsService::STORE_OPERATION_FAILED); |
307 else | 307 else |
308 StartLoading(); | 308 StartLoading(); |
309 } | 309 } |
310 | 310 |
311 } // namespace chromeos | 311 } // namespace chromeos |
OLD | NEW |