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

Side by Side Diff: chrome/browser/webdata/autofill_profile_syncable_service.cc

Issue 10797017: base: Make ScopedVector::clear() destroy elements. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: update location_bar_view_mac.mm Created 8 years, 5 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 | Annotate | Revision Log
OLDNEW
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
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
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 }
OLDNEW
« no previous file with comments | « chrome/browser/ui/webui/options2/password_manager_handler.cc ('k') | chromeos/dbus/ibus/ibus_property.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698