OLD | NEW |
(Empty) | |
| 1 // Copyright 2013 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 "content/browser/browser_startup_configuration.h" |
| 6 |
| 7 #if defined(OS_ANDROID) |
| 8 #include "base/android/jni_android.h" |
| 9 #include "jni/BrowserStartupConfiguration_jni.h" |
| 10 #endif |
| 11 |
| 12 namespace content { |
| 13 |
| 14 bool BrowserMayStartAsynchronously() { |
| 15 #if defined(OS_ANDROID) |
| 16 JNIEnv* env = base::android::AttachCurrentThread(); |
| 17 return Java_BrowserStartupConfiguration_browserMayStartAsynchonously(env); |
| 18 #else |
| 19 return false; |
| 20 #endif |
| 21 } |
| 22 |
| 23 void BrowserStartupComplete(int result) { |
| 24 #if defined(OS_ANDROID) |
| 25 JNIEnv* env = base::android::AttachCurrentThread(); |
| 26 Java_BrowserStartupConfiguration_browserStartupComplete(env, result); |
| 27 #endif |
| 28 } |
| 29 |
| 30 #if defined(OS_ANDROID) |
| 31 bool RegisterBrowserStartupConfiguration(JNIEnv* env) { |
| 32 return RegisterNativesImpl(env); |
| 33 } |
| 34 #endif |
| 35 } // namespace content |
OLD | NEW |