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

Unified Diff: chrome/browser/sync/profile_sync_service_harness.h

Issue 6902101: Refactor sync passphrase setup flow and fix passphrase tests (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase. Created 9 years, 8 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/sync/profile_sync_service_harness.h
diff --git a/chrome/browser/sync/profile_sync_service_harness.h b/chrome/browser/sync/profile_sync_service_harness.h
index 16dc81f99f2c866a1926e37ae38cae24358da965..dfde6748917a1d7d871d2443e46d91d6d78a5e8b 100644
--- a/chrome/browser/sync/profile_sync_service_harness.h
+++ b/chrome/browser/sync/profile_sync_service_harness.h
@@ -172,6 +172,9 @@ class ProfileSyncServiceHarness : public ProfileSyncServiceObserver {
// full sync cycle is not expected to occur.
WAITING_FOR_SYNC_CONFIGURATION,
+ // The sync client needs a passphrase in order to decrypt data.
+ PASSPHRASE_REQUIRED_FOR_DECRYPTION,
+
// The sync client cannot reach the server.
SERVER_UNREACHABLE,
@@ -219,9 +222,14 @@ class ProfileSyncServiceHarness : public ProfileSyncServiceObserver {
// encrypted to determine if we're done.
syncable::ModelType waiting_for_encryption_type_;
+ // The WaitState in which the sync client currently is. Helps determine what
+ // action to take when RunStateChangeMachine() is called.
WaitState wait_state_;
+ // Sync profile associated with this sync client.
Profile* profile_;
+
+ // ProfileSyncService object associated with |profile_|.
ProfileSyncService* service_;
// The harness of the client whose update progress marker we're expecting

Powered by Google App Engine
This is Rietveld 408576698