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

Unified Diff: base/sys_info_android.cc

Issue 1234543003: Report Android Build.MODEL in SystemProfileProto hardware_class. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 5 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
« base/sys_info.h ('K') | « base/sys_info.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/sys_info_android.cc
diff --git a/base/sys_info_android.cc b/base/sys_info_android.cc
index 245097ffdc092626923e8bcb2f1bbf99e08e51d6..41c2e1aeabb5d2d3b7ba977344aef4196572ea80 100644
--- a/base/sys_info_android.cc
+++ b/base/sys_info_android.cc
@@ -7,6 +7,7 @@
#include <dlfcn.h>
#include <sys/system_properties.h>
+#include "base/android/build_info.h"
#include "base/android/sys_utils.h"
#include "base/lazy_instance.h"
#include "base/logging.h"
@@ -177,6 +178,10 @@ std::string SysInfo::GetDeviceName() {
return std::string(device_model_str);
}
+std::string SysInfo::HardwareModelName() {
+ return base::android::BuildInfo::GetInstance()->model();
Nico 2015/07/10 19:52:22 This does 14 jni calls to fill out BuildInfo and t
jdduke (slow) 2015/07/10 20:01:14 The JNI calls are only made when the singleton is
+}
+
std::string SysInfo::OperatingSystemVersion() {
int32 major, minor, bugfix;
OperatingSystemVersionNumbers(&major, &minor, &bugfix);
« base/sys_info.h ('K') | « base/sys_info.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698