Cast: Stop logging kVideoFrameSentToEncoder and rename a couple events.
[chromium-blink-merge.git] / chrome / browser / android / chromium_application.cc
blobff77aa556acbd7a4cfd7f622797d037d4803dbbe
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.
5 #include "chrome/browser/android/chromium_application.h"
7 #include "base/android/jni_android.h"
8 #include "jni/ChromiumApplication_jni.h"
10 namespace chrome {
11 namespace android {
13 // static
14 bool ChromiumApplication::RegisterBindings(JNIEnv* env) {
15 return RegisterNativesImpl(env);
18 void ChromiumApplication::OpenProtectedContentSettings() {
19 Java_ChromiumApplication_openProtectedContentSettings(
20 base::android::AttachCurrentThread(),
21 base::android::GetApplicationContext());
24 void ChromiumApplication::ShowSyncSettings() {
25 Java_ChromiumApplication_showSyncSettings(
26 base::android::AttachCurrentThread(),
27 base::android::GetApplicationContext());
30 void ChromiumApplication::ShowTermsOfServiceDialog() {
31 Java_ChromiumApplication_showTermsOfServiceDialog(
32 base::android::AttachCurrentThread(),
33 base::android::GetApplicationContext());
36 bool ChromiumApplication::AreParentalControlsEnabled() {
37 return Java_ChromiumApplication_areParentalControlsEnabled(
38 base::android::AttachCurrentThread(),
39 base::android::GetApplicationContext());
42 } // namespace android
43 } // namespace chrome