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

Unified Diff: chromecast/browser/android/jni_registrar.cc

Issue 2570623003: [Chromecast] Turn CastContentWindow into an abstract interface. (Closed)
Patch Set: Fix browser test Created 3 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chromecast/browser/android/jni_registrar.h ('k') | chromecast/browser/cast_content_window.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chromecast/browser/android/jni_registrar.cc
diff --git a/chromecast/browser/android/jni_registrar.cc b/chromecast/browser/android/jni_registrar.cc
new file mode 100644
index 0000000000000000000000000000000000000000..1fc51d804284d26b7122503c6d46598d7f4371fd
--- /dev/null
+++ b/chromecast/browser/android/jni_registrar.cc
@@ -0,0 +1,26 @@
+// Copyright 2016 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 "chromecast/browser/android/jni_registrar.h"
+
+#include "chromecast/browser/android/cast_content_window_android.h"
+#include "chromecast/browser/android/cast_metrics_helper_android.h"
+#include "chromecast/browser/android/cast_web_contents_activity.h"
+
+namespace chromecast {
+namespace shell {
+
+bool RegisterJni(JNIEnv* env) {
+ if (!CastContentWindowAndroid::RegisterJni(env))
+ return false;
+ if (!CastMetricsHelperAndroid::RegisterJni(env))
+ return false;
+ if (!CastWebContentsActivity::RegisterJni(env))
+ return false;
+
+ return true;
+}
+
+} // namespace shell
+} // namespace chromecast
« no previous file with comments | « chromecast/browser/android/jni_registrar.h ('k') | chromecast/browser/cast_content_window.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698