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

Side by Side Diff: sync/api/attachments/attachment_service_proxy_for_test.cc

Issue 213003004: Replace calls to 3-arg SyncData::CreateLocalData with 5-arg version. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@syncapi
Patch Set: Merge with master. Created 6 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
(Empty)
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
3 // found in the LICENSE file.
4
5 #include "sync/api/attachments/attachment_service_proxy_for_test.h"
6
7 #include "base/message_loop/message_loop_proxy.h"
8 #include "sync/api/attachments/fake_attachment_service.h"
9
10 namespace syncer {
11
12 AttachmentServiceProxyForTestMember::AttachmentServiceProxyForTestMember(
13 scoped_ptr<AttachmentService> wrapped)
14 : wrapped_(wrapped.Pass()), wrapped_weak_ptr_factory_(wrapped_.get()) {}
15
16 AttachmentServiceProxyForTestMember::~AttachmentServiceProxyForTestMember() {}
17
18 AttachmentServiceProxyForTest::AttachmentServiceProxyForTest()
19 : AttachmentServiceProxyForTestMember(
20 FakeAttachmentService::CreateForTest()),
21 AttachmentServiceProxy(base::MessageLoopProxy::current(),
22 wrapped_weak_ptr_factory_.GetWeakPtr()) {}
tim (not reviewing) 2014/04/04 18:11:34 Yeah, wow. That's quite the conundrum. I had to go
maniscalco 2014/04/04 19:14:23 Fair enough. I'm convinced in this case the benef
maniscalco 2014/04/04 22:57:41 Good news and bad news. Good news is I can use a
23
24 AttachmentServiceProxyForTest::~AttachmentServiceProxyForTest() {}
25
26 } // namespace syncer
OLDNEW
« no previous file with comments | « sync/api/attachments/attachment_service_proxy_for_test.h ('k') | sync/api/sync_change_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698