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

Side by Side Diff: sync/test/engine/injectable_sync_context_proxy.cc

Issue 1382743004: [Sync] Move ModelTypeProcessor* and rename *Impl to Shared*. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: also the test Created 5 years, 2 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 "sync/test/engine/injectable_sync_context_proxy.h" 5 #include "sync/test/engine/injectable_sync_context_proxy.h"
6 6
7 #include "sync/engine/commit_queue.h" 7 #include "sync/engine/commit_queue.h"
8 #include "sync/engine/model_type_processor_impl.h"
9 #include "sync/internal_api/public/activation_context.h" 8 #include "sync/internal_api/public/activation_context.h"
9 #include "sync/internal_api/public/shared_model_type_processor.h"
stanisc 2015/10/05 18:11:35 This class will be deleted in my change.
maxbogue 2015/10/08 17:59:56 Acknowledged.
10 10
11 namespace syncer_v2 { 11 namespace syncer_v2 {
12 12
13 InjectableSyncContextProxy::InjectableSyncContextProxy( 13 InjectableSyncContextProxy::InjectableSyncContextProxy(
14 CommitQueue* queue) 14 CommitQueue* queue)
15 : is_worker_connected_(false), queue_(queue) { 15 : is_worker_connected_(false), queue_(queue) {
16 } 16 }
17 17
18 InjectableSyncContextProxy::~InjectableSyncContextProxy() { 18 InjectableSyncContextProxy::~InjectableSyncContextProxy() {
19 } 19 }
(...skipping 20 matching lines...) Expand all
40 scoped_ptr<SyncContextProxy> InjectableSyncContextProxy::Clone() const { 40 scoped_ptr<SyncContextProxy> InjectableSyncContextProxy::Clone() const {
41 // This confuses ownership. We trust that our callers are well-behaved. 41 // This confuses ownership. We trust that our callers are well-behaved.
42 return scoped_ptr<SyncContextProxy>(new InjectableSyncContextProxy(queue_)); 42 return scoped_ptr<SyncContextProxy>(new InjectableSyncContextProxy(queue_));
43 } 43 }
44 44
45 CommitQueue* InjectableSyncContextProxy::GetQueue() { 45 CommitQueue* InjectableSyncContextProxy::GetQueue() {
46 return queue_; 46 return queue_;
47 } 47 }
48 48
49 } // namespace syncer 49 } // namespace syncer
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698