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

Unified Diff: android_webview/native/aw_contents.cc

Issue 1172093002: Implement HttpUserAgentSettings delegate for Android WebView (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: New plumbing Created 5 years, 6 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
Index: android_webview/native/aw_contents.cc
diff --git a/android_webview/native/aw_contents.cc b/android_webview/native/aw_contents.cc
index c6acbadcf5eb5a3f243852018c7c14e25b1d5967..ea243f96a94f379953071354c371ea287271a3c3 100644
--- a/android_webview/native/aw_contents.cc
+++ b/android_webview/native/aw_contents.cc
@@ -157,6 +157,12 @@ AwContents* AwContents::FromID(int render_process_id, int render_view_id) {
}
// static
+std::string AwContents::GetLocale() {
+ JNIEnv* env = base::android::AttachCurrentThread();
+ return ConvertJavaStringToUTF8(Java_AwContents_getLocale(env));
+}
+
+// static
AwBrowserPermissionRequestDelegate* AwBrowserPermissionRequestDelegate::FromID(
int render_process_id, int render_frame_id) {
AwContents* aw_contents = AwContents::FromWebContents(

Powered by Google App Engine
This is Rietveld 408576698