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

Issue 2250223002: Add InfoBar delegate for previews (Closed)

Created:
4 years, 4 months ago by megjablon
Modified:
4 years, 3 months ago
CC:
bengr, cbentzel+watch_chromium.org, chromium-reviews, oshima+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Add InfoBar delegate for previews Add PreviewsInfoBarDelegate to show an infobar when a preview page has been loaded. Also add the corresponding resources. BUG=615566 Committed: https://crrev.com/82aba5257757fad4ab092411822d1895589b9a5b Cr-Commit-Position: refs/heads/master@{#418413}

Patch Set 1 : owners #

Patch Set 2 : Add offline string #

Patch Set 3 : add count of infobars shown per session #

Total comments: 42

Patch Set 4 : pkasting comments #

Total comments: 20

Patch Set 5 : pkasting comments #

Patch Set 6 : missed comments #

Total comments: 12

Patch Set 7 : remove desktop icon #

Patch Set 8 : pkasting comments #

Patch Set 9 : fix unit tests #

Total comments: 30

Patch Set 10 : bengr comments #

Total comments: 4

Patch Set 11 : optimize png files #

Total comments: 5

Patch Set 12 : bengr comments #

Patch Set 13 : rebase #

Patch Set 14 : add ryansturm to owners #

Patch Set 15 : add gn #

Patch Set 16 : rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+235 lines, -135 lines) Patch
A chrome/android/java/res/drawable-hdpi/infobar_previews.png View 1 2 3 4 5 6 7 8 9 10 Binary file 0 comments Download
A chrome/android/java/res/drawable-mdpi/infobar_previews.png View 1 2 3 4 5 6 7 8 9 10 Binary file 0 comments Download
A chrome/android/java/res/drawable-xhdpi/infobar_previews.png View 1 2 3 4 5 6 7 8 9 10 Binary file 0 comments Download
A chrome/android/java/res/drawable-xxhdpi/infobar_previews.png View 1 2 3 4 5 6 7 8 9 10 Binary file 0 comments Download
A chrome/android/java/res/drawable-xxxhdpi/infobar_previews.png View 1 2 3 4 5 6 7 8 9 10 Binary file 0 comments Download
M chrome/app/generated_resources.grd View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 1 chunk +12 lines, -0 lines 0 comments Download
M chrome/browser/BUILD.gn View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/browser/android/resource_id.h View 1 2 3 4 5 6 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/net/spdyproxy/data_reduction_proxy_chrome_io_data.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 3 chunks +5 lines, -12 lines 0 comments Download
M chrome/browser/net/spdyproxy/data_reduction_proxy_settings_android.cc View 1 2 1 chunk +1 line, -1 line 0 comments Download
A chrome/browser/previews/previews_infobar_delegate.h View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +53 lines, -0 lines 0 comments Download
A chrome/browser/previews/previews_infobar_delegate.cc View 1 2 3 4 5 6 7 8 9 1 chunk +97 lines, -0 lines 0 comments Download
M components/data_reduction_proxy/content/browser/content_lofi_ui_service.h View 1 2 3 4 5 6 7 8 9 10 2 chunks +5 lines, -8 lines 0 comments Download
M components/data_reduction_proxy/content/browser/content_lofi_ui_service.cc View 1 2 3 3 chunks +5 lines, -7 lines 0 comments Download
M components/data_reduction_proxy/content/browser/content_lofi_ui_service_unittest.cc View 1 2 3 4 5 6 7 8 4 chunks +7 lines, -22 lines 0 comments Download
M components/data_reduction_proxy/core/browser/data_reduction_proxy_delegate_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 1 chunk +1 line, -2 lines 0 comments Download
M components/data_reduction_proxy/core/browser/data_reduction_proxy_network_delegate.cc View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +1 line, -3 lines 0 comments Download
M components/data_reduction_proxy/core/browser/data_reduction_proxy_network_delegate_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 3 chunks +2 lines, -38 lines 0 comments Download
M components/data_reduction_proxy/core/browser/data_reduction_proxy_prefs.cc View 1 2 2 chunks +2 lines, -2 lines 0 comments Download
M components/data_reduction_proxy/core/browser/data_reduction_proxy_service.cc View 1 2 3 4 5 6 7 1 chunk +4 lines, -3 lines 0 comments Download
M components/data_reduction_proxy/core/browser/data_reduction_proxy_settings.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 2 chunks +5 lines, -6 lines 0 comments Download
M components/data_reduction_proxy/core/browser/data_reduction_proxy_settings.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 1 chunk +3 lines, -4 lines 0 comments Download
M components/data_reduction_proxy/core/browser/data_reduction_proxy_settings_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 4 chunks +17 lines, -17 lines 0 comments Download
M components/data_reduction_proxy/core/common/data_reduction_proxy_pref_names.h View 1 2 1 chunk +1 line, -1 line 0 comments Download
M components/data_reduction_proxy/core/common/data_reduction_proxy_pref_names.cc View 1 2 3 4 5 6 7 1 chunk +7 lines, -5 lines 0 comments Download
M components/data_reduction_proxy/core/common/lofi_ui_service.h View 1 2 3 1 chunk +2 lines, -4 lines 0 comments Download
M components/infobars/core/infobar_delegate.h View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +1 line, -0 lines 0 comments Download
M tools/metrics/histograms/histograms.xml View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 1 chunk +1 line, -0 lines 0 comments Download

Depends on Patchset:

Dependent Patchsets:

Messages

Total messages: 74 (42 generated)
megjablon
PTAL, thanks!
4 years, 4 months ago (2016-08-18 23:40:46 UTC) #9
megjablon
On 2016/08/18 23:40:46, megjablon wrote: > PTAL, thanks! This is the first of a chain ...
4 years, 4 months ago (2016-08-18 23:42:06 UTC) #10
jochen (gone - plz use gerrit)
hi! Was there already a design doc posted about previews? Could you please point me ...
4 years, 4 months ago (2016-08-23 12:49:50 UTC) #11
megjablon
Discussed with jochen@ offline. Adding pkasting@ to check the infobar specific code and bengr@ as ...
4 years, 4 months ago (2016-08-23 17:55:28 UTC) #13
Peter Kasting
https://chromiumcodereview.appspot.com/2250223002/diff/100001/chrome/app/generated_resources.grd File chrome/app/generated_resources.grd (right): https://chromiumcodereview.appspot.com/2250223002/diff/100001/chrome/app/generated_resources.grd#newcode6368 chrome/app/generated_resources.grd:6368: + Saved data. Nit: Putting periods at the end ...
4 years, 4 months ago (2016-08-23 19:48:18 UTC) #14
megjablon
https://chromiumcodereview.appspot.com/2250223002/diff/100001/chrome/app/generated_resources.grd File chrome/app/generated_resources.grd (right): https://chromiumcodereview.appspot.com/2250223002/diff/100001/chrome/app/generated_resources.grd#newcode6368 chrome/app/generated_resources.grd:6368: + Saved data. On 2016/08/23 19:48:17, Peter Kasting wrote: ...
4 years, 4 months ago (2016-08-23 23:54:18 UTC) #16
Peter Kasting
https://chromiumcodereview.appspot.com/2250223002/diff/100001/chrome/browser/net/spdyproxy/data_reduction_proxy_chrome_io_data.cc File chrome/browser/net/spdyproxy/data_reduction_proxy_chrome_io_data.cc (right): https://chromiumcodereview.appspot.com/2250223002/diff/100001/chrome/browser/net/spdyproxy/data_reduction_proxy_chrome_io_data.cc#newcode46 chrome/browser/net/spdyproxy/data_reduction_proxy_chrome_io_data.cc:46: PreviewsInfoBarDelegate::Create(web_contents, On 2016/08/23 23:54:16, megjablon wrote: > On 2016/08/23 ...
4 years, 4 months ago (2016-08-24 03:18:28 UTC) #17
Peter Kasting
https://chromiumcodereview.appspot.com/2250223002/diff/140001/chrome/browser/previews/previews_infobar_delegate.cc File chrome/browser/previews/previews_infobar_delegate.cc (right): https://chromiumcodereview.appspot.com/2250223002/diff/140001/chrome/browser/previews/previews_infobar_delegate.cc#newcode28 chrome/browser/previews/previews_infobar_delegate.cc:28: new PreviewsInfoBarDelegate(web_contents, infobar_type)))); On 2016/08/24 03:18:27, Peter Kasting wrote: ...
4 years, 4 months ago (2016-08-24 03:43:07 UTC) #18
Peter Kasting
https://chromiumcodereview.appspot.com/2250223002/diff/140001/chrome/browser/previews/previews_infobar_delegate.cc File chrome/browser/previews/previews_infobar_delegate.cc (right): https://chromiumcodereview.appspot.com/2250223002/diff/140001/chrome/browser/previews/previews_infobar_delegate.cc#newcode21 chrome/browser/previews/previews_infobar_delegate.cc:21: // TODO: Check that infobar was not already shown. ...
4 years, 4 months ago (2016-08-24 03:53:04 UTC) #19
megjablon
https://chromiumcodereview.appspot.com/2250223002/diff/140001/chrome/browser/previews/previews_infobar_delegate.cc File chrome/browser/previews/previews_infobar_delegate.cc (right): https://chromiumcodereview.appspot.com/2250223002/diff/140001/chrome/browser/previews/previews_infobar_delegate.cc#newcode14 chrome/browser/previews/previews_infobar_delegate.cc:14: #include "content/public/browser/web_contents_observer.h" On 2016/08/24 03:18:27, Peter Kasting wrote: > ...
4 years, 4 months ago (2016-08-24 21:28:37 UTC) #21
Peter Kasting
It looks like you might have missed the further replies I had written to your ...
4 years, 4 months ago (2016-08-24 21:33:15 UTC) #23
megjablon
On 2016/08/24 21:33:15, Peter Kasting wrote: > It looks like you might have missed the ...
4 years, 4 months ago (2016-08-24 21:34:55 UTC) #24
megjablon
Here they are! https://chromiumcodereview.appspot.com/2250223002/diff/100001/chrome/browser/net/spdyproxy/data_reduction_proxy_chrome_io_data.cc File chrome/browser/net/spdyproxy/data_reduction_proxy_chrome_io_data.cc (right): https://chromiumcodereview.appspot.com/2250223002/diff/100001/chrome/browser/net/spdyproxy/data_reduction_proxy_chrome_io_data.cc#newcode46 chrome/browser/net/spdyproxy/data_reduction_proxy_chrome_io_data.cc:46: PreviewsInfoBarDelegate::Create(web_contents, On 2016/08/24 03:18:27, Peter Kasting ...
4 years, 4 months ago (2016-08-24 21:44:34 UTC) #25
Peter Kasting
LGTM https://chromiumcodereview.appspot.com/2250223002/diff/220001/chrome/browser/previews/previews_infobar_delegate.cc File chrome/browser/previews/previews_infobar_delegate.cc (right): https://chromiumcodereview.appspot.com/2250223002/diff/220001/chrome/browser/previews/previews_infobar_delegate.cc#newcode18 chrome/browser/previews/previews_infobar_delegate.cc:18: void PreviewsInfoBarDelegate::Create(content::WebContents* web_contents, Nit: Function definition order in ...
4 years, 4 months ago (2016-08-24 21:58:00 UTC) #26
megjablon
https://chromiumcodereview.appspot.com/2250223002/diff/220001/chrome/browser/previews/previews_infobar_delegate.cc File chrome/browser/previews/previews_infobar_delegate.cc (right): https://chromiumcodereview.appspot.com/2250223002/diff/220001/chrome/browser/previews/previews_infobar_delegate.cc#newcode18 chrome/browser/previews/previews_infobar_delegate.cc:18: void PreviewsInfoBarDelegate::Create(content::WebContents* web_contents, On 2016/08/24 21:58:00, Peter Kasting wrote: ...
4 years, 4 months ago (2016-08-24 22:23:43 UTC) #27
bengr
https://codereview.chromium.org/2250223002/diff/280001/chrome/app/generated_resources.grd File chrome/app/generated_resources.grd (right): https://codereview.chromium.org/2250223002/diff/280001/chrome/app/generated_resources.grd#newcode6370 chrome/app/generated_resources.grd:6370: + <message name="IDS_PREVIEWS_INFOBAR_SAVED_DATA_TITLE" desc="The text of the infobar notifying ...
4 years, 3 months ago (2016-08-25 23:26:19 UTC) #32
Peter Kasting
https://codereview.chromium.org/2250223002/diff/280001/chrome/browser/previews/previews_infobar_delegate.cc File chrome/browser/previews/previews_infobar_delegate.cc (right): https://codereview.chromium.org/2250223002/diff/280001/chrome/browser/previews/previews_infobar_delegate.cc#newcode30 chrome/browser/previews/previews_infobar_delegate.cc:30: new PreviewsInfoBarDelegate(web_contents, infobar_type)))); On 2016/08/25 23:26:18, bengr wrote: > ...
4 years, 3 months ago (2016-08-25 23:55:18 UTC) #33
jochen (gone - plz use gerrit)
lgtm once bengr and pkasting are happy
4 years, 3 months ago (2016-08-26 15:09:32 UTC) #34
megjablon
https://chromiumcodereview.appspot.com/2250223002/diff/280001/chrome/app/generated_resources.grd File chrome/app/generated_resources.grd (right): https://chromiumcodereview.appspot.com/2250223002/diff/280001/chrome/app/generated_resources.grd#newcode6370 chrome/app/generated_resources.grd:6370: + <message name="IDS_PREVIEWS_INFOBAR_SAVED_DATA_TITLE" desc="The text of the infobar notifying ...
4 years, 3 months ago (2016-08-26 22:47:30 UTC) #35
Peter Kasting
https://chromiumcodereview.appspot.com/2250223002/diff/280001/chrome/browser/previews/previews_infobar_delegate.h File chrome/browser/previews/previews_infobar_delegate.h (right): https://chromiumcodereview.appspot.com/2250223002/diff/280001/chrome/browser/previews/previews_infobar_delegate.h#newcode35 chrome/browser/previews/previews_infobar_delegate.h:35: // ConfirmInfoBarDelegate: On 2016/08/26 22:47:30, megjablon wrote: > On ...
4 years, 3 months ago (2016-08-27 03:42:22 UTC) #36
megjablon
On 2016/08/27 03:42:22, Peter Kasting wrote: > https://chromiumcodereview.appspot.com/2250223002/diff/280001/chrome/browser/previews/previews_infobar_delegate.h > File chrome/browser/previews/previews_infobar_delegate.h (right): > > https://chromiumcodereview.appspot.com/2250223002/diff/280001/chrome/browser/previews/previews_infobar_delegate.h#newcode35 ...
4 years, 3 months ago (2016-08-30 17:53:58 UTC) #37
megjablon
+dfalcantara: For chrome/android/* files
4 years, 3 months ago (2016-08-30 17:54:48 UTC) #39
gone
Screenshots? Have the resources been run through tools/resources/optimize-png-files.sh?
4 years, 3 months ago (2016-08-30 22:37:54 UTC) #40
gone
https://chromiumcodereview.appspot.com/2250223002/diff/300001/chrome/app/generated_resources.grd File chrome/app/generated_resources.grd (right): https://chromiumcodereview.appspot.com/2250223002/diff/300001/chrome/app/generated_resources.grd#newcode6371 chrome/app/generated_resources.grd:6371: + Saved data. This doesn't match the string in ...
4 years, 3 months ago (2016-08-30 22:54:06 UTC) #41
megjablon
https://chromiumcodereview.appspot.com/2250223002/diff/300001/chrome/app/generated_resources.grd File chrome/app/generated_resources.grd (right): https://chromiumcodereview.appspot.com/2250223002/diff/300001/chrome/app/generated_resources.grd#newcode6371 chrome/app/generated_resources.grd:6371: + Saved data. On 2016/08/30 22:54:06, dfalcantara wrote: > ...
4 years, 3 months ago (2016-08-30 23:48:33 UTC) #42
gone
lgtm
4 years, 3 months ago (2016-08-30 23:51:34 UTC) #43
bengr
lgtm with nits. https://codereview.chromium.org/2250223002/diff/320001/chrome/browser/net/spdyproxy/data_reduction_proxy_chrome_io_data.cc File chrome/browser/net/spdyproxy/data_reduction_proxy_chrome_io_data.cc (right): https://codereview.chromium.org/2250223002/diff/320001/chrome/browser/net/spdyproxy/data_reduction_proxy_chrome_io_data.cc#newcode40 chrome/browser/net/spdyproxy/data_reduction_proxy_chrome_io_data.cc:40: // PreviewsInfoBarDelegate is created which handles ...
4 years, 3 months ago (2016-08-31 23:37:35 UTC) #44
Peter Kasting
https://codereview.chromium.org/2250223002/diff/320001/chrome/browser/net/spdyproxy/data_reduction_proxy_chrome_io_data.cc File chrome/browser/net/spdyproxy/data_reduction_proxy_chrome_io_data.cc (right): https://codereview.chromium.org/2250223002/diff/320001/chrome/browser/net/spdyproxy/data_reduction_proxy_chrome_io_data.cc#newcode40 chrome/browser/net/spdyproxy/data_reduction_proxy_chrome_io_data.cc:40: // PreviewsInfoBarDelegate is created which handles showing Lo-Fi UI ...
4 years, 3 months ago (2016-09-01 07:16:56 UTC) #45
megjablon
https://chromiumcodereview.appspot.com/2250223002/diff/320001/chrome/browser/net/spdyproxy/data_reduction_proxy_chrome_io_data.cc File chrome/browser/net/spdyproxy/data_reduction_proxy_chrome_io_data.cc (right): https://chromiumcodereview.appspot.com/2250223002/diff/320001/chrome/browser/net/spdyproxy/data_reduction_proxy_chrome_io_data.cc#newcode40 chrome/browser/net/spdyproxy/data_reduction_proxy_chrome_io_data.cc:40: // PreviewsInfoBarDelegate is created which handles showing Lo-Fi UI ...
4 years, 3 months ago (2016-09-08 00:25:46 UTC) #59
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/2250223002/440001
4 years, 3 months ago (2016-09-13 23:29:33 UTC) #70
commit-bot: I haz the power
Committed patchset #16 (id:440001)
4 years, 3 months ago (2016-09-13 23:36:26 UTC) #72
commit-bot: I haz the power
4 years, 3 months ago (2016-09-13 23:39:14 UTC) #74
Message was sent while issue was closed.
Patchset 16 (id:??) landed as
https://crrev.com/82aba5257757fad4ab092411822d1895589b9a5b
Cr-Commit-Position: refs/heads/master@{#418413}

Powered by Google App Engine
This is Rietveld 408576698