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

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

Issue 969103003: Don't save duplicates of wallet addresses to local Autofill. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: make test work Created 5 years, 9 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 | « components/autofill/core/browser/webdata/autofill_webdata_service.h ('k') | no next file » | 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/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/logging.h" 8 #include "base/logging.h"
9 #include "base/message_loop/message_loop_proxy.h" 9 #include "base/message_loop/message_loop_proxy.h"
10 #include "base/stl_util.h" 10 #include "base/stl_util.h"
(...skipping 111 matching lines...) Expand 10 before | Expand all | Expand 10 after
122 autofill_backend_, guid)); 122 autofill_backend_, guid));
123 } 123 }
124 124
125 WebDataServiceBase::Handle AutofillWebDataService::GetAutofillProfiles( 125 WebDataServiceBase::Handle AutofillWebDataService::GetAutofillProfiles(
126 WebDataServiceConsumer* consumer) { 126 WebDataServiceConsumer* consumer) {
127 return wdbs_->ScheduleDBTaskWithResult(FROM_HERE, 127 return wdbs_->ScheduleDBTaskWithResult(FROM_HERE,
128 Bind(&AutofillWebDataBackendImpl::GetAutofillProfiles, autofill_backend_), 128 Bind(&AutofillWebDataBackendImpl::GetAutofillProfiles, autofill_backend_),
129 consumer); 129 consumer);
130 } 130 }
131 131
132 WebDataServiceBase::Handle AutofillWebDataService::GetAutofillServerProfiles( 132 WebDataServiceBase::Handle AutofillWebDataService::GetServerProfiles(
133 WebDataServiceConsumer* consumer) { 133 WebDataServiceConsumer* consumer) {
134 return wdbs_->ScheduleDBTaskWithResult(FROM_HERE, 134 return wdbs_->ScheduleDBTaskWithResult(
135 Bind(&AutofillWebDataBackendImpl::GetAutofillServerProfiles, 135 FROM_HERE,
136 autofill_backend_), 136 Bind(&AutofillWebDataBackendImpl::GetServerProfiles, autofill_backend_),
137 consumer); 137 consumer);
138 } 138 }
139 139
140 void AutofillWebDataService::UpdateAutofillEntries( 140 void AutofillWebDataService::UpdateAutofillEntries(
141 const std::vector<autofill::AutofillEntry>& autofill_entries) { 141 const std::vector<autofill::AutofillEntry>& autofill_entries) {
142 wdbs_->ScheduleDBTask(FROM_HERE, 142 wdbs_->ScheduleDBTask(FROM_HERE,
143 Bind(&AutofillWebDataBackendImpl::UpdateAutofillEntries, 143 Bind(&AutofillWebDataBackendImpl::UpdateAutofillEntries,
144 autofill_backend_, 144 autofill_backend_,
145 autofill_entries)); 145 autofill_entries));
146 } 146 }
(...skipping 116 matching lines...) Expand 10 before | Expand all | Expand 10 after
263 } 263 }
264 264
265 void AutofillWebDataService::NotifyAutofillMultipleChangedOnUIThread() { 265 void AutofillWebDataService::NotifyAutofillMultipleChangedOnUIThread() {
266 DCHECK(ui_thread_->BelongsToCurrentThread()); 266 DCHECK(ui_thread_->BelongsToCurrentThread());
267 FOR_EACH_OBSERVER(AutofillWebDataServiceObserverOnUIThread, 267 FOR_EACH_OBSERVER(AutofillWebDataServiceObserverOnUIThread,
268 ui_observer_list_, 268 ui_observer_list_,
269 AutofillMultipleChanged()); 269 AutofillMultipleChanged());
270 } 270 }
271 271
272 } // namespace autofill 272 } // namespace autofill
OLDNEW
« no previous file with comments | « components/autofill/core/browser/webdata/autofill_webdata_service.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698