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

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

Issue 620673003: Chromecast: adds crash handling for Android build. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: style nits Created 6 years, 2 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
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/crash/android/crash_handler.h"
9 #include "chromecast/shell/browser/android/cast_window_android.h" 10 #include "chromecast/shell/browser/android/cast_window_android.h"
10 #include "chromecast/shell/browser/android/cast_window_manager.h" 11 #include "chromecast/shell/browser/android/cast_window_manager.h"
11 12
12 namespace chromecast { 13 namespace chromecast {
13 namespace android { 14 namespace android {
14 15
15 namespace { 16 namespace {
16 17
17 static base::android::RegistrationMethod kMethods[] = { 18 static base::android::RegistrationMethod kMethods[] = {
18 { "CastWindowAndroid", shell::CastWindowAndroid::RegisterJni }, 19 { "CastWindowAndroid", shell::CastWindowAndroid::RegisterJni },
19 { "CastWindowManager", shell::RegisterCastWindowManager }, 20 { "CastWindowManager", shell::RegisterCastWindowManager },
21 { "CrashHandler", CrashHandler::RegisterCastCrashJni },
20 }; 22 };
21 23
22 } // namespace 24 } // namespace
23 25
24 bool RegisterJni(JNIEnv* env) { 26 bool RegisterJni(JNIEnv* env) {
25 return RegisterNativeMethods(env, kMethods, arraysize(kMethods)); 27 return RegisterNativeMethods(env, kMethods, arraysize(kMethods));
26 } 28 }
27 29
28 } // namespace android 30 } // namespace android
29 } // namespace chromecast 31 } // namespace chromecast
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698