| 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" |
| (...skipping 150 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 161 | 161 |
| 162 return error; | 162 return error; |
| 163 } | 163 } |
| 164 | 164 |
| 165 void AutofillProfileSyncableService::StopSyncing(syncer::ModelType type) { | 165 void AutofillProfileSyncableService::StopSyncing(syncer::ModelType type) { |
| 166 DCHECK(CalledOnValidThread()); | 166 DCHECK(CalledOnValidThread()); |
| 167 DCHECK_EQ(type, syncer::AUTOFILL_PROFILE); | 167 DCHECK_EQ(type, syncer::AUTOFILL_PROFILE); |
| 168 | 168 |
| 169 sync_processor_.reset(); | 169 sync_processor_.reset(); |
| 170 sync_error_factory_.reset(); | 170 sync_error_factory_.reset(); |
| 171 profiles_.reset(); | 171 profiles_.clear(); |
| 172 profiles_map_.clear(); | 172 profiles_map_.clear(); |
| 173 } | 173 } |
| 174 | 174 |
| 175 syncer::SyncDataList AutofillProfileSyncableService::GetAllSyncData( | 175 syncer::SyncDataList AutofillProfileSyncableService::GetAllSyncData( |
| 176 syncer::ModelType type) const { | 176 syncer::ModelType type) const { |
| 177 DCHECK(CalledOnValidThread()); | 177 DCHECK(CalledOnValidThread()); |
| 178 DCHECK(sync_processor_.get()); | 178 DCHECK(sync_processor_.get()); |
| 179 DCHECK_EQ(type, syncer::AUTOFILL_PROFILE); | 179 DCHECK_EQ(type, syncer::AUTOFILL_PROFILE); |
| 180 | 180 |
| 181 syncer::SyncDataList current_data; | 181 syncer::SyncDataList current_data; |
| (...skipping 348 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 530 } | 530 } |
| 531 | 531 |
| 532 AutofillTable* AutofillProfileSyncableService::GetAutofillTable() const { | 532 AutofillTable* AutofillProfileSyncableService::GetAutofillTable() const { |
| 533 return web_data_service_->GetDatabase()->GetAutofillTable(); | 533 return web_data_service_->GetDatabase()->GetAutofillTable(); |
| 534 } | 534 } |
| 535 | 535 |
| 536 AutofillProfileSyncableService::DataBundle::DataBundle() {} | 536 AutofillProfileSyncableService::DataBundle::DataBundle() {} |
| 537 | 537 |
| 538 AutofillProfileSyncableService::DataBundle::~DataBundle() { | 538 AutofillProfileSyncableService::DataBundle::~DataBundle() { |
| 539 } | 539 } |
| OLD | NEW |