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" |
(...skipping 11 matching lines...) Expand all Loading... |
22 | 22 |
23 using ownership::OwnerKeyUtil; | 23 using ownership::OwnerKeyUtil; |
24 using ownership::PublicKey; | 24 using ownership::PublicKey; |
25 | 25 |
26 namespace em = enterprise_management; | 26 namespace em = enterprise_management; |
27 | 27 |
28 namespace chromeos { | 28 namespace chromeos { |
29 | 29 |
30 SessionManagerOperation::SessionManagerOperation(const Callback& callback) | 30 SessionManagerOperation::SessionManagerOperation(const Callback& callback) |
31 : session_manager_client_(NULL), | 31 : session_manager_client_(NULL), |
32 weak_factory_(this), | |
33 callback_(callback), | 32 callback_(callback), |
34 force_key_load_(false), | 33 force_key_load_(false), |
35 is_loading_(false) {} | 34 is_loading_(false), |
| 35 weak_factory_(this) {} |
36 | 36 |
37 SessionManagerOperation::~SessionManagerOperation() {} | 37 SessionManagerOperation::~SessionManagerOperation() {} |
38 | 38 |
39 void SessionManagerOperation::Start( | 39 void SessionManagerOperation::Start( |
40 SessionManagerClient* session_manager_client, | 40 SessionManagerClient* session_manager_client, |
41 scoped_refptr<OwnerKeyUtil> owner_key_util, | 41 scoped_refptr<OwnerKeyUtil> owner_key_util, |
42 scoped_refptr<PublicKey> public_key) { | 42 scoped_refptr<PublicKey> public_key) { |
43 session_manager_client_ = session_manager_client; | 43 session_manager_client_ = session_manager_client; |
44 owner_key_util_ = owner_key_util; | 44 owner_key_util_ = owner_key_util; |
45 public_key_ = public_key; | 45 public_key_ = public_key; |
(...skipping 245 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
291 } | 291 } |
292 | 292 |
293 void SignAndStoreSettingsOperation::HandleStoreResult(bool success) { | 293 void SignAndStoreSettingsOperation::HandleStoreResult(bool success) { |
294 if (!success) | 294 if (!success) |
295 ReportResult(DeviceSettingsService::STORE_OPERATION_FAILED); | 295 ReportResult(DeviceSettingsService::STORE_OPERATION_FAILED); |
296 else | 296 else |
297 StartLoading(); | 297 StartLoading(); |
298 } | 298 } |
299 | 299 |
300 } // namespace chromeos | 300 } // namespace chromeos |
OLD | NEW |