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

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

Issue 2142123002: [Autofill] Run autofill-profile de-dupe after sync starts if sync is enabled. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Better logging and fix mathp's comments Created 4 years, 5 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
« no previous file with comments | « no previous file | components/autofill/core/browser/autofill_profile.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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/autofill_manager.h" 5 #include "components/autofill/core/browser/autofill_manager.h"
6 6
7 #include <stddef.h> 7 #include <stddef.h>
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <algorithm> 10 #include <algorithm>
(...skipping 196 matching lines...) Expand 10 before | Expand all | Expand 10 after
207 user_did_autofill_(false), 207 user_did_autofill_(false),
208 user_did_edit_autofilled_field_(false), 208 user_did_edit_autofilled_field_(false),
209 user_did_accept_upload_prompt_(false), 209 user_did_accept_upload_prompt_(false),
210 external_delegate_(NULL), 210 external_delegate_(NULL),
211 test_delegate_(NULL), 211 test_delegate_(NULL),
212 weak_ptr_factory_(this) { 212 weak_ptr_factory_(this) {
213 if (enable_download_manager == ENABLE_AUTOFILL_DOWNLOAD_MANAGER) { 213 if (enable_download_manager == ENABLE_AUTOFILL_DOWNLOAD_MANAGER) {
214 download_manager_.reset(new AutofillDownloadManager(driver, this)); 214 download_manager_.reset(new AutofillDownloadManager(driver, this));
215 } 215 }
216 CountryNames::SetLocaleString(app_locale_); 216 CountryNames::SetLocaleString(app_locale_);
217 if (personal_data_ && client_)
218 personal_data_->OnSyncServiceInitialized(client_->GetSyncService());
217 } 219 }
218 220
219 AutofillManager::~AutofillManager() {} 221 AutofillManager::~AutofillManager() {}
220 222
221 // static 223 // static
222 void AutofillManager::RegisterProfilePrefs( 224 void AutofillManager::RegisterProfilePrefs(
223 user_prefs::PrefRegistrySyncable* registry) { 225 user_prefs::PrefRegistrySyncable* registry) {
224 // This pref is not synced because it's for a signin promo, which by 226 // This pref is not synced because it's for a signin promo, which by
225 // definition will not be synced. 227 // definition will not be synced.
226 registry->RegisterIntegerPref( 228 registry->RegisterIntegerPref(
(...skipping 1818 matching lines...) Expand 10 before | Expand all | Expand 10 after
2045 if (i > 0) 2047 if (i > 0)
2046 fputs("Next oldest form:\n", file); 2048 fputs("Next oldest form:\n", file);
2047 } 2049 }
2048 fputs("\n", file); 2050 fputs("\n", file);
2049 2051
2050 fclose(file); 2052 fclose(file);
2051 } 2053 }
2052 #endif // ENABLE_FORM_DEBUG_DUMP 2054 #endif // ENABLE_FORM_DEBUG_DUMP
2053 2055
2054 } // namespace autofill 2056 } // namespace autofill
OLDNEW
« no previous file with comments | « no previous file | components/autofill/core/browser/autofill_profile.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698