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

Unified Diff: chrome/browser/ui/android/infobars/data_reduction_proxy_infobar.cc

Issue 581833002: Updated alternative data reduction proxy UI (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@flag-for-ssl-experiment
Patch Set: Addressed comments from marq and tedchoc Created 6 years, 3 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 | « chrome/browser/ui/android/infobars/data_reduction_proxy_infobar.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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);
}
« no previous file with comments | « chrome/browser/ui/android/infobars/data_reduction_proxy_infobar.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698