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

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: de Morgan's law simplification. 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..af1d83c24db6ae1e0f08e3178b3f44f1cc67995a 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.
+ SET_PASSPHRASE_FAILED,
+
// The sync client cannot reach the server.
SERVER_UNREACHABLE,
@@ -212,16 +215,21 @@ class ProfileSyncServiceHarness : public ProfileSyncServiceObserver {
// for a particular datatype.
std::string GetUpdatedTimestamp(syncable::ModelType model_type);
- // Gets the status from |service_| in pretty printable form.
+ // Gets detailed status from |service_| in pretty-printable form.
std::string GetServiceStatus();
// When in WAITING_FOR_ENCRYPTION state, we check to see if this type is now
// 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