Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(4996)

Unified Diff: chrome/browser/chromeos/cros/cryptohome_library.cc

Issue 1142005: Mocks for all libcros elements (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 10 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/browser/chromeos/cros/cryptohome_library.h ('k') | chrome/browser/chromeos/cros/language_library.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/chromeos/cros/cryptohome_library.cc
===================================================================
--- chrome/browser/chromeos/cros/cryptohome_library.cc (revision 42341)
+++ chrome/browser/chromeos/cros/cryptohome_library.cc (working copy)
@@ -8,22 +8,18 @@
#include "chrome/browser/chrome_thread.h"
namespace chromeos {
-// static
-CryptohomeLibrary* CryptohomeLibrary::Get() {
- return Singleton<CryptohomeLibrary>::get();
-}
-bool CryptohomeLibrary::CheckKey(const std::string& user_email,
- const std::string& passhash) {
+bool CryptohomeLibraryImpl::CheckKey(const std::string& user_email,
+ const std::string& passhash) {
return chromeos::CryptohomeCheckKey(user_email.c_str(), passhash.c_str());
}
-bool CryptohomeLibrary::Mount(const std::string& user_email,
- const std::string& passhash) {
+bool CryptohomeLibraryImpl::Mount(const std::string& user_email,
+ const std::string& passhash) {
return chromeos::CryptohomeMount(user_email.c_str(), passhash.c_str());
}
-bool CryptohomeLibrary::IsMounted() {
+bool CryptohomeLibraryImpl::IsMounted() {
return chromeos::CryptohomeIsMounted();
}
« no previous file with comments | « chrome/browser/chromeos/cros/cryptohome_library.h ('k') | chrome/browser/chromeos/cros/language_library.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698