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

Unified Diff: chrome/browser/chromeos/dbus/cryptohome_client.cc

Issue 9466005: Make sure the device recovers from policy loss in the consumer case. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebased to ToT and cleaned up the unit tests. Created 8 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
Index: chrome/browser/chromeos/dbus/cryptohome_client.cc
diff --git a/chrome/browser/chromeos/dbus/cryptohome_client.cc b/chrome/browser/chromeos/dbus/cryptohome_client.cc
index fe1c4e36b774f1f022b0455f66d175f3862d011c..579b8d850949f487800d0ad59ecebebbd9d1a183 100644
--- a/chrome/browser/chromeos/dbus/cryptohome_client.cc
+++ b/chrome/browser/chromeos/dbus/cryptohome_client.cc
@@ -99,6 +99,12 @@ class CryptohomeClientImpl : public CryptohomeClient {
}
// CryptohomeClient override.
+ virtual bool Unmount(bool *success) OVERRIDE {
+ INITIALIZE_METHOD_CALL(method_call, cryptohome::kCryptohomeUnmount);
+ return CallMethodAndBlock(&method_call, base::Bind(&PopBool, success));
+ }
+
+ // CryptohomeClient override.
virtual void AsyncCheckKey(const std::string& username,
const std::string& key,
AsyncMethodCallback callback) OVERRIDE {
@@ -465,6 +471,12 @@ class CryptohomeClientStubImpl : public CryptohomeClient {
}
// CryptohomeClient override.
+ virtual bool Unmount(bool* success) OVERRIDE {
+ *success = true;
+ return true;
+ }
+
+ // CryptohomeClient override.
virtual void AsyncCheckKey(const std::string& username,
const std::string& key,
AsyncMethodCallback callback) OVERRIDE {
« no previous file with comments | « chrome/browser/chromeos/dbus/cryptohome_client.h ('k') | chrome/browser/chromeos/dbus/mock_cryptohome_client.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698