OLD | NEW |
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_metadata_sync
able_service.h" | 5 #include "components/autofill/core/browser/webdata/autofill_wallet_metadata_sync
able_service.h" |
6 | 6 |
7 #include <stddef.h> | 7 #include <stddef.h> |
8 | 8 |
9 #include <utility> | 9 #include <utility> |
10 | 10 |
11 #include "base/base64.h" | 11 #include "base/base64.h" |
12 #include "base/bind.h" | 12 #include "base/bind.h" |
13 #include "base/location.h" | 13 #include "base/location.h" |
14 #include "base/logging.h" | 14 #include "base/logging.h" |
15 #include "base/memory/ptr_util.h" | 15 #include "base/memory/ptr_util.h" |
16 #include "base/memory/scoped_vector.h" | |
17 #include "base/numerics/safe_conversions.h" | 16 #include "base/numerics/safe_conversions.h" |
18 #include "base/time/time.h" | 17 #include "base/time/time.h" |
19 #include "components/autofill/core/browser/autofill_data_model.h" | 18 #include "components/autofill/core/browser/autofill_data_model.h" |
20 #include "components/autofill/core/browser/autofill_profile.h" | 19 #include "components/autofill/core/browser/autofill_profile.h" |
21 #include "components/autofill/core/browser/credit_card.h" | 20 #include "components/autofill/core/browser/credit_card.h" |
22 #include "components/autofill/core/browser/webdata/autofill_change.h" | 21 #include "components/autofill/core/browser/webdata/autofill_change.h" |
23 #include "components/autofill/core/browser/webdata/autofill_table.h" | 22 #include "components/autofill/core/browser/webdata/autofill_table.h" |
24 #include "components/autofill/core/browser/webdata/autofill_webdata_backend.h" | 23 #include "components/autofill/core/browser/webdata/autofill_webdata_backend.h" |
25 #include "components/autofill/core/browser/webdata/autofill_webdata_service.h" | 24 #include "components/autofill/core/browser/webdata/autofill_webdata_service.h" |
26 #include "components/sync/model/sync_change.h" | 25 #include "components/sync/model/sync_change.h" |
(...skipping 623 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
650 | 649 |
651 if (base::checked_cast<size_t>(remote.use_count()) < local.use_count() && | 650 if (base::checked_cast<size_t>(remote.use_count()) < local.use_count() && |
652 base::Time::FromInternalValue(remote.use_date()) < local.use_date()) { | 651 base::Time::FromInternalValue(remote.use_date()) < local.use_date()) { |
653 SendChangesToSyncServer(syncer::SyncChangeList( | 652 SendChangesToSyncServer(syncer::SyncChangeList( |
654 1, syncer::SyncChange(FROM_HERE, syncer::SyncChange::ACTION_UPDATE, | 653 1, syncer::SyncChange(FROM_HERE, syncer::SyncChange::ACTION_UPDATE, |
655 BuildSyncData(remote.type(), server_id, local)))); | 654 BuildSyncData(remote.type(), server_id, local)))); |
656 } | 655 } |
657 } | 656 } |
658 | 657 |
659 } // namespace autofill | 658 } // namespace autofill |
OLD | NEW |