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

Unified Diff: sync/tools/testserver/run_sync_testserver.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/tools/testserver/run_sync_testserver.cc
diff --git a/sync/tools/testserver/run_sync_testserver.cc b/sync/tools/testserver/run_sync_testserver.cc
index 2057db2295c416b1917e7e097916450fc77de7bf..8ffa61ac898ef7d00f8eb0f0b70a9dd20638613f 100644
--- a/sync/tools/testserver/run_sync_testserver.cc
+++ b/sync/tools/testserver/run_sync_testserver.cc
@@ -24,7 +24,7 @@ static void PrintUsage() {
// the sync HTTP and XMPP sever functionality respectively.
static bool RunSyncTest(
const base::FilePath::StringType& sync_test_script_name) {
- scoped_ptr<syncer::LocalSyncTestServer> test_server(
+ std::unique_ptr<syncer::LocalSyncTestServer> test_server(
new syncer::LocalSyncTestServer());
if (!test_server->SetPythonPath()) {
LOG(ERROR) << "Error trying to set python path. Exiting.";
@@ -106,7 +106,7 @@ int main(int argc, const char* argv[]) {
uint16_t xmpp_port = 0;
GetPortFromSwitch("xmpp-port", &xmpp_port);
- scoped_ptr<syncer::LocalSyncTestServer> test_server(
+ std::unique_ptr<syncer::LocalSyncTestServer> test_server(
new syncer::LocalSyncTestServer(port, xmpp_port));
if (!test_server->Start()) {
printf("Error: failed to start python sync test server. Exiting.\n");

Powered by Google App Engine
This is Rietveld 408576698