Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | |
|
jam
2012/04/19 21:56:26
right now we got away with using one ShellBrowserM
Ted C
2012/04/20 01:14:14
I have removed this and merged into ShellBrowserMa
| |
| 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 "content/shell/shell_browser_main_parts_android.h" | |
| 6 | |
| 7 #include "base/android/jni_android.h" | |
| 8 #include "content/public/common/main_function_params.h" | |
| 9 | |
| 10 namespace content { | |
| 11 | |
| 12 ShellBrowserMainPartsAndroid::ShellBrowserMainPartsAndroid( | |
| 13 const content::MainFunctionParams& parameters) | |
| 14 : ShellBrowserMainParts(parameters) { | |
| 15 } | |
| 16 | |
| 17 ShellBrowserMainPartsAndroid::~ShellBrowserMainPartsAndroid() { | |
| 18 } | |
| 19 | |
| 20 void ShellBrowserMainPartsAndroid::PreEarlyInitialization() { | |
| 21 // TODO(tedchoc): Setup the NetworkChangeNotifier here. | |
| 22 ShellBrowserMainParts::PreEarlyInitialization(); | |
| 23 } | |
| 24 | |
| 25 MessageLoop* ShellBrowserMainPartsAndroid::GetMainMessageLoop() { | |
| 26 DCHECK(!main_message_loop_.get()); | |
| 27 main_message_loop_.reset(new MessageLoop(MessageLoop::TYPE_UI)); | |
| 28 return main_message_loop_.get(); | |
| 29 } | |
| 30 | |
| 31 void ShellBrowserMainPartsAndroid::PostMainMessageLoopStart() { | |
| 32 MessageLoopForUI::current()->Start(); | |
| 33 | |
| 34 ShellBrowserMainParts::PostMainMessageLoopStart(); | |
| 35 } | |
| 36 | |
| 37 } // namespace content | |
| OLD | NEW |