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

Unified Diff: chrome/browser/chromeos/login/easy_unlock/easy_unlock_get_keys_operation.h

Issue 2343213002: chromeos: Avoid EasyUnlockGetKeysOperation D-Bus log spam. (Closed)
Patch Set: Created 4 years, 3 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 | « no previous file | chrome/browser/chromeos/login/easy_unlock/easy_unlock_get_keys_operation.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/chromeos/login/easy_unlock/easy_unlock_get_keys_operation.h
diff --git a/chrome/browser/chromeos/login/easy_unlock/easy_unlock_get_keys_operation.h b/chrome/browser/chromeos/login/easy_unlock/easy_unlock_get_keys_operation.h
index 813ed251d393b3f80b3e7880a37e74c7078d626b..00f25f0323a9f9f87e688f94d3cd2b07b2e33d95 100644
--- a/chrome/browser/chromeos/login/easy_unlock/easy_unlock_get_keys_operation.h
+++ b/chrome/browser/chromeos/login/easy_unlock/easy_unlock_get_keys_operation.h
@@ -26,10 +26,19 @@ class EasyUnlockGetKeysOperation {
const GetKeysCallback& callback);
~EasyUnlockGetKeysOperation();
+ // Starts the operation. If the cryptohome service is not yet available, the
+ // request will be deferred until it is ready.
void Start();
private:
+ // Called once when the cryptohome service is available.
+ void OnCryptohomeAvailable(bool available);
+
+ // Asynchronously requests data for |key_index_| from cryptohome.
void GetKeyData();
+
+ // Callback for GetKeyData(). Updates |devices_|, increments |key_index_|, and
+ // calls GetKeyData() again.
void OnGetKeyData(
bool success,
cryptohome::MountError return_code,
« no previous file with comments | « no previous file | chrome/browser/chromeos/login/easy_unlock/easy_unlock_get_keys_operation.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698