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

Side by Side Diff: components/password_manager/core/browser/password_store.cc

Issue 536623003: Fixups in components/ for scoped_refptr operator T* removal. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 6 years, 3 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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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/password_manager/core/browser/password_store.h" 5 #include "components/password_manager/core/browser/password_store.h"
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "base/debug/dump_without_crashing.h" 8 #include "base/debug/dump_without_crashing.h"
9 #include "base/memory/scoped_ptr.h" 9 #include "base/memory/scoped_ptr.h"
10 #include "base/message_loop/message_loop.h" 10 #include "base/message_loop/message_loop.h"
(...skipping 237 matching lines...) Expand 10 before | Expand all | Expand 10 after
248 #endif 248 #endif
249 } 249 }
250 } 250 }
251 251
252 template<typename BackendFunc> 252 template<typename BackendFunc>
253 void PasswordStore::Schedule( 253 void PasswordStore::Schedule(
254 BackendFunc func, 254 BackendFunc func,
255 PasswordStoreConsumer* consumer) { 255 PasswordStoreConsumer* consumer) {
256 GetLoginsRequest* request = new GetLoginsRequest(consumer); 256 GetLoginsRequest* request = new GetLoginsRequest(consumer);
257 consumer->cancelable_task_tracker()->PostTask( 257 consumer->cancelable_task_tracker()->PostTask(
258 GetBackgroundTaskRunner(), 258 GetBackgroundTaskRunner().get(),
259 FROM_HERE, 259 FROM_HERE,
260 base::Bind(func, this, base::Owned(request))); 260 base::Bind(func, this, base::Owned(request)));
261 } 261 }
262 262
263 void PasswordStore::WrapModificationTask(ModificationTask task) { 263 void PasswordStore::WrapModificationTask(ModificationTask task) {
264 PasswordStoreChangeList changes = task.Run(); 264 PasswordStoreChangeList changes = task.Run();
265 NotifyLoginsChanged(changes); 265 NotifyLoginsChanged(changes);
266 } 266 }
267 267
268 #if defined(PASSWORD_MANAGER_ENABLE_SYNC) 268 #if defined(PASSWORD_MANAGER_ENABLE_SYNC)
269 void PasswordStore::InitSyncableService( 269 void PasswordStore::InitSyncableService(
270 const syncer::SyncableService::StartSyncFlare& flare) { 270 const syncer::SyncableService::StartSyncFlare& flare) {
271 DCHECK(GetBackgroundTaskRunner()->BelongsToCurrentThread()); 271 DCHECK(GetBackgroundTaskRunner()->BelongsToCurrentThread());
272 DCHECK(!syncable_service_); 272 DCHECK(!syncable_service_);
273 syncable_service_.reset(new PasswordSyncableService(this)); 273 syncable_service_.reset(new PasswordSyncableService(this));
274 syncable_service_->InjectStartSyncFlare(flare); 274 syncable_service_->InjectStartSyncFlare(flare);
275 } 275 }
276 276
277 void PasswordStore::DestroySyncableService() { 277 void PasswordStore::DestroySyncableService() {
278 DCHECK(GetBackgroundTaskRunner()->BelongsToCurrentThread()); 278 DCHECK(GetBackgroundTaskRunner()->BelongsToCurrentThread());
279 syncable_service_.reset(); 279 syncable_service_.reset();
280 } 280 }
281 #endif 281 #endif
282 282
283 } // namespace password_manager 283 } // namespace password_manager
OLDNEW
« no previous file with comments | « components/password_manager/core/browser/password_manager_unittest.cc ('k') | components/pdf/renderer/ppb_pdf_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698