Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | |
|
no sievers
2016/02/03 22:46:51
nit: 2016
qinmin
2016/02/03 23:37:36
Done.
| |
| 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/threading/platform_thread.h" | |
| 7 #include "content/public/common/main_function_params.h" | |
| 8 | |
| 9 namespace content { | |
| 10 | |
| 11 // Mainline routine for running as the download process. | |
| 12 int DownloadMain(const MainFunctionParams& parameters) { | |
| 13 // The main message loop of the utility process. | |
| 14 base::MessageLoop main_message_loop; | |
| 15 base::PlatformThread::SetName("CrDownloadMain"); | |
| 16 base::MessageLoop::current()->Run(); | |
| 17 | |
| 18 return 0; | |
| 19 } | |
| 20 | |
| 21 } // namespace content | |
| OLD | NEW |