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

Side by Side Diff: chrome/browser/android/app_hooks.cc

Issue 2738893002: Add flag for enabling/disabling video fullscreen detection (Closed)
Patch Set: s/AppHooksHelper/AppHooks Created 3 years, 9 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
OLDNEW
(Empty)
1 // Copyright 2017 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 "chrome/browser/android/app_hooks.h"
6
7 #include "base/android/jni_android.h"
8 #include "jni/AppHooks_jni.h"
9
10 using base::android::ScopedJavaLocalRef;
11
12 namespace chrome {
13 namespace android {
14
15 bool AppHooks::ShouldDetectVideoFullscreen() {
16 JNIEnv* env = base::android::AttachCurrentThread();
17 ScopedJavaLocalRef<jobject> app_hooks_obj = Java_AppHooks_get(env);
18
19 return Java_AppHooks_shouldDetectVideoFullscreen(env, app_hooks_obj);
20 }
21
22 } // namespace android
23 } // namespace chrome
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698