| OLD | NEW |
| 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 } |
| OLD | NEW |