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

Side by Side Diff: remoting/host/remoting_me2me_host.cc

Issue 2211473003: Remove calls to deprecated MessageLoop methods on Windows and Linux. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase 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
« no previous file with comments | « remoting/host/daemon_process_unittest.cc ('k') | remoting/host/win/rdp_client_unittest.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 // This file implements a standalone host process for Me2Me. 5 // This file implements a standalone host process for Me2Me.
6 6
7 #include <stddef.h> 7 #include <stddef.h>
8 8
9 #include <cstdint> 9 #include <cstdint>
10 #include <memory> 10 #include <memory>
11 #include <string> 11 #include <string>
12 #include <utility> 12 #include <utility>
13 13
14 #include "base/bind.h" 14 #include "base/bind.h"
15 #include "base/callback.h" 15 #include "base/callback.h"
16 #include "base/command_line.h" 16 #include "base/command_line.h"
17 #include "base/debug/alias.h" 17 #include "base/debug/alias.h"
18 #include "base/files/file_path.h" 18 #include "base/files/file_path.h"
19 #include "base/files/file_util.h" 19 #include "base/files/file_util.h"
20 #include "base/macros.h" 20 #include "base/macros.h"
21 #include "base/memory/ptr_util.h" 21 #include "base/memory/ptr_util.h"
22 #include "base/message_loop/message_loop.h" 22 #include "base/message_loop/message_loop.h"
23 #include "base/run_loop.h"
23 #include "base/single_thread_task_runner.h" 24 #include "base/single_thread_task_runner.h"
24 #include "base/strings/string_number_conversions.h" 25 #include "base/strings/string_number_conversions.h"
25 #include "base/strings/string_util.h" 26 #include "base/strings/string_util.h"
26 #include "base/strings/stringize_macros.h" 27 #include "base/strings/stringize_macros.h"
27 #include "base/strings/utf_string_conversions.h" 28 #include "base/strings/utf_string_conversions.h"
28 #include "build/build_config.h" 29 #include "build/build_config.h"
29 #include "ipc/attachment_broker_unprivileged.h" 30 #include "ipc/attachment_broker_unprivileged.h"
30 #include "ipc/ipc_channel.h" 31 #include "ipc/ipc_channel.h"
31 #include "ipc/ipc_channel_proxy.h" 32 #include "ipc/ipc_channel_proxy.h"
32 #include "ipc/ipc_listener.h" 33 #include "ipc/ipc_listener.h"
(...skipping 1627 matching lines...) Expand 10 before | Expand all | Expand 10 after
1660 1661
1661 // Create & start the HostProcess using these threads. 1662 // Create & start the HostProcess using these threads.
1662 // TODO(wez): The HostProcess holds a reference to itself until Shutdown(). 1663 // TODO(wez): The HostProcess holds a reference to itself until Shutdown().
1663 // Remove this hack as part of the multi-process refactoring. 1664 // Remove this hack as part of the multi-process refactoring.
1664 int exit_code = kSuccessExitCode; 1665 int exit_code = kSuccessExitCode;
1665 ShutdownWatchdog shutdown_watchdog( 1666 ShutdownWatchdog shutdown_watchdog(
1666 base::TimeDelta::FromSeconds(kShutdownTimeoutSeconds)); 1667 base::TimeDelta::FromSeconds(kShutdownTimeoutSeconds));
1667 new HostProcess(std::move(context), &exit_code, &shutdown_watchdog); 1668 new HostProcess(std::move(context), &exit_code, &shutdown_watchdog);
1668 1669
1669 // Run the main (also UI) message loop until the host no longer needs it. 1670 // Run the main (also UI) message loop until the host no longer needs it.
1670 message_loop.Run(); 1671 base::RunLoop().Run();
1671 1672
1672 return exit_code; 1673 return exit_code;
1673 } 1674 }
1674 1675
1675 } // namespace remoting 1676 } // namespace remoting
OLDNEW
« no previous file with comments | « remoting/host/daemon_process_unittest.cc ('k') | remoting/host/win/rdp_client_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698