Upstream version 10.39.225.0
[platform/framework/web/crosswalk.git] / src / chrome / browser / ui / android / infobars / data_reduction_proxy_infobar.cc
index 1d68d47..238f0a9 100644 (file)
 
 // static
 void DataReductionProxyInfoBar::Launch(
-    JNIEnv* env, jclass, jobject jweb_contents) {
+    JNIEnv* env, jclass, jobject jweb_contents, jstring jlink_url) {
   content::WebContents* web_contents =
       content::WebContents::FromJavaWebContents(jweb_contents);
   DCHECK(web_contents);
-  DataReductionProxyInfoBarDelegate::Create(web_contents);
+  DataReductionProxyInfoBarDelegate::Create(
+      web_contents, base::android::ConvertJavaStringToUTF8(env, jlink_url));
 }
 
 // static
@@ -65,6 +66,7 @@ scoped_ptr<infobars::InfoBar> DataReductionProxyInfoBarDelegate::CreateInfoBar(
 
 
 // JNI for DataReductionProxyInfoBarDelegate.
-void Launch(JNIEnv* env, jclass clazz, jobject jweb_contents) {
-  DataReductionProxyInfoBar::Launch(env, clazz, jweb_contents);
+void
+Launch(JNIEnv* env, jclass clazz, jobject jweb_contents, jstring jlink_url) {
+  DataReductionProxyInfoBar::Launch(env, clazz, jweb_contents, jlink_url);
 }