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

Issue 2940083003: Add timestamp to infobar for stale Previews (Closed)

Created:
3 years, 6 months ago by megjablon
Modified:
3 years, 6 months ago
Reviewers:
tbansal1
CC:
chromium-reviews, cbentzel+watch_chromium.org, srahim+watch_chromium.org, tbansal+watch-data-reduction-proxy_chromium.org, net-reviews_chromium.org
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Add timestamp to infobar for stale Previews Add a feature to enable a timestamp on the Previews infobar. This timestamp should be shown when the previews_freshness is greater than the finch controlled "min_staleness_in_minutes" and less than "max_staleness_in_minutes". BUG=718643 Review-Url: https://codereview.chromium.org/2940083003 Cr-Commit-Position: refs/heads/master@{#481018} Committed: https://chromium.googlesource.com/chromium/src/+/fa7b3da220ade97ad23b41c56be59fb76c96691b

Patch Set 1 #

Patch Set 2 : test fixes #

Total comments: 9

Patch Set 3 : add description #

Patch Set 4 : add GetMessageText comment #

Unified diffs Side-by-side diffs Delta from patch set Stats (+230 lines, -39 lines) Patch
M chrome/app/generated_resources.grd View 1 1 chunk +9 lines, -0 lines 0 comments Download
M chrome/browser/net/spdyproxy/data_reduction_proxy_chrome_io_data.cc View 1 chunk +2 lines, -1 line 0 comments Download
M chrome/browser/previews/previews_infobar_delegate.h View 1 2 3 chunks +7 lines, -1 line 0 comments Download
M chrome/browser/previews/previews_infobar_delegate.cc View 1 2 3 7 chunks +68 lines, -2 lines 0 comments Download
M chrome/browser/previews/previews_infobar_delegate_unittest.cc View 1 25 chunks +134 lines, -34 lines 0 comments Download
M chrome/browser/previews/previews_infobar_tab_helper.cc View 2 chunks +4 lines, -1 line 0 comments Download
M components/data_reduction_proxy/core/browser/data_reduction_proxy_io_data.cc View 1 1 chunk +1 line, -0 lines 0 comments Download
M components/previews/core/previews_features.h View 1 chunk +1 line, -0 lines 0 comments Download
M components/previews/core/previews_features.cc View 1 chunk +4 lines, -0 lines 0 comments Download

Dependent Patchsets:

Messages

Total messages: 31 (24 generated)
megjablon
PTAL, thanks!
3 years, 6 months ago (2017-06-19 20:02:36 UTC) #14
tbansal1
https://codereview.chromium.org/2940083003/diff/40001/chrome/browser/previews/previews_infobar_delegate.cc File chrome/browser/previews/previews_infobar_delegate.cc (right): https://codereview.chromium.org/2940083003/diff/40001/chrome/browser/previews/previews_infobar_delegate.cc#newcode198 chrome/browser/previews/previews_infobar_delegate.cc:198: base::string16 timestamp = GetTimestampText(); Why is the implementation different ...
3 years, 6 months ago (2017-06-19 20:52:29 UTC) #17
megjablon
https://codereview.chromium.org/2940083003/diff/40001/chrome/browser/previews/previews_infobar_delegate.cc File chrome/browser/previews/previews_infobar_delegate.cc (right): https://codereview.chromium.org/2940083003/diff/40001/chrome/browser/previews/previews_infobar_delegate.cc#newcode198 chrome/browser/previews/previews_infobar_delegate.cc:198: base::string16 timestamp = GetTimestampText(); On 2017/06/19 20:52:28, tbansal1 wrote: ...
3 years, 6 months ago (2017-06-20 18:42:12 UTC) #18
tbansal1
lgtm % comment below. https://codereview.chromium.org/2940083003/diff/40001/chrome/browser/previews/previews_infobar_delegate.cc File chrome/browser/previews/previews_infobar_delegate.cc (right): https://codereview.chromium.org/2940083003/diff/40001/chrome/browser/previews/previews_infobar_delegate.cc#newcode198 chrome/browser/previews/previews_infobar_delegate.cc:198: base::string16 timestamp = GetTimestampText(); On ...
3 years, 6 months ago (2017-06-20 21:07:15 UTC) #19
megjablon
https://codereview.chromium.org/2940083003/diff/40001/chrome/browser/previews/previews_infobar_delegate.cc File chrome/browser/previews/previews_infobar_delegate.cc (right): https://codereview.chromium.org/2940083003/diff/40001/chrome/browser/previews/previews_infobar_delegate.cc#newcode198 chrome/browser/previews/previews_infobar_delegate.cc:198: base::string16 timestamp = GetTimestampText(); On 2017/06/20 21:07:14, tbansal1 wrote: ...
3 years, 6 months ago (2017-06-20 21:27:26 UTC) #22
commit-bot: I haz the power
CQ is trying da patch. Follow status at: https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2940083003/80001
3 years, 6 months ago (2017-06-20 23:09:35 UTC) #27
commit-bot: I haz the power
3 years, 6 months ago (2017-06-20 23:14:41 UTC) #31
Message was sent while issue was closed.
Committed patchset #4 (id:80001) as
https://chromium.googlesource.com/chromium/src/+/fa7b3da220ade97ad23b41c56be5...

Powered by Google App Engine
This is Rietveld 408576698