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

Side by Side Diff: chromecast/android/cast_jni_registrar.cc

Issue 1154383006: Adding crash utilities to chromecast/crash. (Closed) Base URL: https://eureka-internal.googlesource.com/chromium/src@master
Patch Set: cast_shell_unittests not built for android Created 5 years, 6 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
« no previous file with comments | « chromecast/android/DEPS ('k') | chromecast/app/BUILD.gn » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "chromecast/android/cast_jni_registrar.h" 5 #include "chromecast/android/cast_jni_registrar.h"
6 6
7 #include "base/android/jni_android.h" 7 #include "base/android/jni_android.h"
8 #include "base/android/jni_registrar.h" 8 #include "base/android/jni_registrar.h"
9 #include "chromecast/android/cast_metrics_helper_android.h" 9 #include "chromecast/android/cast_metrics_helper_android.h"
10 #include "chromecast/app/android/crash_handler.h"
10 #include "chromecast/base/cast_sys_info_android.h" 11 #include "chromecast/base/cast_sys_info_android.h"
11 #include "chromecast/base/chromecast_config_android.h" 12 #include "chromecast/base/chromecast_config_android.h"
12 #include "chromecast/browser/android/cast_window_android.h" 13 #include "chromecast/browser/android/cast_window_android.h"
13 #include "chromecast/browser/android/cast_window_manager.h" 14 #include "chromecast/browser/android/cast_window_manager.h"
14 #include "chromecast/crash/android/crash_handler.h"
15 #include "components/external_video_surface/component_jni_registrar.h" 15 #include "components/external_video_surface/component_jni_registrar.h"
16 16
17 namespace chromecast { 17 namespace chromecast {
18 namespace android { 18 namespace android {
19 19
20 namespace { 20 namespace {
21 21
22 static base::android::RegistrationMethod kMethods[] = { 22 static base::android::RegistrationMethod kMethods[] = {
23 { "CastMetricsHelperAndroid", CastMetricsHelperAndroid::RegisterJni }, 23 { "CastMetricsHelperAndroid", CastMetricsHelperAndroid::RegisterJni },
24 { "CastSysInfoAndroid", CastSysInfoAndroid::RegisterJni }, 24 { "CastSysInfoAndroid", CastSysInfoAndroid::RegisterJni },
25 { "CastWindowAndroid", shell::CastWindowAndroid::RegisterJni }, 25 { "CastWindowAndroid", shell::CastWindowAndroid::RegisterJni },
26 { "CastWindowManager", shell::RegisterCastWindowManager }, 26 { "CastWindowManager", shell::RegisterCastWindowManager },
27 { "ChromecastConfigAndroid", ChromecastConfigAndroid::RegisterJni }, 27 { "ChromecastConfigAndroid", ChromecastConfigAndroid::RegisterJni },
28 { "CrashHandler", CrashHandler::RegisterCastCrashJni }, 28 { "CrashHandler", CrashHandler::RegisterCastCrashJni },
29 { "ExternalVideoSurfaceContainer", 29 { "ExternalVideoSurfaceContainer",
30 external_video_surface::RegisterExternalVideoSurfaceJni }, 30 external_video_surface::RegisterExternalVideoSurfaceJni },
31 }; 31 };
32 32
33 } // namespace 33 } // namespace
34 34
35 bool RegisterJni(JNIEnv* env) { 35 bool RegisterJni(JNIEnv* env) {
36 return RegisterNativeMethods(env, kMethods, arraysize(kMethods)); 36 return RegisterNativeMethods(env, kMethods, arraysize(kMethods));
37 } 37 }
38 38
39 } // namespace android 39 } // namespace android
40 } // namespace chromecast 40 } // namespace chromecast
OLDNEW
« no previous file with comments | « chromecast/android/DEPS ('k') | chromecast/app/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698