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

Side by Side Diff: components/autofill/core/browser/personal_data_manager.cc

Issue 2388673002: Revert of [Sync] Move //components/sync to the syncer namespace. (patchset #5 id:40001 of https://co (Closed)
Patch Set: Created 4 years, 2 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 unified diff | Download patch
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "components/autofill/core/browser/personal_data_manager.h" 5 #include "components/autofill/core/browser/personal_data_manager.h"
6 6
7 #include <stddef.h> 7 #include <stddef.h>
8 8
9 #include <algorithm> 9 #include <algorithm>
10 #include <list> 10 #include <list>
(...skipping 285 matching lines...) Expand 10 before | Expand all | Expand 10 after
296 CancelPendingQuery(&pending_profiles_query_); 296 CancelPendingQuery(&pending_profiles_query_);
297 CancelPendingQuery(&pending_server_profiles_query_); 297 CancelPendingQuery(&pending_server_profiles_query_);
298 CancelPendingQuery(&pending_creditcards_query_); 298 CancelPendingQuery(&pending_creditcards_query_);
299 CancelPendingQuery(&pending_server_creditcards_query_); 299 CancelPendingQuery(&pending_server_creditcards_query_);
300 300
301 if (database_.get()) 301 if (database_.get())
302 database_->RemoveObserver(this); 302 database_->RemoveObserver(this);
303 } 303 }
304 304
305 void PersonalDataManager::OnSyncServiceInitialized( 305 void PersonalDataManager::OnSyncServiceInitialized(
306 syncer::SyncService* sync_service) { 306 sync_driver::SyncService* sync_service) {
307 // We want to know when, if at all, we need to run autofill profile de- 307 // We want to know when, if at all, we need to run autofill profile de-
308 // duplication: now or after waiting until sync has started. 308 // duplication: now or after waiting until sync has started.
309 if (!is_autofill_profile_dedupe_pending_) { 309 if (!is_autofill_profile_dedupe_pending_) {
310 // De-duplication isn't enabled. 310 // De-duplication isn't enabled.
311 return; 311 return;
312 } 312 }
313 313
314 // If the sync service is configured to start and to sync autofill profiles, 314 // If the sync service is configured to start and to sync autofill profiles,
315 // then we can just let the notification that sync has started trigger the 315 // then we can just let the notification that sync has started trigger the
316 // de-duplication. 316 // de-duplication.
(...skipping 1439 matching lines...) Expand 10 before | Expand all | Expand 10 after
1756 if (profile_to_merge->IsVerified()) 1756 if (profile_to_merge->IsVerified())
1757 break; 1757 break;
1758 } 1758 }
1759 } 1759 }
1760 } 1760 }
1761 AutofillMetrics::LogNumberOfProfilesRemovedDuringDedupe( 1761 AutofillMetrics::LogNumberOfProfilesRemovedDuringDedupe(
1762 profiles_to_delete->size()); 1762 profiles_to_delete->size());
1763 } 1763 }
1764 1764
1765 } // namespace autofill 1765 } // namespace autofill
OLDNEW
« no previous file with comments | « components/autofill/core/browser/personal_data_manager.h ('k') | components/autofill/core/browser/test_autofill_client.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698