summaryrefslogtreecommitdiffstats
path: root/sync
diff options
context:
space:
mode:
authorgangwu <gangwu@chromium.org>2016-02-12 10:27:40 -0800
committerCommit bot <commit-bot@chromium.org>2016-02-12 18:29:48 +0000
commit1077203273076a70e1f74c6d274daa1a20a9aa49 (patch)
tree98e159411ba264b8efa5e27dc371236118748ddd /sync
parent0a4e23343c8dc5583c4dfa93b94441de6b73d83a (diff)
downloadchromium_src-1077203273076a70e1f74c6d274daa1a20a9aa49.zip
chromium_src-1077203273076a70e1f74c6d274daa1a20a9aa49.tar.gz
chromium_src-1077203273076a70e1f74c6d274daa1a20a9aa49.tar.bz2
Implement The Device Info controller, the controller will create
SharedModelTypeProcessor and pass it to ModelTypeService. And also add a function for get the ModelTypeService in SyncClient. BUG=567234, 547087 Review URL: https://codereview.chromium.org/1681933003 Cr-Commit-Position: refs/heads/master@{#375208}
Diffstat (limited to 'sync')
-rw-r--r--sync/internal_api/public/test/fake_model_type_service.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/sync/internal_api/public/test/fake_model_type_service.h b/sync/internal_api/public/test/fake_model_type_service.h
index 6587203..76d2141 100644
--- a/sync/internal_api/public/test/fake_model_type_service.h
+++ b/sync/internal_api/public/test/fake_model_type_service.h
@@ -7,6 +7,7 @@
#include <string>
+#include "base/memory/weak_ptr.h"
#include "sync/api/data_batch.h"
#include "sync/api/entity_change.h"
#include "sync/api/metadata_batch.h"
@@ -17,7 +18,9 @@ namespace syncer_v2 {
// A non-functional implementation of ModelTypeService for
// testing purposes.
-class FakeModelTypeService : public ModelTypeService {
+class FakeModelTypeService
+ : public ModelTypeService,
+ public base::SupportsWeakPtr<FakeModelTypeService> {
public:
FakeModelTypeService();
~FakeModelTypeService() override;