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

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

Issue 2130453004: [Sync] Move //sync to //components/sync. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase. Created 4 years, 4 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 #include <set> 9 #include <set>
9 #include <utility> 10 #include <utility>
10 11
11 #include "base/logging.h" 12 #include "base/logging.h"
12 #include "base/strings/string_util.h" 13 #include "base/strings/string_util.h"
13 #include "base/strings/utf_string_conversions.h" 14 #include "base/strings/utf_string_conversions.h"
14 #include "components/autofill/core/browser/autofill_profile.h" 15 #include "components/autofill/core/browser/autofill_profile.h"
15 #include "components/autofill/core/browser/credit_card.h" 16 #include "components/autofill/core/browser/credit_card.h"
16 #include "components/autofill/core/browser/webdata/autofill_table.h" 17 #include "components/autofill/core/browser/webdata/autofill_table.h"
17 #include "components/autofill/core/browser/webdata/autofill_webdata_backend.h" 18 #include "components/autofill/core/browser/webdata/autofill_webdata_backend.h"
18 #include "components/autofill/core/browser/webdata/autofill_webdata_service.h" 19 #include "components/autofill/core/browser/webdata/autofill_webdata_service.h"
19 #include "sync/api/sync_error_factory.h" 20 #include "components/sync/api/sync_error_factory.h"
20 #include "sync/protocol/sync.pb.h" 21 #include "components/sync/protocol/sync.pb.h"
21 22
22 namespace autofill { 23 namespace autofill {
23 24
24 namespace { 25 namespace {
25 26
26 void* UserDataKey() { 27 void* UserDataKey() {
27 // 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
28 // with something else. 29 // with something else.
29 static int user_data_key = 0; 30 static int user_data_key = 0;
30 return reinterpret_cast<void*>(&user_data_key); 31 return reinterpret_cast<void*>(&user_data_key);
(...skipping 288 matching lines...) Expand 10 before | Expand all | Expand 10 after
319 merge_result.set_num_items_after_association( 320 merge_result.set_num_items_after_association(
320 static_cast<int>(wallet_cards.size() + wallet_addresses.size())); 321 static_cast<int>(wallet_cards.size() + wallet_addresses.size()));
321 322
322 if (webdata_backend_ && (changed_cards || changed_addresses)) 323 if (webdata_backend_ && (changed_cards || changed_addresses))
323 webdata_backend_->NotifyOfMultipleAutofillChanges(); 324 webdata_backend_->NotifyOfMultipleAutofillChanges();
324 325
325 return merge_result; 326 return merge_result;
326 } 327 }
327 328
328 } // namespace autofil 329 } // namespace autofil
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698