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

Unified Diff: chrome/browser/metrics/metrics_log.cc

Issue 11014006: Add Android fingerprint to metrics logs (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Removing XML changes Created 8 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « base/sys_info_posix.cc ('k') | chrome/common/metrics/proto/system_profile.proto » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/metrics/metrics_log.cc
diff --git a/chrome/browser/metrics/metrics_log.cc b/chrome/browser/metrics/metrics_log.cc
index 2771aa9f077ce10addf5e1884d457f4991ee50fe..40c10f5a5806016a664b905d51cf03e86feef44c 100644
--- a/chrome/browser/metrics/metrics_log.cc
+++ b/chrome/browser/metrics/metrics_log.cc
@@ -45,6 +45,10 @@
#include "ui/gfx/screen.h"
#include "webkit/plugins/webplugininfo.h"
+#if defined(OS_ANDROID)
+#include "base/android/build_info.h"
+#endif
+
#define OPEN_ELEMENT_FOR_SCOPE(name) ScopedElement scoped_element(this, name)
#if defined(OS_WIN)
@@ -778,6 +782,10 @@ void MetricsLog::RecordEnvironmentProto(
#endif
os->set_name(os_name);
os->set_version(base::SysInfo::OperatingSystemVersion());
+#if defined(OS_ANDROID)
+ os->set_fingerprint(
+ base::android::BuildInfo::GetInstance()->android_build_fp());
+#endif
const content::GPUInfo& gpu_info =
GpuDataManager::GetInstance()->GetGPUInfo();
« no previous file with comments | « base/sys_info_posix.cc ('k') | chrome/common/metrics/proto/system_profile.proto » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698