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

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

Issue 10382086: Determine whether user is ephemeral when coming back from a crash (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Created 8 years, 7 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/cros/cryptohome_library.cc
diff --git a/chrome/browser/chromeos/cros/cryptohome_library.cc b/chrome/browser/chromeos/cros/cryptohome_library.cc
index 075e057d12dcffc9a7bbfb7d0244bc143a9c03cf..d6cd030dbdbac2917eb341bf27e9553b76eee50a 100644
--- a/chrome/browser/chromeos/cros/cryptohome_library.cc
+++ b/chrome/browser/chromeos/cros/cryptohome_library.cc
@@ -41,6 +41,13 @@ class CryptohomeLibraryImpl : public CryptohomeLibrary {
return result;
}
+ virtual bool IsMountedForUser(const std::string& username,
+ bool* is_mounted,
+ bool* is_ephemeral_mount) OVERRIDE {
+ return DBusThreadManager::Get()->GetCryptohomeClient()->
+ IsMountedForUser(username, is_mounted, is_ephemeral_mount);
+ }
+
virtual bool TpmIsReady() OVERRIDE {
bool result = false;
DBusThreadManager::Get()->GetCryptohomeClient()->TpmIsReady(&result);
@@ -179,6 +186,14 @@ class CryptohomeLibraryStubImpl : public CryptohomeLibrary {
return true;
}
+ virtual bool IsMountedForUser(const std::string& username,
+ bool* is_mounted,
+ bool* is_ephemeral_mount) OVERRIDE {
+ *is_mounted = true;
+ *is_ephemeral_mount = false;
+ return true;
+ }
+
// Tpm begin ready after 20-th call.
virtual bool TpmIsReady() OVERRIDE {
static int counter = 0;

Powered by Google App Engine
This is Rietveld 408576698