diff options
author | kkimlabs@chromium.org <kkimlabs@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-10-04 21:39:19 +0000 |
---|---|---|
committer | kkimlabs@chromium.org <kkimlabs@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-10-04 21:39:19 +0000 |
commit | fe6659458aaff6e92d206a0e086dbe9985b68c35 (patch) | |
tree | 12dce6b500a9bc2e0f17e7e9f04ea1c8dd1542d0 /chrome/browser/android/chromium_application.cc | |
parent | b6ba05d90aaa93a4e707bdec67ba2c043a3a533f (diff) | |
download | chromium_src-fe6659458aaff6e92d206a0e086dbe9985b68c35.zip chromium_src-fe6659458aaff6e92d206a0e086dbe9985b68c35.tar.gz chromium_src-fe6659458aaff6e92d206a0e086dbe9985b68c35.tar.bz2 |
[Android] Add settings link on EME infobar.
BUG=298445
Review URL: https://codereview.chromium.org/25370002
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@227089 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/android/chromium_application.cc')
-rw-r--r-- | chrome/browser/android/chromium_application.cc | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/chrome/browser/android/chromium_application.cc b/chrome/browser/android/chromium_application.cc new file mode 100644 index 0000000..c6e64ca --- /dev/null +++ b/chrome/browser/android/chromium_application.cc @@ -0,0 +1,25 @@ +// Copyright 2013 The Chromium Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +#include "chrome/browser/android/chromium_application.h" + +#include "base/android/jni_android.h" +#include "jni/ChromiumApplication_jni.h" + +namespace chrome { +namespace android { + +// static +bool ChromiumApplication::RegisterBindings(JNIEnv* env) { + return RegisterNativesImpl(env); +} + +void ChromiumApplication::OpenProtectedContentSettings() { + Java_ChromiumApplication_openProtectedContentSettings( + base::android::AttachCurrentThread(), + base::android::GetApplicationContext()); +} + +} // namespace android +} // namespace chrome |