Report errors from ChromiumEnv::GetChildren in Posix.
[chromium-blink-merge.git] / base / android / context_types.cc
blob084b1365ce2ee37ab093505e4928597a16568f32
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.
5 #include "base/android/context_types.h"
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"
12 namespace base {
13 namespace android {
15 bool IsRunningInWebapp() {
16 JNIEnv* env = AttachCurrentThread();
17 return static_cast<bool>(
18 Java_ContextTypes_isRunningInWebapp(env, GetApplicationContext()));
21 bool RegisterContextTypes(JNIEnv* env) {
22 return RegisterNativesImpl(env);
25 } // namespace android
26 } // namespace base