// Copyright (c) 2012 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "chrome/browser/chrome_browser_main_android.h" #include "chrome/app/breakpad_linux.h" #include "content/public/common/main_function_params.h" #include "net/android/network_change_notifier_factory_android.h" #include "net/base/network_change_notifier.h" ChromeBrowserMainPartsAndroid::ChromeBrowserMainPartsAndroid( const content::MainFunctionParams& parameters) : ChromeBrowserMainParts(parameters) { } ChromeBrowserMainPartsAndroid::~ChromeBrowserMainPartsAndroid() { } void ChromeBrowserMainPartsAndroid::PreProfileInit() { #if defined(USE_LINUX_BREAKPAD) // TODO(jcivelli): we should not initialize the crash-reporter when it was not // enabled. Right now if it is disabled we still generate the minidumps but we // do not upload them. InitCrashReporter(); #endif ChromeBrowserMainParts::PreProfileInit(); } void ChromeBrowserMainPartsAndroid::PreEarlyInitialization() { net::NetworkChangeNotifier::SetFactory( new net::NetworkChangeNotifierFactoryAndroid()); // Chrome on Android does not use default MessageLoop. It has its own // Android specific MessageLoop. DCHECK(!main_message_loop_.get()); main_message_loop_.reset(new MessageLoop(MessageLoop::TYPE_UI)); MessageLoopForUI::current()->Start(); ChromeBrowserMainParts::PreEarlyInitialization(); } void ChromeBrowserMainPartsAndroid::ShowMissingLocaleMessageBox() { NOTREACHED(); } void RecordBreakpadStatusUMA(MetricsService* metrics) { // TODO: crbug.com/139023 NOTIMPLEMENTED(); } void WarnAboutMinimumSystemRequirements() { }