Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(99)

Side by Side Diff: chrome/browser/chrome_browser_main_android.cc

Issue 10819003: Upstreaming ChromeBrowserMainAndroid (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase 2 Created 8 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
(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 }
OLDNEW
« no previous file with comments | « chrome/browser/chrome_browser_main_android.h ('k') | chrome/browser/chrome_browser_main_posix.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698