Index: chrome/browser/ui/android/infobars/data_reduction_proxy_infobar.cc |
diff --git a/chrome/browser/ui/android/infobars/data_reduction_proxy_infobar.cc b/chrome/browser/ui/android/infobars/data_reduction_proxy_infobar.cc |
index 1d68d474911a38483a10c18da5383606815243f8..238f0a9aac4abce4eda8011d13cd403fa01566be 100644 |
--- a/chrome/browser/ui/android/infobars/data_reduction_proxy_infobar.cc |
+++ b/chrome/browser/ui/android/infobars/data_reduction_proxy_infobar.cc |
@@ -16,11 +16,12 @@ |
// 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); |
} |