| OLD | NEW |
| (Empty) |
| 1 // Copyright (c) 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 "base/android/context_types.h" | |
| 6 | |
| 7 #include "base/android/jni_android.h" | |
| 8 #include "base/android/scoped_java_ref.h" | |
| 9 #include "base/files/file_path.h" | |
| 10 #include "jni/ContextTypes_jni.h" | |
| 11 | |
| 12 namespace base { | |
| 13 namespace android { | |
| 14 | |
| 15 bool IsRunningInWebapp() { | |
| 16 JNIEnv* env = AttachCurrentThread(); | |
| 17 return static_cast<bool>( | |
| 18 Java_ContextTypes_isRunningInWebapp(env, GetApplicationContext())); | |
| 19 } | |
| 20 | |
| 21 bool RegisterContextTypes(JNIEnv* env) { | |
| 22 return RegisterNativesImpl(env); | |
| 23 } | |
| 24 | |
| 25 } // namespace android | |
| 26 } // namespace base | |
| OLD | NEW |