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

Unified Diff: chrome/browser/previews/previews_infobar_delegate.h

Issue 2581533003: Show the Data Saver string for offline previews when Data Saver is enabled (Closed)
Patch Set: Created 4 years 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: chrome/browser/previews/previews_infobar_delegate.h
diff --git a/chrome/browser/previews/previews_infobar_delegate.h b/chrome/browser/previews/previews_infobar_delegate.h
index 78d9e1276e75fcf9e2ca67f9a1007bcb4063ffbf..78caafe6a8d49fc61544664f46195dbac8ff7738 100644
--- a/chrome/browser/previews/previews_infobar_delegate.h
+++ b/chrome/browser/previews/previews_infobar_delegate.h
@@ -45,12 +45,14 @@ class PreviewsInfoBarDelegate : public ConfirmInfoBarDelegate {
static void Create(
content::WebContents* web_contents,
PreviewsInfoBarType infobar_type,
+ bool is_data_saver_user,
const OnDismissPreviewsInfobarCallback& on_dismiss_callback);
private:
PreviewsInfoBarDelegate(
content::WebContents* web_contents,
PreviewsInfoBarType infobar_type,
+ bool is_data_saver_user,
const OnDismissPreviewsInfobarCallback& on_dismiss_callback);
// ConfirmInfoBarDelegate overrides:
@@ -65,6 +67,8 @@ class PreviewsInfoBarDelegate : public ConfirmInfoBarDelegate {
PreviewsInfoBarType infobar_type_;
+ const bool is_data_saver_user_;
+
OnDismissPreviewsInfobarCallback on_dismiss_callback_;
DISALLOW_COPY_AND_ASSIGN(PreviewsInfoBarDelegate);

Powered by Google App Engine
This is Rietveld 408576698