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

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: Add locale check on attach Created 5 years, 5 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 42992ae42853c04ef1c173077d284a947c9fe360..a2e96982a7fcd3857056628fad36cddf65eea2e0 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