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

Unified Diff: chromeos/cryptohome/system_salt_getter.h

Issue 34303002: chromeos: Wait for service to be available when getting system salt (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Add comment Created 7 years, 2 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 | « chromeos/chromeos.gyp ('k') | chromeos/cryptohome/system_salt_getter.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chromeos/cryptohome/system_salt_getter.h
diff --git a/chromeos/cryptohome/system_salt_getter.h b/chromeos/cryptohome/system_salt_getter.h
index d154ff235aa5a6516a55c8b7c735cdb75a1dbcba..a47b617bcf8e386ef0ffde0a9f287359875ca73e 100644
--- a/chromeos/cryptohome/system_salt_getter.h
+++ b/chromeos/cryptohome/system_salt_getter.h
@@ -10,6 +10,7 @@
#include "base/basictypes.h"
#include "base/callback_forward.h"
+#include "base/memory/weak_ptr.h"
#include "chromeos/chromeos_export.h"
namespace chromeos {
@@ -49,11 +50,17 @@ class CHROMEOS_EXPORT SystemSaltGetter {
~SystemSaltGetter();
private:
+ // Used to implement GetSystemSalt().
+ void GetSystemSaltInternal(const GetSystemSaltCallback& callback,
+ bool service_is_available);
+
// Loads the system salt from cryptohome and caches it.
void LoadSystemSalt();
std::string system_salt_;
+ base::WeakPtrFactory<SystemSaltGetter> weak_ptr_factory_;
+
DISALLOW_COPY_AND_ASSIGN(SystemSaltGetter);
};
« no previous file with comments | « chromeos/chromeos.gyp ('k') | chromeos/cryptohome/system_salt_getter.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698