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

Unified Diff: chrome/browser/sync/profile_sync_service.cc

Issue 661410: Improve autofill unit test (Closed)
Patch Set: Remove TODO. Created 10 years, 10 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.cc
diff --git a/chrome/browser/sync/profile_sync_service.cc b/chrome/browser/sync/profile_sync_service.cc
index 34dcbfe19cc7dfe7d0c6012b24fd1f5c6cc494af..fc0ddba73739d0203fe8c4f5f647994771e59f03 100644
--- a/chrome/browser/sync/profile_sync_service.cc
+++ b/chrome/browser/sync/profile_sync_service.cc
@@ -258,7 +258,6 @@ void ProfileSyncService::OnUnrecoverableError() {
void ProfileSyncService::OnBackendInitialized() {
backend_initialized_ = true;
- StartProcessingChangesIfReady();
// The very first time the backend initializes is effectively the first time
// we can say we successfully "synced". last_synced_time_ will only be null
@@ -266,6 +265,8 @@ void ProfileSyncService::OnBackendInitialized() {
if (last_synced_time_.is_null())
UpdateLastSyncedTime();
FOR_EACH_OBSERVER(Observer, observers_, OnStateChanged());
+
+ StartProcessingChangesIfReady();
}
void ProfileSyncService::OnSyncCycleCompleted() {
« no previous file with comments | « chrome/browser/sync/glue/autofill_model_associator.cc ('k') | chrome/browser/sync/profile_sync_service_autofill_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698