| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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/cros/login_library.h" | 5 #include "chrome/browser/chromeos/cros/login_library.h" |
| 6 | 6 |
| 7 #include "base/message_loop.h" | 7 #include "base/message_loop.h" |
| 8 #include "base/task.h" | 8 #include "base/task.h" |
| 9 #include "base/timer.h" | 9 #include "base/timer.h" |
| 10 #include "chrome/browser/browser_process.h" | 10 #include "chrome/browser/browser_process.h" |
| (...skipping 154 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 165 } | 165 } |
| 166 } | 166 } |
| 167 | 167 |
| 168 void Init() { | 168 void Init() { |
| 169 session_connection_ = chromeos::MonitorSession(&Handler, this); | 169 session_connection_ = chromeos::MonitorSession(&Handler, this); |
| 170 } | 170 } |
| 171 | 171 |
| 172 void CompleteSetOwnerKey(bool value) { | 172 void CompleteSetOwnerKey(bool value) { |
| 173 VLOG(1) << "Owner key generation: " << (value ? "success" : "fail"); | 173 VLOG(1) << "Owner key generation: " << (value ? "success" : "fail"); |
| 174 NotificationType result = | 174 NotificationType result = |
| 175 NotificationType::OWNER_KEY_FETCH_ATTEMPT_SUCCEEDED; | 175 chrome::OWNER_KEY_FETCH_ATTEMPT_SUCCEEDED; |
| 176 if (!value) | 176 if (!value) |
| 177 result = NotificationType::OWNER_KEY_FETCH_ATTEMPT_FAILED; | 177 result = chrome::OWNER_KEY_FETCH_ATTEMPT_FAILED; |
| 178 | 178 |
| 179 // Whether we exported the public key or not, send a notification indicating | 179 // Whether we exported the public key or not, send a notification indicating |
| 180 // that we're done with this attempt. | 180 // that we're done with this attempt. |
| 181 NotificationService::current()->Notify(result, | 181 NotificationService::current()->Notify(result, |
| 182 NotificationService::AllSources(), | 182 NotificationService::AllSources(), |
| 183 NotificationService::NoDetails()); | 183 NotificationService::NoDetails()); |
| 184 | 184 |
| 185 // We stored some settings in transient storage before owner was assigned. | 185 // We stored some settings in transient storage before owner was assigned. |
| 186 // Now owner is assigned and key is generated and we should persist | 186 // Now owner is assigned and key is generated and we should persist |
| 187 // those settings into signed storage. | 187 // those settings into signed storage. |
| (...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 234 | 234 |
| 235 // static | 235 // static |
| 236 LoginLibrary* LoginLibrary::GetImpl(bool stub) { | 236 LoginLibrary* LoginLibrary::GetImpl(bool stub) { |
| 237 if (stub) | 237 if (stub) |
| 238 return new LoginLibraryStubImpl(); | 238 return new LoginLibraryStubImpl(); |
| 239 else | 239 else |
| 240 return new LoginLibraryImpl(); | 240 return new LoginLibraryImpl(); |
| 241 } | 241 } |
| 242 | 242 |
| 243 } // namespace chromeos | 243 } // namespace chromeos |
| OLD | NEW |