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

Unified Diff: sync/internal_api/http_bridge_unittest.cc

Issue 1866243002: Convert //sync from scoped_ptr to std::unique_ptr (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 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 side-by-side diff with in-line comments
Download patch
Index: sync/internal_api/http_bridge_unittest.cc
diff --git a/sync/internal_api/http_bridge_unittest.cc b/sync/internal_api/http_bridge_unittest.cc
index f69bc755da6ee0f18fc4fb07d599bacb33736a16..d2620d503b3556f6a3e344303440b8c8ab0eac39 100644
--- a/sync/internal_api/http_bridge_unittest.cc
+++ b/sync/internal_api/http_bridge_unittest.cc
@@ -475,7 +475,7 @@ void HttpBridgeRunOnSyncThread(
syncer::HttpPostProviderInterface** bridge_out,
base::WaitableEvent* signal_when_created,
base::WaitableEvent* wait_for_shutdown) {
- scoped_ptr<syncer::HttpBridgeFactory> bridge_factory(
+ std::unique_ptr<syncer::HttpBridgeFactory> bridge_factory(
new syncer::HttpBridgeFactory(baseline_context_getter,
NetworkTimeUpdateCallback(),
factory_cancelation_signal));
@@ -562,10 +562,9 @@ TEST_F(MAYBE_SyncHttpBridgeTest, EarlyAbortFactory) {
// UI Thread: Initialize the HttpBridgeFactory. The next step would be to
// post a task to SBH::Core to have it initialized.
- scoped_ptr<syncer::HttpBridgeFactory> factory(
- new HttpBridgeFactory(baseline_context_getter.get(),
- NetworkTimeUpdateCallback(),
- &release_request_context_signal));
+ std::unique_ptr<syncer::HttpBridgeFactory> factory(new HttpBridgeFactory(
+ baseline_context_getter.get(), NetworkTimeUpdateCallback(),
+ &release_request_context_signal));
// UI Thread: A very early shutdown request arrives and executes on the UI
// thread before the posted sync thread task is run.

Powered by Google App Engine
This is Rietveld 408576698