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

Side by Side Diff: base/android/context_types.cc

Issue 136343002: Remove Chrome for TV code. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Addressed scherkus's comments. Created 6 years, 11 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 | Annotate | Revision Log
OLDNEW
(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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698