| OLD | NEW |
| 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 Loading... |
| 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 |
| OLD | NEW |