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/files/file_path.h" | 9 #include "base/files/file_path.h" |
10 #include "base/message_loop/message_loop.h" | 10 #include "base/message_loop/message_loop.h" |
11 #include "base/stl_util.h" | 11 #include "base/stl_util.h" |
12 #include "base/task_runner_util.h" | 12 #include "base/task_runner_util.h" |
13 #include "base/threading/sequenced_worker_pool.h" | 13 #include "base/threading/sequenced_worker_pool.h" |
14 #include "chrome/browser/chromeos/policy/proto/chrome_device_policy.pb.h" | 14 #include "chrome/browser/chromeos/policy/proto/chrome_device_policy.pb.h" |
15 #include "chrome/browser/net/nss_context.h" | |
16 #include "components/ownership/owner_key_util.h" | 15 #include "components/ownership/owner_key_util.h" |
17 #include "components/policy/core/common/cloud/cloud_policy_constants.h" | 16 #include "components/policy/core/common/cloud/cloud_policy_constants.h" |
18 #include "content/public/browser/browser_thread.h" | 17 #include "content/public/browser/browser_thread.h" |
19 #include "crypto/rsa_private_key.h" | 18 #include "crypto/rsa_private_key.h" |
20 #include "crypto/signature_creator.h" | 19 #include "crypto/signature_creator.h" |
21 #include "policy/proto/device_management_backend.pb.h" | 20 #include "policy/proto/device_management_backend.pb.h" |
22 | 21 |
23 using ownership::OwnerKeyUtil; | 22 using ownership::OwnerKeyUtil; |
24 using ownership::PublicKey; | 23 using ownership::PublicKey; |
25 | 24 |
(...skipping 264 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
290 } | 289 } |
291 | 290 |
292 void SignAndStoreSettingsOperation::HandleStoreResult(bool success) { | 291 void SignAndStoreSettingsOperation::HandleStoreResult(bool success) { |
293 if (!success) | 292 if (!success) |
294 ReportResult(DeviceSettingsService::STORE_OPERATION_FAILED); | 293 ReportResult(DeviceSettingsService::STORE_OPERATION_FAILED); |
295 else | 294 else |
296 StartLoading(); | 295 StartLoading(); |
297 } | 296 } |
298 | 297 |
299 } // namespace chromeos | 298 } // namespace chromeos |
OLD | NEW |