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

Side by Side Diff: remoting/android/apk/src/org/chromium/chromoting/RemotingApplication.java

Issue 1873383002: [remoting android] Move JNI loading to Application.onCreate() (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@android-host-add-native
Patch Set: rebase, (c) 2016 Created 4 years, 8 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
« no previous file with comments | « remoting/android/BUILD.gn ('k') | remoting/android/host/AndroidManifest.xml » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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.chromoting; 5 package org.chromium.chromoting;
6 6
7 import android.app.Application; 7 import android.app.Application;
8 8
9 import org.chromium.chromoting.accountswitcher.AccountSwitcherFactory; 9 import org.chromium.chromoting.accountswitcher.AccountSwitcherFactory;
10 import org.chromium.chromoting.help.HelpAndFeedbackBasic; 10 import org.chromium.chromoting.help.HelpAndFeedbackBasic;
11 import org.chromium.chromoting.help.HelpSingleton; 11 import org.chromium.chromoting.help.HelpSingleton;
12 import org.chromium.chromoting.jni.JniInterface;
12 13
13 /** Main context for the application. */ 14 /** Main context for the application. */
14 public class RemotingApplication extends Application { 15 public class RemotingApplication extends Application {
15 @Override 16 @Override
16 public void onCreate() { 17 public void onCreate() {
17 super.onCreate(); 18 super.onCreate();
19 JniInterface.loadLibrary(this);
20
18 AccountSwitcherFactory.setInstance(new AccountSwitcherFactory()); 21 AccountSwitcherFactory.setInstance(new AccountSwitcherFactory());
19 HelpSingleton.setInstance(new HelpAndFeedbackBasic()); 22 HelpSingleton.setInstance(new HelpAndFeedbackBasic());
20 } 23 }
21 } 24 }
OLDNEW
« no previous file with comments | « remoting/android/BUILD.gn ('k') | remoting/android/host/AndroidManifest.xml » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698