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

Unified Diff: sync/api/attachments/attachment_service_proxy_unittest.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: Forgot a class keyword. Created 6 years, 9 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 side-by-side diff with in-line comments
Download patch
Index: sync/api/attachments/attachment_service_proxy_unittest.cc
diff --git a/sync/api/attachments/attachment_service_proxy_unittest.cc b/sync/api/attachments/attachment_service_proxy_unittest.cc
index eed5e6b872928b03d64af27331e0b9bcde6e6503..d5fa30e97f0cc7e4d20e8a5c7123381de51ec1b6 100644
--- a/sync/api/attachments/attachment_service_proxy_unittest.cc
+++ b/sync/api/attachments/attachment_service_proxy_unittest.cc
@@ -104,8 +104,8 @@ class AttachmentServiceProxyTest : public testing::Test,
stub_thread.reset(new base::Thread("attachment service stub thread"));
stub_thread->Start();
stub.reset(new StubAttachmentService);
- proxy.reset(new AttachmentServiceProxy(stub_thread->message_loop_proxy(),
- stub->AsWeakPtr()));
+ proxy = new AttachmentServiceProxy(stub_thread->message_loop_proxy(),
+ stub->AsWeakPtr());
sync_data =
SyncData::CreateLocalData("tag", "title", sync_pb::EntitySpecifics());
@@ -156,7 +156,7 @@ class AttachmentServiceProxyTest : public testing::Test,
base::MessageLoop loop;
scoped_ptr<base::Thread> stub_thread;
scoped_ptr<StubAttachmentService> stub;
- scoped_ptr<AttachmentServiceProxy> proxy;
+ scoped_refptr<AttachmentServiceProxy> proxy;
SyncData sync_data;
SyncData sync_data_delete;

Powered by Google App Engine
This is Rietveld 408576698