| 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/cryptohome_library.h" | 5 #include "chrome/browser/chromeos/cros/cryptohome_library.h" |
| 6 | 6 |
| 7 #include "base/bind.h" | 7 #include "base/bind.h" |
| 8 #include "base/command_line.h" | 8 #include "base/command_line.h" |
| 9 #include "base/hash_tables.h" | 9 #include "base/hash_tables.h" |
| 10 #include "base/message_loop.h" | 10 #include "base/message_loop.h" |
| 11 #include "chrome/browser/chromeos/cros/cros_library.h" | 11 #include "chrome/browser/chromeos/cros/cros_library.h" |
| 12 #include "chrome/common/chrome_switches.h" | 12 #include "chrome/common/chrome_switches.h" |
| 13 #include "content/public/browser/browser_thread.h" | 13 #include "content/public/browser/browser_thread.h" |
| 14 | 14 |
| 15 using content::BrowserThread; |
| 16 |
| 15 namespace { | 17 namespace { |
| 16 const char kStubSystemSalt[] = "stub_system_salt"; | 18 const char kStubSystemSalt[] = "stub_system_salt"; |
| 17 } | 19 } |
| 18 | 20 |
| 19 namespace chromeos { | 21 namespace chromeos { |
| 20 | 22 |
| 21 // This class handles the interaction with the ChromeOS cryptohome library APIs. | 23 // This class handles the interaction with the ChromeOS cryptohome library APIs. |
| 22 class CryptohomeLibraryImpl : public CryptohomeLibrary { | 24 class CryptohomeLibraryImpl : public CryptohomeLibrary { |
| 23 public: | 25 public: |
| 24 CryptohomeLibraryImpl() {} | 26 CryptohomeLibraryImpl() {} |
| (...skipping 453 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 478 CryptohomeLibrary* impl; | 480 CryptohomeLibrary* impl; |
| 479 if (stub) | 481 if (stub) |
| 480 impl = new CryptohomeLibraryStubImpl(); | 482 impl = new CryptohomeLibraryStubImpl(); |
| 481 else | 483 else |
| 482 impl = new CryptohomeLibraryImpl(); | 484 impl = new CryptohomeLibraryImpl(); |
| 483 impl->Init(); | 485 impl->Init(); |
| 484 return impl; | 486 return impl; |
| 485 } | 487 } |
| 486 | 488 |
| 487 } // namespace chromeos | 489 } // namespace chromeos |
| OLD | NEW |