Chromium Code Reviews| Index: content/shell/shell_browser_main_parts_android.cc |
| diff --git a/content/shell/shell_browser_main_parts_android.cc b/content/shell/shell_browser_main_parts_android.cc |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..f006befd610c696dfbee10e328af7feb5ab81918 |
| --- /dev/null |
| +++ b/content/shell/shell_browser_main_parts_android.cc |
| @@ -0,0 +1,37 @@ |
| +// 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
|
| +// Use of this source code is governed by a BSD-style license that can be |
| +// found in the LICENSE file. |
| + |
| +#include "content/shell/shell_browser_main_parts_android.h" |
| + |
| +#include "base/android/jni_android.h" |
| +#include "content/public/common/main_function_params.h" |
| + |
| +namespace content { |
| + |
| +ShellBrowserMainPartsAndroid::ShellBrowserMainPartsAndroid( |
| + const content::MainFunctionParams& parameters) |
| + : ShellBrowserMainParts(parameters) { |
| +} |
| + |
| +ShellBrowserMainPartsAndroid::~ShellBrowserMainPartsAndroid() { |
| +} |
| + |
| +void ShellBrowserMainPartsAndroid::PreEarlyInitialization() { |
| + // TODO(tedchoc): Setup the NetworkChangeNotifier here. |
| + ShellBrowserMainParts::PreEarlyInitialization(); |
| +} |
| + |
| +MessageLoop* ShellBrowserMainPartsAndroid::GetMainMessageLoop() { |
| + DCHECK(!main_message_loop_.get()); |
| + main_message_loop_.reset(new MessageLoop(MessageLoop::TYPE_UI)); |
| + return main_message_loop_.get(); |
| +} |
| + |
| +void ShellBrowserMainPartsAndroid::PostMainMessageLoopStart() { |
| + MessageLoopForUI::current()->Start(); |
| + |
| + ShellBrowserMainParts::PostMainMessageLoopStart(); |
| +} |
| + |
| +} // namespace content |