Index: chrome/browser/prefs/pref_metrics_service.cc |
diff --git a/chrome/browser/prefs/pref_metrics_service.cc b/chrome/browser/prefs/pref_metrics_service.cc |
index cf56bc40dba33c7d5fca901a135d582088fecb43..18153bfb1bfac2cb4a86b75b5a679cb918b52663 100644 |
--- a/chrome/browser/prefs/pref_metrics_service.cc |
+++ b/chrome/browser/prefs/pref_metrics_service.cc |
@@ -37,12 +37,14 @@ namespace { |
const int kSessionStartupPrefValueMax = SessionStartupPref::kPrefValueMax; |
+#if defined(OS_ANDROID) |
// An unregistered preference to fill in indices in kTrackedPrefs below for |
// preferences that aren't defined on every platform. This is fine as the code |
// below (e.g. CheckTrackedPreferences()) skips unregistered preferences and |
// should thus never report any data about that index on the platforms where |
// that preference is unimplemented. |
const char kUnregisteredPreference[] = "_"; |
+#endif |
// These preferences must be kept in sync with the TrackedPreference enum in |
// tools/metrics/histograms/histograms.xml. To add a new preference, append it |