summaryrefslogtreecommitdiffstats
path: root/content/app/android
diff options
context:
space:
mode:
authorleandrogracia@chromium.org <leandrogracia@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-06-06 10:58:48 +0000
committerleandrogracia@chromium.org <leandrogracia@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-06-06 10:58:48 +0000
commited5c5706a923d79c593c39e50372c4fb7d0f6a69 (patch)
tree9998075b862310472862678e3d5f210cae747d73 /content/app/android
parent7225440953f38c425dbc21a6f3c94b6649fcdd3a (diff)
downloadchromium_src-ed5c5706a923d79c593c39e50372c4fb7d0f6a69.zip
chromium_src-ed5c5706a923d79c593c39e50372c4fb7d0f6a69.tar.gz
chromium_src-ed5c5706a923d79c593c39e50372c4fb7d0f6a69.tar.bz2
[Android] Facilitate access to device information.
Introduce a class to expose public Android device information normally available only using the Android SDK. This information includes Display properties, as well as the telephony network country ISO code which is used for phone number detection. BUG=125390 TEST=none Review URL: https://chromiumcodereview.appspot.com/10459073 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@140739 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'content/app/android')
-rw-r--r--content/app/android/content_jni_registrar.cc2
1 files changed, 2 insertions, 0 deletions
diff --git a/content/app/android/content_jni_registrar.cc b/content/app/android/content_jni_registrar.cc
index d894f71..70aee5b 100644
--- a/content/app/android/content_jni_registrar.cc
+++ b/content/app/android/content_jni_registrar.cc
@@ -9,6 +9,7 @@
#include "content/app/android/content_main.h"
#include "content/browser/android/android_browser_process.h"
#include "content/browser/android/command_line.h"
+#include "content/browser/android/device_info.h"
#include "content/browser/android/download_controller.h"
#include "content/browser/android/trace_event_binding.h"
@@ -19,6 +20,7 @@ base::android::RegistrationMethod kContentRegisteredMethods[] = {
{ "AndroidBrowserProcess", content::RegisterAndroidBrowserProcess },
{ "CommandLine", RegisterCommandLine },
{ "ContentMain", content::RegisterContentMain },
+ { "DeviceInfo", RegisterDeviceInfo },
{ "DownloadController", DownloadController::RegisterDownloadController },
{ "TraceEvent", RegisterTraceEvent },
};