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

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

Issue 2109643003: Add billing address to masked server credit cards. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Add version_66.sql to the build file. 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
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 206 matching lines...) Expand 10 before | Expand all | Expand 10 after
217 } 217 }
218 218
219 void AutofillWebDataService::UpdateServerAddressUsageStats( 219 void AutofillWebDataService::UpdateServerAddressUsageStats(
220 const AutofillProfile& profile) { 220 const AutofillProfile& profile) {
221 wdbs_->ScheduleDBTask( 221 wdbs_->ScheduleDBTask(
222 FROM_HERE, 222 FROM_HERE,
223 Bind(&AutofillWebDataBackendImpl::UpdateServerAddressUsageStats, 223 Bind(&AutofillWebDataBackendImpl::UpdateServerAddressUsageStats,
224 autofill_backend_, profile)); 224 autofill_backend_, profile));
225 } 225 }
226 226
227 void AutofillWebDataService::UpdateServerCardBillingAddress(
228 const CreditCard& credit_card) {
229 wdbs_->ScheduleDBTask(
230 FROM_HERE,
231 Bind(&AutofillWebDataBackendImpl::UpdateServerCardBillingAddress,
232 autofill_backend_, credit_card));
233 }
234
227 void AutofillWebDataService::RemoveAutofillDataModifiedBetween( 235 void AutofillWebDataService::RemoveAutofillDataModifiedBetween(
228 const Time& delete_begin, 236 const Time& delete_begin,
229 const Time& delete_end) { 237 const Time& delete_end) {
230 wdbs_->ScheduleDBTask( 238 wdbs_->ScheduleDBTask(
231 FROM_HERE, 239 FROM_HERE,
232 Bind(&AutofillWebDataBackendImpl::RemoveAutofillDataModifiedBetween, 240 Bind(&AutofillWebDataBackendImpl::RemoveAutofillDataModifiedBetween,
233 autofill_backend_, delete_begin, delete_end)); 241 autofill_backend_, delete_begin, delete_end));
234 } 242 }
235 243
236 void AutofillWebDataService::RemoveOriginURLsModifiedBetween( 244 void AutofillWebDataService::RemoveOriginURLsModifiedBetween(
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
282 } 290 }
283 291
284 void AutofillWebDataService::NotifyAutofillMultipleChangedOnUIThread() { 292 void AutofillWebDataService::NotifyAutofillMultipleChangedOnUIThread() {
285 DCHECK(ui_thread_->BelongsToCurrentThread()); 293 DCHECK(ui_thread_->BelongsToCurrentThread());
286 FOR_EACH_OBSERVER(AutofillWebDataServiceObserverOnUIThread, 294 FOR_EACH_OBSERVER(AutofillWebDataServiceObserverOnUIThread,
287 ui_observer_list_, 295 ui_observer_list_,
288 AutofillMultipleChanged()); 296 AutofillMultipleChanged());
289 } 297 }
290 298
291 } // namespace autofill 299 } // namespace autofill
OLDNEW
« no previous file with comments | « components/autofill/core/browser/webdata/autofill_webdata_service.h ('k') | components/test/data/web_database/version_66.sql » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698