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

Side by Side Diff: chrome/test/chromedriver/commands.cc

Issue 2341693002: Re-write many calls to WrapUnique() with MakeUnique() (Closed)
Patch Set: Change std::string() back to "" to fix compile Created 4 years, 3 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 (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 "chrome/test/chromedriver/commands.h" 5 #include "chrome/test/chromedriver/commands.h"
6 6
7 #include <stddef.h> 7 #include <stddef.h>
8 8
9 #include <algorithm> 9 #include <algorithm>
10 #include <list> 10 #include <list>
(...skipping 311 matching lines...) Expand 10 before | Expand all | Expand 10 after
322 base::Passed(base::WrapUnique(params.DeepCopy())), 322 base::Passed(base::WrapUnique(params.DeepCopy())),
323 base::ThreadTaskRunnerHandle::Get(), callback, 323 base::ThreadTaskRunnerHandle::Get(), callback,
324 base::Bind(&TerminateSessionThreadOnCommandThread, 324 base::Bind(&TerminateSessionThreadOnCommandThread,
325 session_thread_map, session_id))); 325 session_thread_map, session_id)));
326 } 326 }
327 } 327 }
328 328
329 namespace internal { 329 namespace internal {
330 330
331 void CreateSessionOnSessionThreadForTesting(const std::string& id) { 331 void CreateSessionOnSessionThreadForTesting(const std::string& id) {
332 SetThreadLocalSession(base::WrapUnique(new Session(id))); 332 SetThreadLocalSession(base::MakeUnique<Session>(id));
333 } 333 }
334 334
335 } // namespace internal 335 } // namespace internal
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698