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

Side by Side Diff: components/sync/driver/fake_sync_client.h

Issue 2471183003: Do not observe MessageLoop destruction from ModelSafeWorker. (Closed)
Patch Set: CR maxbogue #23 Created 4 years, 1 month 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 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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 #ifndef COMPONENTS_SYNC_DRIVER_FAKE_SYNC_CLIENT_H_ 5 #ifndef COMPONENTS_SYNC_DRIVER_FAKE_SYNC_CLIENT_H_
6 #define COMPONENTS_SYNC_DRIVER_FAKE_SYNC_CLIENT_H_ 6 #define COMPONENTS_SYNC_DRIVER_FAKE_SYNC_CLIENT_H_
7 7
8 #include <memory> 8 #include <memory>
9 9
10 #include "base/macros.h" 10 #include "base/macros.h"
(...skipping 24 matching lines...) Expand all
35 autofill::PersonalDataManager* GetPersonalDataManager() override; 35 autofill::PersonalDataManager* GetPersonalDataManager() override;
36 BookmarkUndoService* GetBookmarkUndoServiceIfExists() override; 36 BookmarkUndoService* GetBookmarkUndoServiceIfExists() override;
37 invalidation::InvalidationService* GetInvalidationService() override; 37 invalidation::InvalidationService* GetInvalidationService() override;
38 scoped_refptr<ExtensionsActivity> GetExtensionsActivity() override; 38 scoped_refptr<ExtensionsActivity> GetExtensionsActivity() override;
39 sync_sessions::SyncSessionsClient* GetSyncSessionsClient() override; 39 sync_sessions::SyncSessionsClient* GetSyncSessionsClient() override;
40 base::WeakPtr<SyncableService> GetSyncableServiceForType( 40 base::WeakPtr<SyncableService> GetSyncableServiceForType(
41 ModelType type) override; 41 ModelType type) override;
42 base::WeakPtr<ModelTypeSyncBridge> GetSyncBridgeForModelType( 42 base::WeakPtr<ModelTypeSyncBridge> GetSyncBridgeForModelType(
43 ModelType type) override; 43 ModelType type) override;
44 scoped_refptr<ModelSafeWorker> CreateModelWorkerForGroup( 44 scoped_refptr<ModelSafeWorker> CreateModelWorkerForGroup(
45 ModelSafeGroup group, 45 ModelSafeGroup group) override;
46 WorkerLoopDestructionObserver* observer) override;
47 SyncApiComponentFactory* GetSyncApiComponentFactory() override; 46 SyncApiComponentFactory* GetSyncApiComponentFactory() override;
48 47
49 void SetModelTypeSyncBridge(ModelTypeSyncBridge* bridge); 48 void SetModelTypeSyncBridge(ModelTypeSyncBridge* bridge);
50 49
51 private: 50 private:
52 sync_preferences::TestingPrefServiceSyncable pref_service_; 51 sync_preferences::TestingPrefServiceSyncable pref_service_;
53 ModelTypeSyncBridge* bridge_; 52 ModelTypeSyncBridge* bridge_;
54 SyncApiComponentFactory* factory_; 53 SyncApiComponentFactory* factory_;
55 std::unique_ptr<FakeSyncService> sync_service_; 54 std::unique_ptr<FakeSyncService> sync_service_;
56 55
57 DISALLOW_COPY_AND_ASSIGN(FakeSyncClient); 56 DISALLOW_COPY_AND_ASSIGN(FakeSyncClient);
58 }; 57 };
59 58
60 } // namespace syncer 59 } // namespace syncer
61 60
62 #endif // COMPONENTS_SYNC_DRIVER_FAKE_SYNC_CLIENT_H_ 61 #endif // COMPONENTS_SYNC_DRIVER_FAKE_SYNC_CLIENT_H_
OLDNEW
« no previous file with comments | « components/password_manager/sync/browser/password_model_worker.cc ('k') | components/sync/driver/fake_sync_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698