OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 "chrome/browser/webdata/autofill_profile_syncable_service.h" | 5 #include "chrome/browser/webdata/autofill_profile_syncable_service.h" |
6 | 6 |
7 #include "base/guid.h" | 7 #include "base/guid.h" |
8 #include "base/location.h" | 8 #include "base/location.h" |
9 #include "base/logging.h" | 9 #include "base/logging.h" |
10 #include "base/utf_string_conversions.h" | 10 #include "base/utf_string_conversions.h" |
11 #include "chrome/browser/profiles/profile.h" | |
12 #include "chrome/browser/webdata/autofill_table.h" | 11 #include "chrome/browser/webdata/autofill_table.h" |
13 #include "chrome/browser/webdata/web_data_service.h" | 12 #include "chrome/browser/webdata/web_data_service.h" |
14 #include "chrome/browser/webdata/web_database.h" | 13 #include "chrome/browser/webdata/web_database.h" |
15 #include "chrome/common/chrome_notification_types.h" | 14 #include "chrome/common/chrome_notification_types.h" |
16 #include "components/autofill/browser/autofill_profile.h" | 15 #include "components/autofill/browser/autofill_profile.h" |
17 #include "components/autofill/browser/form_group.h" | 16 #include "components/autofill/browser/form_group.h" |
18 #include "content/public/browser/browser_thread.h" | 17 #include "content/public/browser/browser_thread.h" |
19 #include "content/public/browser/notification_details.h" | 18 #include "content/public/browser/notification_details.h" |
20 #include "content/public/browser/notification_source.h" | 19 #include "content/public/browser/notification_source.h" |
21 #include "sync/api/sync_error.h" | 20 #include "sync/api/sync_error.h" |
(...skipping 544 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
566 merge_into->OverwriteWithOrAddTo(merge_from); | 565 merge_into->OverwriteWithOrAddTo(merge_from); |
567 return (merge_into->Compare(merge_from) != 0); | 566 return (merge_into->Compare(merge_from) != 0); |
568 } | 567 } |
569 | 568 |
570 AutofillTable* AutofillProfileSyncableService::GetAutofillTable() const { | 569 AutofillTable* AutofillProfileSyncableService::GetAutofillTable() const { |
571 return AutofillTable::FromWebDatabase(web_data_service_->GetDatabase()); | 570 return AutofillTable::FromWebDatabase(web_data_service_->GetDatabase()); |
572 } | 571 } |
573 | 572 |
574 AutofillProfileSyncableService::DataBundle::DataBundle() {} | 573 AutofillProfileSyncableService::DataBundle::DataBundle() {} |
575 | 574 |
576 AutofillProfileSyncableService::DataBundle::~DataBundle() { | 575 AutofillProfileSyncableService::DataBundle::~DataBundle() {} |
577 } | |
OLD | NEW |