OLD | NEW |
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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 "chrome/browser/browser_process.h" | 8 #include "chrome/browser/browser_process.h" |
9 #include "chrome/browser/browser_thread.h" | |
10 #include "chrome/browser/chromeos/cros/cros_library.h" | 9 #include "chrome/browser/chromeos/cros/cros_library.h" |
11 #include "chrome/browser/chromeos/login/signed_settings_temp_storage.h" | 10 #include "chrome/browser/chromeos/login/signed_settings_temp_storage.h" |
12 #include "chrome/common/notification_service.h" | 11 #include "chrome/common/notification_service.h" |
13 #include "chrome/common/notification_type.h" | 12 #include "chrome/common/notification_type.h" |
| 13 #include "content/browser/browser_thread.h" |
14 | 14 |
15 namespace chromeos { | 15 namespace chromeos { |
16 | 16 |
17 class LoginLibraryImpl : public LoginLibrary { | 17 class LoginLibraryImpl : public LoginLibrary { |
18 public: | 18 public: |
19 LoginLibraryImpl() | 19 LoginLibraryImpl() |
20 : set_owner_key_callback_(NULL), | 20 : set_owner_key_callback_(NULL), |
21 whitelist_op_callback_(NULL), | 21 whitelist_op_callback_(NULL), |
22 property_op_callback_(NULL) { | 22 property_op_callback_(NULL) { |
23 if (CrosLibrary::Get()->EnsureLoaded()) | 23 if (CrosLibrary::Get()->EnsureLoaded()) |
(...skipping 247 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
271 | 271 |
272 // static | 272 // static |
273 LoginLibrary* LoginLibrary::GetImpl(bool stub) { | 273 LoginLibrary* LoginLibrary::GetImpl(bool stub) { |
274 if (stub) | 274 if (stub) |
275 return new LoginLibraryStubImpl(); | 275 return new LoginLibraryStubImpl(); |
276 else | 276 else |
277 return new LoginLibraryImpl(); | 277 return new LoginLibraryImpl(); |
278 } | 278 } |
279 | 279 |
280 } // namespace chromeos | 280 } // namespace chromeos |
OLD | NEW |