summaryrefslogtreecommitdiffstats
path: root/content/public
diff options
context:
space:
mode:
authorjoth@chromium.org <joth@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-10-10 23:02:45 +0000
committerjoth@chromium.org <joth@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-10-10 23:02:45 +0000
commitcb5815dfc5960f79af89e6ebfad3847be70e3f23 (patch)
tree391d0c19d0271e7b779185db9c4af109dd92a9e3 /content/public
parente715e9ad3e17a128fcb122d2de80e89ea2bacd1f (diff)
downloadchromium_src-cb5815dfc5960f79af89e6ebfad3847be70e3f23.zip
chromium_src-cb5815dfc5960f79af89e6ebfad3847be70e3f23.tar.gz
chromium_src-cb5815dfc5960f79af89e6ebfad3847be70e3f23.tar.bz2
Expose getDefaultUserAgent to java
This is needed for webview BUG= Review URL: https://chromiumcodereview.appspot.com/11098036 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@161225 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'content/public')
-rw-r--r--content/public/android/java/src/org/chromium/content/browser/ContentSettings.java8
1 files changed, 8 insertions, 0 deletions
diff --git a/content/public/android/java/src/org/chromium/content/browser/ContentSettings.java b/content/public/android/java/src/org/chromium/content/browser/ContentSettings.java
index f221b04..fa79fb6 100644
--- a/content/public/android/java/src/org/chromium/content/browser/ContentSettings.java
+++ b/content/public/android/java/src/org/chromium/content/browser/ContentSettings.java
@@ -233,6 +233,14 @@ public class ContentSettings {
}
/**
+ * @returns the default User-Agent used by each ContentViewCore instance, i.e. unless
+ * overridden by {@link #setUserAgentString()}
+ */
+ public static String getDefaultUserAgent() {
+ return nativeGetDefaultUserAgent();
+ }
+
+ /**
* Set the WebView's user-agent string. If the string "ua" is null or empty,
* it will use the system default user-agent string.
*/