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

Side by Side Diff: components/autofill/core/browser/webdata/autofill_webdata_service.cc

Issue 2679803002: Revert "[Payments] Add billing_address_id and has_converted to autofill_table" (Closed)
Patch Set: Created 3 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 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/webdata/autofill_webdata_service.h" 5 #include "components/autofill/core/browser/webdata/autofill_webdata_service.h"
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "base/location.h" 8 #include "base/location.h"
9 #include "base/logging.h" 9 #include "base/logging.h"
10 #include "base/single_thread_task_runner.h" 10 #include "base/single_thread_task_runner.h"
(...skipping 194 matching lines...) Expand 10 before | Expand all | Expand 10 after
205 autofill_backend_, id)); 205 autofill_backend_, id));
206 } 206 }
207 207
208 void AutofillWebDataService::ClearAllServerData() { 208 void AutofillWebDataService::ClearAllServerData() {
209 wdbs_->ScheduleDBTask( 209 wdbs_->ScheduleDBTask(
210 FROM_HERE, 210 FROM_HERE,
211 Bind(&AutofillWebDataBackendImpl::ClearAllServerData, 211 Bind(&AutofillWebDataBackendImpl::ClearAllServerData,
212 autofill_backend_)); 212 autofill_backend_));
213 } 213 }
214 214
215 void AutofillWebDataService::UpdateServerCardMetadata( 215 void AutofillWebDataService::UpdateServerCardUsageStats(
216 const CreditCard& credit_card) { 216 const CreditCard& credit_card) {
217 wdbs_->ScheduleDBTask( 217 wdbs_->ScheduleDBTask(
218 FROM_HERE, Bind(&AutofillWebDataBackendImpl::UpdateServerCardMetadata, 218 FROM_HERE,
219 autofill_backend_, credit_card)); 219 Bind(&AutofillWebDataBackendImpl::UpdateServerCardUsageStats,
220 autofill_backend_, credit_card));
220 } 221 }
221 222
222 void AutofillWebDataService::UpdateServerAddressMetadata( 223 void AutofillWebDataService::UpdateServerAddressUsageStats(
223 const AutofillProfile& profile) { 224 const AutofillProfile& profile) {
224 wdbs_->ScheduleDBTask( 225 wdbs_->ScheduleDBTask(
225 FROM_HERE, Bind(&AutofillWebDataBackendImpl::UpdateServerAddressMetadata, 226 FROM_HERE,
226 autofill_backend_, profile)); 227 Bind(&AutofillWebDataBackendImpl::UpdateServerAddressUsageStats,
228 autofill_backend_, profile));
229 }
230
231 void AutofillWebDataService::UpdateServerCardBillingAddress(
232 const CreditCard& credit_card) {
233 wdbs_->ScheduleDBTask(
234 FROM_HERE,
235 Bind(&AutofillWebDataBackendImpl::UpdateServerCardBillingAddress,
236 autofill_backend_, credit_card));
227 } 237 }
228 238
229 void AutofillWebDataService::RemoveAutofillDataModifiedBetween( 239 void AutofillWebDataService::RemoveAutofillDataModifiedBetween(
230 const Time& delete_begin, 240 const Time& delete_begin,
231 const Time& delete_end) { 241 const Time& delete_end) {
232 wdbs_->ScheduleDBTask( 242 wdbs_->ScheduleDBTask(
233 FROM_HERE, 243 FROM_HERE,
234 Bind(&AutofillWebDataBackendImpl::RemoveAutofillDataModifiedBetween, 244 Bind(&AutofillWebDataBackendImpl::RemoveAutofillDataModifiedBetween,
235 autofill_backend_, delete_begin, delete_end)); 245 autofill_backend_, delete_begin, delete_end));
236 } 246 }
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after
290 } 300 }
291 301
292 void AutofillWebDataService::NotifySyncStartedOnUIThread( 302 void AutofillWebDataService::NotifySyncStartedOnUIThread(
293 syncer::ModelType model_type) { 303 syncer::ModelType model_type) {
294 DCHECK(ui_thread_->BelongsToCurrentThread()); 304 DCHECK(ui_thread_->BelongsToCurrentThread());
295 for (auto& ui_observer : ui_observer_list_) 305 for (auto& ui_observer : ui_observer_list_)
296 ui_observer.SyncStarted(model_type); 306 ui_observer.SyncStarted(model_type);
297 } 307 }
298 308
299 } // namespace autofill 309 } // namespace autofill
OLDNEW
« no previous file with comments | « components/autofill/core/browser/webdata/autofill_webdata_service.h ('k') | components/test/data/web_database/version_70.sql » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698