| OLD | NEW |
| (Empty) |
| 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 | |
| 3 // found in the LICENSE file. | |
| 4 | |
| 5 #include "base/message_loop/message_loop.h" | |
| 6 #include "base/run_loop.h" | |
| 7 #include "base/threading/platform_thread.h" | |
| 8 #include "content/public/common/main_function_params.h" | |
| 9 | |
| 10 namespace content { | |
| 11 | |
| 12 // Mainline routine for running as the download process. | |
| 13 int DownloadMain(const MainFunctionParams& parameters) { | |
| 14 // The main message loop of the utility process. | |
| 15 base::MessageLoop main_message_loop; | |
| 16 base::PlatformThread::SetName("CrDownloadMain"); | |
| 17 base::RunLoop().Run(); | |
| 18 | |
| 19 return 0; | |
| 20 } | |
| 21 | |
| 22 } // namespace content | |
| OLD | NEW |