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

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

Issue 2956733002: Add 'Updated just now' timestamp to the Previews infobar (Closed)
Patch Set: tbansal comments Created 3 years, 6 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: chrome/browser/previews/previews_infobar_tab_helper.h
diff --git a/chrome/browser/previews/previews_infobar_tab_helper.h b/chrome/browser/previews/previews_infobar_tab_helper.h
index 949ac7ea2f1ca34720c005d7ba8d9b2c7d3d9142..19a8ded6a6edc81417966d9183231c215425b21c 100644
--- a/chrome/browser/previews/previews_infobar_tab_helper.h
+++ b/chrome/browser/previews/previews_infobar_tab_helper.h
@@ -31,6 +31,13 @@ class PreviewsInfoBarTabHelper
displayed_preview_infobar_ = displayed;
}
+ // Sets whether the timestamp on the InfoBar for a preview has been shown for
+ // the page. |displayed_preview_timestamp_| is reset to false on
+ // DidStartProvisionalLoadForFrame for the main frame.
+ void set_displayed_preview_timestamp(bool displayed_preview_timestamp) {
+ displayed_preview_timestamp_ = displayed_preview_timestamp;
+ }
+
// The data saver page identifier of the current page load.
const base::Optional<data_reduction_proxy::NavigationID>&
committed_data_saver_navigation_id() {
@@ -56,6 +63,9 @@ class PreviewsInfoBarTabHelper
// True if the InfoBar for a preview has been shown for the page.
bool displayed_preview_infobar_;
+ // True if the InfoBar with a timestamp was shown for the page.
+ bool displayed_preview_timestamp_;
+
// The data saver page identifier of the current page load.
base::Optional<data_reduction_proxy::NavigationID>
committed_data_saver_navigation_id_;
« no previous file with comments | « chrome/browser/previews/previews_infobar_delegate_unittest.cc ('k') | chrome/browser/previews/previews_infobar_tab_helper.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698