| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 "base/bind.h" | 5 #include "base/bind.h" |
| 6 #include "base/bind_helpers.h" | 6 #include "base/bind_helpers.h" |
| 7 #include "base/command_line.h" | 7 #include "base/command_line.h" |
| 8 #include "base/compiler_specific.h" | 8 #include "base/compiler_specific.h" |
| 9 #include "base/message_loop/message_loop.h" |
| 9 #include "base/strings/string_number_conversions.h" | 10 #include "base/strings/string_number_conversions.h" |
| 10 #include "base/threading/thread_task_runner_handle.h" | 11 #include "base/threading/thread_task_runner_handle.h" |
| 11 #include "chrome/browser/devtools/device/devtools_android_bridge.h" | 12 #include "chrome/browser/devtools/device/devtools_android_bridge.h" |
| 12 #include "chrome/browser/devtools/device/tcp_device_provider.h" | 13 #include "chrome/browser/devtools/device/tcp_device_provider.h" |
| 13 #include "chrome/browser/devtools/remote_debugging_server.h" | 14 #include "chrome/browser/devtools/remote_debugging_server.h" |
| 14 #include "chrome/browser/profiles/profile.h" | 15 #include "chrome/browser/profiles/profile.h" |
| 15 #include "chrome/browser/ui/browser.h" | 16 #include "chrome/browser/ui/browser.h" |
| 16 #include "chrome/browser/ui/tabs/tab_strip_model.h" | 17 #include "chrome/browser/ui/tabs/tab_strip_model.h" |
| 17 #include "chrome/common/chrome_switches.h" | 18 #include "chrome/common/chrome_switches.h" |
| 18 #include "chrome/common/pref_names.h" | 19 #include "chrome/common/pref_names.h" |
| (...skipping 161 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 180 base::RunLoop run_loop; | 181 base::RunLoop run_loop; |
| 181 | 182 |
| 182 self_provider->set_release_callback_for_test( | 183 self_provider->set_release_callback_for_test( |
| 183 base::Bind(base::IgnoreResult(&base::SingleThreadTaskRunner::PostTask), | 184 base::Bind(base::IgnoreResult(&base::SingleThreadTaskRunner::PostTask), |
| 184 base::ThreadTaskRunnerHandle::Get(), FROM_HERE, | 185 base::ThreadTaskRunnerHandle::Get(), FROM_HERE, |
| 185 run_loop.QuitWhenIdleClosure())); | 186 run_loop.QuitWhenIdleClosure())); |
| 186 wait_for_port_forwarding.reset(); | 187 wait_for_port_forwarding.reset(); |
| 187 | 188 |
| 188 content::RunThisRunLoop(&run_loop); | 189 content::RunThisRunLoop(&run_loop); |
| 189 } | 190 } |
| OLD | NEW |