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

Side by Side Diff: chrome/browser/extensions/api/storage/sync_value_store_cache.cc

Issue 2825963003: Rewrite base::Bind to base::BindOnce with base_bind_rewriters in //chrome/browser/extensions (Closed)
Patch Set: Created 3 years, 8 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 "chrome/browser/extensions/api/storage/sync_value_store_cache.h" 5 #include "chrome/browser/extensions/api/storage/sync_value_store_cache.h"
6 6
7 #include <stddef.h> 7 #include <stddef.h>
8 8
9 #include "chrome/browser/extensions/api/storage/sync_storage_backend.h" 9 #include "chrome/browser/extensions/api/storage/sync_storage_backend.h"
10 #include "chrome/browser/sync/glue/sync_start_util.h" 10 #include "chrome/browser/sync/glue/sync_start_util.h"
(...skipping 25 matching lines...) Expand all
36 const scoped_refptr<SettingsObserverList>& observers, 36 const scoped_refptr<SettingsObserverList>& observers,
37 const base::FilePath& profile_path) 37 const base::FilePath& profile_path)
38 : initialized_(false) { 38 : initialized_(false) {
39 DCHECK_CURRENTLY_ON(BrowserThread::UI); 39 DCHECK_CURRENTLY_ON(BrowserThread::UI);
40 40
41 // This post is safe since the destructor can only be invoked from the 41 // This post is safe since the destructor can only be invoked from the
42 // same message loop, and any potential post of a deletion task must come 42 // same message loop, and any potential post of a deletion task must come
43 // after the constructor returns. 43 // after the constructor returns.
44 BrowserThread::PostTask( 44 BrowserThread::PostTask(
45 BrowserThread::FILE, FROM_HERE, 45 BrowserThread::FILE, FROM_HERE,
46 base::Bind(&SyncValueStoreCache::InitOnFileThread, 46 base::BindOnce(&SyncValueStoreCache::InitOnFileThread,
47 base::Unretained(this), 47 base::Unretained(this), factory, observers, profile_path));
48 factory, observers, profile_path));
49 } 48 }
50 49
51 SyncValueStoreCache::~SyncValueStoreCache() { 50 SyncValueStoreCache::~SyncValueStoreCache() {
52 DCHECK_CURRENTLY_ON(BrowserThread::FILE); 51 DCHECK_CURRENTLY_ON(BrowserThread::FILE);
53 } 52 }
54 53
55 syncer::SyncableService* SyncValueStoreCache::GetSyncableService( 54 syncer::SyncableService* SyncValueStoreCache::GetSyncableService(
56 syncer::ModelType type) const { 55 syncer::ModelType type) const {
57 DCHECK_CURRENTLY_ON(BrowserThread::FILE); 56 DCHECK_CURRENTLY_ON(BrowserThread::FILE);
58 DCHECK(initialized_); 57 DCHECK(initialized_);
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
99 extension_backend_.reset(new SyncStorageBackend( 98 extension_backend_.reset(new SyncStorageBackend(
100 factory, 99 factory,
101 GetSyncQuotaLimits(), 100 GetSyncQuotaLimits(),
102 observers, 101 observers,
103 syncer::EXTENSION_SETTINGS, 102 syncer::EXTENSION_SETTINGS,
104 sync_start_util::GetFlareForSyncableService(profile_path))); 103 sync_start_util::GetFlareForSyncableService(profile_path)));
105 initialized_ = true; 104 initialized_ = true;
106 } 105 }
107 106
108 } // namespace extensions 107 } // namespace extensions
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698