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

Unified Diff: base/sys_info.h

Issue 10832235: Move Android user agent generation to native code (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Moved Android OS info function over to webkit_glue Created 8 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | base/sys_info_android.cc » ('j') | base/sys_info_android.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/sys_info.h
diff --git a/base/sys_info.h b/base/sys_info.h
index c95415e40872786a6ab022c59ff906ab237841c6..042b5780d6aaf8ae72d323541bb5b4daff0606b8 100644
--- a/base/sys_info.h
+++ b/base/sys_info.h
@@ -81,8 +81,25 @@ class BASE_EXPORT SysInfo {
#endif // defined(OS_CHROMEOS)
#if defined(OS_ANDROID)
+ // Returns the Android build's codename.
+ static std::string GetAndroidBuildCodename();
+
+ // Returns the Android build ID.
+ static std::string GetAndroidBuildID();
+
+ // Returns the device's name.
+ static std::string GetDeviceName();
+
static int DalvikHeapSizeMB();
#endif // defined(OS_ANDROID)
+
+ // Default version of Android to fall back to when actual version numbers
+ // cannot be acquired.
+ // TODO(dfalcantara): Keep this reasonably up to date with the latest publicly
+ // available version of Android.
+ static const int kDefaultAndroidMajorVersion = 4;
+ static const int kDefaultAndroidMinorVersion = 0;
+ static const int kDefaultAndroidBugfixVersion = 3;
jar (doing other things) 2012/08/15 23:35:17 Why isn't this stuff inside the OS_ANDROID ifdef?
gone 2012/08/16 00:29:31 Supposed to be used for spoofing later; I can move
};
} // namespace base
« no previous file with comments | « no previous file | base/sys_info_android.cc » ('j') | base/sys_info_android.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698