OLD | NEW |
(Empty) | |
| 1 // Copyright (c) 2012 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 "chrome/browser/chrome_browser_main_android.h" |
| 6 |
| 7 #include "base/android/jni_android.h" |
| 8 #include "chrome/browser/android/chrome_jni_registrar.h" |
| 9 #include "chrome/common/chrome_switches.h" |
| 10 #include "content/public/common/main_function_params.h" |
| 11 #include "net/android/network_change_notifier_factory.h" |
| 12 #include "net/base/network_change_notifier.h" |
| 13 |
| 14 ChromeBrowserMainPartsAndroid::ChromeBrowserMainPartsAndroid( |
| 15 const content::MainFunctionParams& parameters) |
| 16 : ChromeBrowserMainParts(parameters) { |
| 17 } |
| 18 |
| 19 ChromeBrowserMainPartsAndroid::~ChromeBrowserMainPartsAndroid() { |
| 20 } |
| 21 |
| 22 void ChromeBrowserMainPartsAndroid::PreEarlyInitialization() { |
| 23 JNIEnv* env = base::android::AttachCurrentThread(); |
| 24 DCHECK(env); |
| 25 |
| 26 chrome::android::RegisterJni(env); |
| 27 |
| 28 net::NetworkChangeNotifier::SetFactory( |
| 29 new net::android::NetworkChangeNotifierFactory()); |
| 30 |
| 31 // Chrome on Android does not use default MessageLoop. It has its own |
| 32 // Android specific MessageLoop. |
| 33 DCHECK(!main_message_loop_.get()); |
| 34 main_message_loop_.reset(new MessageLoop(MessageLoop::TYPE_UI)); |
| 35 MessageLoopForUI::current()->Start(); |
| 36 |
| 37 ChromeBrowserMainParts::PreEarlyInitialization(); |
| 38 } |
| 39 |
| 40 void ChromeBrowserMainPartsAndroid::ShowMissingLocaleMessageBox() { |
| 41 NOTREACHED(); |
| 42 } |
| 43 |
| 44 void RecordBreakpadStatusUMA(MetricsService* metrics) { |
| 45 // TODO: crbug.com/139023 |
| 46 NOTIMPLEMENTED(); |
| 47 } |
| 48 |
| 49 void WarnAboutMinimumSystemRequirements() { |
| 50 } |
OLD | NEW |