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

Unified Diff: chrome/test/live_sync/profile_sync_service_test_harness.cc

Issue 1161006: Make it clear what last_sync_timestamp actually tracks. Update (Closed)
Patch Set: Undo accidental patch-juggling mistake. Created 10 years, 9 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 | « chrome/common/webmessageportchannel_impl.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/test/live_sync/profile_sync_service_test_harness.cc
diff --git a/chrome/test/live_sync/profile_sync_service_test_harness.cc b/chrome/test/live_sync/profile_sync_service_test_harness.cc
index 7c4ce652f197c4dc2e4e57f798e21b26c52000a0..4bcc27313b6f9bf647384db4de6cf5b41ecb4859 100644
--- a/chrome/test/live_sync/profile_sync_service_test_harness.cc
+++ b/chrome/test/live_sync/profile_sync_service_test_harness.cc
@@ -16,9 +16,9 @@
using browser_sync::sessions::SyncSessionSnapshot;
-// The default value for min_updates_needed_ when we're not in a call to
-// WaitForUpdatesRecievedAtLeast.
-static const int kMinUpdatesNeededNone = -1;
+// The default value for min_timestamp_needed_ when we're not in the
+// WAITING_FOR_UPDATES state.
+static const int kMinTimestampNeededNone = -1;
static const ProfileSyncService::Status kInvalidStatus = {};
@@ -87,7 +87,7 @@ ProfileSyncServiceTestHarness::ProfileSyncServiceTestHarness(
: wait_state_(WAITING_FOR_INITIAL_CALLBACK), profile_(p), service_(NULL),
last_status_(kInvalidStatus),
last_timestamp_(0),
- min_timestamp_needed_(kMinUpdatesNeededNone),
+ min_timestamp_needed_(kMinTimestampNeededNone),
username_(username), password_(password) {
// Ensure the profile has enough prefs registered for use by sync.
if (!p->GetPrefs()->FindPreference(prefs::kAcceptLanguages))
« no previous file with comments | « chrome/common/webmessageportchannel_impl.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698