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

Side by Side Diff: content/app/android/download_main.cc

Issue 2312803003: Remove calls to deprecated MessageLoop methods in content. (Closed)
Patch Set: 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 | « no previous file | content/renderer/media/webmediaplayer_ms_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 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 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/message_loop/message_loop.h" 5 #include "base/message_loop/message_loop.h"
6 #include "base/run_loop.h"
6 #include "base/threading/platform_thread.h" 7 #include "base/threading/platform_thread.h"
7 #include "content/public/common/main_function_params.h" 8 #include "content/public/common/main_function_params.h"
8 9
9 namespace content { 10 namespace content {
10 11
11 // Mainline routine for running as the download process. 12 // Mainline routine for running as the download process.
12 int DownloadMain(const MainFunctionParams& parameters) { 13 int DownloadMain(const MainFunctionParams& parameters) {
13 // The main message loop of the utility process. 14 // The main message loop of the utility process.
14 base::MessageLoop main_message_loop; 15 base::MessageLoop main_message_loop;
15 base::PlatformThread::SetName("CrDownloadMain"); 16 base::PlatformThread::SetName("CrDownloadMain");
16 base::MessageLoop::current()->Run(); 17 base::RunLoop().Run();
17 18
18 return 0; 19 return 0;
19 } 20 }
20 21
21 } // namespace content 22 } // namespace content
OLDNEW
« no previous file with comments | « no previous file | content/renderer/media/webmediaplayer_ms_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698