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 13 matching lines...) Expand all Loading... |
24 | 24 |
25 namespace em = enterprise_management; | 25 namespace em = enterprise_management; |
26 | 26 |
27 namespace chromeos { | 27 namespace chromeos { |
28 | 28 |
29 SessionManagerOperation::SessionManagerOperation(const Callback& callback) | 29 SessionManagerOperation::SessionManagerOperation(const Callback& callback) |
30 : session_manager_client_(NULL), | 30 : session_manager_client_(NULL), |
31 weak_factory_(this), | 31 weak_factory_(this), |
32 callback_(callback), | 32 callback_(callback), |
33 force_key_load_(false), | 33 force_key_load_(false), |
| 34 slot_(NULL), |
34 is_loading_(false) {} | 35 is_loading_(false) {} |
35 | 36 |
36 SessionManagerOperation::~SessionManagerOperation() {} | 37 SessionManagerOperation::~SessionManagerOperation() {} |
37 | 38 |
38 void SessionManagerOperation::Start( | 39 void SessionManagerOperation::Start( |
39 SessionManagerClient* session_manager_client, | 40 SessionManagerClient* session_manager_client, |
40 scoped_refptr<OwnerKeyUtil> owner_key_util, | 41 scoped_refptr<OwnerKeyUtil> owner_key_util, |
41 scoped_refptr<OwnerKey> owner_key) { | 42 scoped_refptr<OwnerKey> owner_key) { |
42 session_manager_client_ = session_manager_client; | 43 session_manager_client_ = session_manager_client; |
43 owner_key_util_ = owner_key_util; | 44 owner_key_util_ = owner_key_util; |
(...skipping 285 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
329 } | 330 } |
330 | 331 |
331 void SignAndStoreSettingsOperation::HandleStoreResult(bool success) { | 332 void SignAndStoreSettingsOperation::HandleStoreResult(bool success) { |
332 if (!success) | 333 if (!success) |
333 ReportResult(DeviceSettingsService::STORE_OPERATION_FAILED); | 334 ReportResult(DeviceSettingsService::STORE_OPERATION_FAILED); |
334 else | 335 else |
335 StartLoading(); | 336 StartLoading(); |
336 } | 337 } |
337 | 338 |
338 } // namespace chromeos | 339 } // namespace chromeos |
OLD | NEW |