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

Unified Diff: content/public/android/java/src/org/chromium/content/browser/ContentSettings.java

Issue 11098036: Expose getDefaultUserAgent to java (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: docs 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/public/android/java/src/org/chromium/content/browser/ContentSettings.java
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 f3b858bc20d4d80ac59c7b846fccea1f38989616..f31b538ec674e15c1ab9684d638f66bfc851f8d5 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
@@ -235,6 +235,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.
*/
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698