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 <utility> | 7 #include <utility> |
8 | 8 |
9 #include "base/bind.h" | 9 #include "base/bind.h" |
10 #include "base/bind_helpers.h" | 10 #include "base/bind_helpers.h" |
11 #include "base/files/file_path.h" | 11 #include "base/files/file_path.h" |
12 #include "base/message_loop/message_loop.h" | 12 #include "base/message_loop/message_loop.h" |
13 #include "base/stl_util.h" | 13 #include "base/stl_util.h" |
14 #include "base/task_runner_util.h" | 14 #include "base/task_runner_util.h" |
15 #include "base/threading/sequenced_worker_pool.h" | 15 #include "base/threading/sequenced_worker_pool.h" |
16 #include "chrome/browser/chromeos/policy/proto/chrome_device_policy.pb.h" | 16 #include "chrome/browser/chromeos/policy/proto/chrome_device_policy.pb.h" |
17 #include "chrome/browser/net/nss_context.h" | 17 #include "chrome/browser/net/nss_context.h" |
18 #include "components/ownership/owner_key_util.h" | 18 #include "components/ownership/owner_key_util.h" |
19 #include "components/policy/core/common/cloud/cloud_policy_constants.h" | 19 #include "components/policy/core/common/cloud/cloud_policy_constants.h" |
| 20 #include "components/policy/proto/device_management_backend.pb.h" |
20 #include "content/public/browser/browser_thread.h" | 21 #include "content/public/browser/browser_thread.h" |
21 #include "crypto/rsa_private_key.h" | 22 #include "crypto/rsa_private_key.h" |
22 #include "crypto/signature_creator.h" | 23 #include "crypto/signature_creator.h" |
23 #include "policy/proto/device_management_backend.pb.h" | |
24 | 24 |
25 using ownership::OwnerKeyUtil; | 25 using ownership::OwnerKeyUtil; |
26 using ownership::PublicKey; | 26 using ownership::PublicKey; |
27 | 27 |
28 namespace em = enterprise_management; | 28 namespace em = enterprise_management; |
29 | 29 |
30 namespace chromeos { | 30 namespace chromeos { |
31 | 31 |
32 SessionManagerOperation::SessionManagerOperation(const Callback& callback) | 32 SessionManagerOperation::SessionManagerOperation(const Callback& callback) |
33 : session_manager_client_(NULL), | 33 : session_manager_client_(NULL), |
(...skipping 201 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
235 } | 235 } |
236 | 236 |
237 void StoreSettingsOperation::HandleStoreResult(bool success) { | 237 void StoreSettingsOperation::HandleStoreResult(bool success) { |
238 if (!success) | 238 if (!success) |
239 ReportResult(DeviceSettingsService::STORE_OPERATION_FAILED); | 239 ReportResult(DeviceSettingsService::STORE_OPERATION_FAILED); |
240 else | 240 else |
241 StartLoading(); | 241 StartLoading(); |
242 } | 242 } |
243 | 243 |
244 } // namespace chromeos | 244 } // namespace chromeos |
OLD | NEW |