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

Side by Side Diff: content/public/android/java/src/org/chromium/content/app/ContentMain.java

Issue 1471273002: Remove ContentMain.initApplicationContext. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years 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
OLDNEW
1 // Copyright 2012 The Chromium Authors. All rights reserved. 1 // Copyright 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 package org.chromium.content.app; 5 package org.chromium.content.app;
6 6
7 import android.content.Context;
8
9 import org.chromium.base.ContextUtils;
10 import org.chromium.base.annotations.JNINamespace; 7 import org.chromium.base.annotations.JNINamespace;
11 8
12 /** 9 /**
13 * This class is used to initialize all types of process. It corresponds to 10 * This class is used to initialize all types of process. It corresponds to
14 * content/public/app/content_main.h which is not used in Android as it has 11 * content/public/app/content_main.h which is not used in Android as it has
15 * the different initialization process. 12 * the different initialization process.
16 * 13 *
17 * TODO(michaelbai): Refactorying the BrowserProcessMain.java and the 14 * TODO(michaelbai): Refactorying the BrowserProcessMain.java and the
18 * ChildProcessService.java to start ContentMain, and run the process 15 * ChildProcessService.java to start ContentMain, and run the process
19 * specific initialization code in ContentMainRunner::Initialize. 16 * specific initialization code in ContentMainRunner::Initialize.
20 * 17 *
21 **/ 18 **/
22 @JNINamespace("content") 19 @JNINamespace("content")
23 public class ContentMain { 20 public class ContentMain {
24 /** 21 /**
25 * Initialize global application context.
26 **/
27 public static void initApplicationContext(Context context) {
28 ContextUtils.initApplicationContext(context);
29 }
30
31 /**
32 * Start the ContentMainRunner in native side. 22 * Start the ContentMainRunner in native side.
33 **/ 23 **/
34 public static int start() { 24 public static int start() {
35 return nativeStart(); 25 return nativeStart();
36 } 26 }
37 27
38 private static native int nativeStart(); 28 private static native int nativeStart();
39 } 29 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698