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

Side by Side Diff: chromecast/base/cast_sys_info_android.cc

Issue 2199973003: Android JNI gen: Don't emit code for empty RegisterNatives() (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@jnireg1
Patch Set: Android JNI gen: Don't emit code for empty RegisterNatives() Created 4 years, 4 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 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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/base/cast_sys_info_android.h" 5 #include "chromecast/base/cast_sys_info_android.h"
6 6
7 #include "base/android/build_info.h" 7 #include "base/android/build_info.h"
8 #include "base/android/jni_android.h" 8 #include "base/android/jni_android.h"
9 #include "base/android/jni_string.h" 9 #include "base/android/jni_string.h"
10 #include "base/memory/ptr_util.h" 10 #include "base/memory/ptr_util.h"
11 #include "base/strings/string_number_conversions.h" 11 #include "base/strings/string_number_conversions.h"
12 #include "base/sys_info.h" 12 #include "base/sys_info.h"
13 #include "chromecast/base/cast_sys_info_util.h" 13 #include "chromecast/base/cast_sys_info_util.h"
14 #include "chromecast/base/version.h" 14 #include "chromecast/base/version.h"
15 #include "jni/CastSysInfoAndroid_jni.h" 15 #include "jni/CastSysInfoAndroid_jni.h"
16 16
17 namespace chromecast { 17 namespace chromecast {
18 18
19 namespace { 19 namespace {
20 const char kBuildTypeUser[] = "user"; 20 const char kBuildTypeUser[] = "user";
21 } // namespace 21 } // namespace
22 22
23 // static 23 // static
24 bool CastSysInfoAndroid::RegisterJni(JNIEnv* env) {
25 return RegisterNativesImpl(env);
26 }
27
28 // static
29 std::unique_ptr<CastSysInfo> CreateSysInfo() { 24 std::unique_ptr<CastSysInfo> CreateSysInfo() {
30 return base::WrapUnique(new CastSysInfoAndroid()); 25 return base::WrapUnique(new CastSysInfoAndroid());
31 } 26 }
32 27
33 CastSysInfoAndroid::CastSysInfoAndroid() 28 CastSysInfoAndroid::CastSysInfoAndroid()
34 : build_info_(base::android::BuildInfo::GetInstance()) { 29 : build_info_(base::android::BuildInfo::GetInstance()) {
35 } 30 }
36 31
37 CastSysInfoAndroid::~CastSysInfoAndroid() { 32 CastSysInfoAndroid::~CastSysInfoAndroid() {
38 } 33 }
(...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after
119 NOTREACHED() << "GL information shouldn't be requested on Android."; 114 NOTREACHED() << "GL information shouldn't be requested on Android.";
120 return ""; 115 return "";
121 } 116 }
122 117
123 std::string CastSysInfoAndroid::GetGlVersion() { 118 std::string CastSysInfoAndroid::GetGlVersion() {
124 NOTREACHED() << "GL information shouldn't be requested on Android."; 119 NOTREACHED() << "GL information shouldn't be requested on Android.";
125 return ""; 120 return "";
126 } 121 }
127 122
128 } // namespace chromecast 123 } // namespace chromecast
OLDNEW
« no previous file with comments | « chromecast/base/cast_sys_info_android.h ('k') | chromecast/browser/android/cast_window_android.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698