| 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/cryptohome_library.h" | 5 #include "chrome/browser/chromeos/cros/cryptohome_library.h" |
| 6 | 6 |
| 7 #include "base/command_line.h" | 7 #include "base/command_line.h" |
| 8 #include "base/hash_tables.h" | 8 #include "base/hash_tables.h" |
| 9 #include "base/message_loop.h" | 9 #include "base/message_loop.h" |
| 10 #include "chrome/browser/browser_thread.h" | |
| 11 #include "chrome/browser/chromeos/cros/cros_library.h" | 10 #include "chrome/browser/chromeos/cros/cros_library.h" |
| 12 #include "chrome/common/chrome_switches.h" | 11 #include "chrome/common/chrome_switches.h" |
| 12 #include "content/browser/browser_thread.h" |
| 13 | 13 |
| 14 namespace chromeos { | 14 namespace chromeos { |
| 15 | 15 |
| 16 // This class handles the interaction with the ChromeOS cryptohome library APIs. | 16 // This class handles the interaction with the ChromeOS cryptohome library APIs. |
| 17 class CryptohomeLibraryImpl : public CryptohomeLibrary { | 17 class CryptohomeLibraryImpl : public CryptohomeLibrary { |
| 18 public: | 18 public: |
| 19 CryptohomeLibraryImpl() { | 19 CryptohomeLibraryImpl() { |
| 20 if (CrosLibrary::Get()->EnsureLoaded()) | 20 if (CrosLibrary::Get()->EnsureLoaded()) |
| 21 Init(); | 21 Init(); |
| 22 } | 22 } |
| (...skipping 286 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 309 | 309 |
| 310 // static | 310 // static |
| 311 CryptohomeLibrary* CryptohomeLibrary::GetImpl(bool stub) { | 311 CryptohomeLibrary* CryptohomeLibrary::GetImpl(bool stub) { |
| 312 if (stub) | 312 if (stub) |
| 313 return new CryptohomeLibraryStubImpl(); | 313 return new CryptohomeLibraryStubImpl(); |
| 314 else | 314 else |
| 315 return new CryptohomeLibraryImpl(); | 315 return new CryptohomeLibraryImpl(); |
| 316 } | 316 } |
| 317 | 317 |
| 318 } // namespace chromeos | 318 } // namespace chromeos |
| OLD | NEW |