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

Side by Side Diff: ppapi/nacl_irt/irt_pnacl_translator_compile.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 | « net/tools/testserver/run_testserver.cc ('k') | ppapi/nacl_irt/irt_pnacl_translator_link.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 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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/macros.h" 5 #include "base/macros.h"
6 #include "base/run_loop.h"
6 #include "build/build_config.h" 7 #include "build/build_config.h"
7 #include "ipc/ipc_listener.h" 8 #include "ipc/ipc_listener.h"
8 #include "ipc/ipc_sync_channel.h" 9 #include "ipc/ipc_sync_channel.h"
9 #include "native_client/src/untrusted/irt/irt_dev.h" 10 #include "native_client/src/untrusted/irt/irt_dev.h"
10 #include "ppapi/nacl_irt/irt_interfaces.h" 11 #include "ppapi/nacl_irt/irt_interfaces.h"
11 #include "ppapi/nacl_irt/plugin_startup.h" 12 #include "ppapi/nacl_irt/plugin_startup.h"
12 #include "ppapi/proxy/ppapi_messages.h" 13 #include "ppapi/proxy/ppapi_messages.h"
13 14
14 #if !defined(OS_NACL_NONSFI) 15 #if !defined(OS_NACL_NONSFI)
15 16
(...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after
94 95
95 std::unique_ptr<IPC::Channel> channel_; 96 std::unique_ptr<IPC::Channel> channel_;
96 const struct nacl_irt_pnacl_compile_funcs* funcs_; 97 const struct nacl_irt_pnacl_compile_funcs* funcs_;
97 98
98 DISALLOW_COPY_AND_ASSIGN(TranslatorCompileListener); 99 DISALLOW_COPY_AND_ASSIGN(TranslatorCompileListener);
99 }; 100 };
100 101
101 void ServeTranslateRequest(const struct nacl_irt_pnacl_compile_funcs* funcs) { 102 void ServeTranslateRequest(const struct nacl_irt_pnacl_compile_funcs* funcs) {
102 base::MessageLoop loop; 103 base::MessageLoop loop;
103 new TranslatorCompileListener(ppapi::GetRendererIPCChannelHandle(), funcs); 104 new TranslatorCompileListener(ppapi::GetRendererIPCChannelHandle(), funcs);
104 loop.Run(); 105 base::RunLoop().Run();
105 } 106 }
106 107
107 } 108 }
108 109
109 const struct nacl_irt_private_pnacl_translator_compile 110 const struct nacl_irt_private_pnacl_translator_compile
110 nacl_irt_private_pnacl_translator_compile = { 111 nacl_irt_private_pnacl_translator_compile = {
111 ServeTranslateRequest 112 ServeTranslateRequest
112 }; 113 };
113 114
114 #endif // !defined(OS_NACL_NONSFI) 115 #endif // !defined(OS_NACL_NONSFI)
OLDNEW
« no previous file with comments | « net/tools/testserver/run_testserver.cc ('k') | ppapi/nacl_irt/irt_pnacl_translator_link.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698