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

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

Issue 2401223002: [Sync] Renaming sync/api* to sync/model*. (Closed)
Patch Set: Missed a comment in a DEPS file, and rebasing. 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 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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_wallet_syncable_serv ice.h" 5 #include "components/autofill/core/browser/webdata/autofill_wallet_syncable_serv ice.h"
6 6
7 #include <stddef.h> 7 #include <stddef.h>
8 8
9 #include <set> 9 #include <set>
10 #include <utility> 10 #include <utility>
11 11
12 #include "base/logging.h" 12 #include "base/logging.h"
13 #include "base/strings/string_util.h" 13 #include "base/strings/string_util.h"
14 #include "base/strings/utf_string_conversions.h" 14 #include "base/strings/utf_string_conversions.h"
15 #include "components/autofill/core/browser/autofill_profile.h" 15 #include "components/autofill/core/browser/autofill_profile.h"
16 #include "components/autofill/core/browser/credit_card.h" 16 #include "components/autofill/core/browser/credit_card.h"
17 #include "components/autofill/core/browser/webdata/autofill_table.h" 17 #include "components/autofill/core/browser/webdata/autofill_table.h"
18 #include "components/autofill/core/browser/webdata/autofill_webdata_backend.h" 18 #include "components/autofill/core/browser/webdata/autofill_webdata_backend.h"
19 #include "components/autofill/core/browser/webdata/autofill_webdata_service.h" 19 #include "components/autofill/core/browser/webdata/autofill_webdata_service.h"
20 #include "components/sync/api/sync_error_factory.h" 20 #include "components/sync/model/sync_error_factory.h"
21 #include "components/sync/protocol/sync.pb.h" 21 #include "components/sync/protocol/sync.pb.h"
22 22
23 namespace autofill { 23 namespace autofill {
24 24
25 namespace { 25 namespace {
26 26
27 void* UserDataKey() { 27 void* UserDataKey() {
28 // Use the address of a static so that COMDAT folding won't ever fold 28 // Use the address of a static so that COMDAT folding won't ever fold
29 // with something else. 29 // with something else.
30 static int user_data_key = 0; 30 static int user_data_key = 0;
(...skipping 289 matching lines...) Expand 10 before | Expand all | Expand 10 after
320 merge_result.set_num_items_after_association( 320 merge_result.set_num_items_after_association(
321 static_cast<int>(wallet_cards.size() + wallet_addresses.size())); 321 static_cast<int>(wallet_cards.size() + wallet_addresses.size()));
322 322
323 if (webdata_backend_ && (changed_cards || changed_addresses)) 323 if (webdata_backend_ && (changed_cards || changed_addresses))
324 webdata_backend_->NotifyOfMultipleAutofillChanges(); 324 webdata_backend_->NotifyOfMultipleAutofillChanges();
325 325
326 return merge_result; 326 return merge_result;
327 } 327 }
328 328
329 } // namespace autofil 329 } // namespace autofil
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698