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

Issue 2472863002: Adding offline navigations to the previews blacklist (Closed)

Created:
4 years, 1 month ago by RyanSturm
Modified:
4 years, 1 month ago
Reviewers:
jianli, megjablon
CC:
chromium-reviews, cbentzel+watch_chromium.org, tbansal+watch-data-reduction-proxy_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Adding offline navigations to the previews blacklist This change adds previews navigation to the blacklist when the user reloads original (passing true) or the infobar is dismissed by other means (passing false) for offline previews. Lo-fi and weblite still use the existing mechanism for opt-outs, and will be transitioned to the shared black list later. This changes the offline page tab helper fragment check to an IsSamePage check, so reloads that do not use the offline page do not have incorrect info in offline_info_. BUG=661839 Committed: https://crrev.com/603474151d2ea47cbf53a54b87bf13786aa90cef Cr-Commit-Position: refs/heads/master@{#431066}

Patch Set 1 #

Patch Set 2 : android method #

Patch Set 3 : self review #

Patch Set 4 : offline user IsSamePage #

Patch Set 5 : formatting #

Patch Set 6 : rebase #

Total comments: 4

Patch Set 7 : megjablon comments #

Total comments: 5

Patch Set 8 : megjablon comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+112 lines, -24 lines) Patch
M chrome/browser/android/offline_pages/offline_page_tab_helper.cc View 1 2 3 4 5 1 chunk +1 line, -3 lines 0 comments Download
M chrome/browser/net/spdyproxy/data_reduction_proxy_chrome_io_data.cc View 1 2 3 4 5 6 1 chunk +3 lines, -1 line 0 comments Download
M chrome/browser/previews/previews_infobar_delegate.h View 1 2 3 4 5 6 4 chunks +13 lines, -4 lines 0 comments Download
M chrome/browser/previews/previews_infobar_delegate.cc View 1 2 3 4 5 6 4 chunks +18 lines, -7 lines 0 comments Download
M chrome/browser/previews/previews_infobar_delegate_unittest.cc View 1 2 3 4 5 6 7 7 chunks +22 lines, -5 lines 0 comments Download
M chrome/browser/previews/previews_infobar_tab_helper.cc View 1 2 3 4 5 6 4 chunks +35 lines, -4 lines 0 comments Download
A chrome/browser/previews/previews_service_browser_test.cc View 1 2 3 4 5 6 7 1 chunk +19 lines, -0 lines 0 comments Download
M chrome/test/BUILD.gn View 1 2 3 4 5 6 7 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 48 (37 generated)
RyanSturm
megjablon: PTAL jianli: PTAL, let me know if there is a reason you are doing ...
4 years, 1 month ago (2016-11-04 20:00:04 UTC) #18
RyanSturm
jianli, megjablon: ping I'm OOO for the next couple weeks after Friday, so I'd like ...
4 years, 1 month ago (2016-11-08 21:36:49 UTC) #25
jianli
offline_pages lgtm
4 years, 1 month ago (2016-11-08 23:13:01 UTC) #28
megjablon
https://codereview.chromium.org/2472863002/diff/100001/chrome/browser/previews/previews_infobar_delegate.h File chrome/browser/previews/previews_infobar_delegate.h (right): https://codereview.chromium.org/2472863002/diff/100001/chrome/browser/previews/previews_infobar_delegate.h#newcode29 chrome/browser/previews/previews_infobar_delegate.h:29: typedef base::Callback<void(bool opt_out)> PreviewsUserLeavePreviewCallback; Can we call this OnDismissPreviewsInfobarCallback? ...
4 years, 1 month ago (2016-11-09 00:19:11 UTC) #29
RyanSturm
megjablon: PTAL https://codereview.chromium.org/2472863002/diff/100001/chrome/browser/previews/previews_infobar_delegate.h File chrome/browser/previews/previews_infobar_delegate.h (right): https://codereview.chromium.org/2472863002/diff/100001/chrome/browser/previews/previews_infobar_delegate.h#newcode29 chrome/browser/previews/previews_infobar_delegate.h:29: typedef base::Callback<void(bool opt_out)> PreviewsUserLeavePreviewCallback; On 2016/11/09 00:19:11, ...
4 years, 1 month ago (2016-11-09 18:47:13 UTC) #34
megjablon
https://codereview.chromium.org/2472863002/diff/120001/chrome/browser/previews/previews_infobar_delegate_unittest.cc File chrome/browser/previews/previews_infobar_delegate_unittest.cc (right): https://codereview.chromium.org/2472863002/diff/120001/chrome/browser/previews/previews_infobar_delegate_unittest.cc#newcode101 chrome/browser/previews/previews_infobar_delegate_unittest.cc:101: void DismissPreviewsInfobar(bool user_opt_out) { nit: How about OnDismissPreviewsInfobar instead? ...
4 years, 1 month ago (2016-11-09 19:35:05 UTC) #35
RyanSturm
megjablon: let me know if there seems like there is a gap in test coverage ...
4 years, 1 month ago (2016-11-09 20:45:47 UTC) #38
megjablon
LGTM https://codereview.chromium.org/2472863002/diff/120001/chrome/browser/previews/previews_infobar_tab_helper.cc File chrome/browser/previews/previews_infobar_tab_helper.cc (right): https://codereview.chromium.org/2472863002/diff/120001/chrome/browser/previews/previews_infobar_tab_helper.cc#newcode83 chrome/browser/previews/previews_infobar_tab_helper.cc:83: navigation_handle->GetURL(), previews::PreviewsType::OFFLINE)); On 2016/11/09 20:45:47, Ryan Sturm wrote: ...
4 years, 1 month ago (2016-11-09 22:17:55 UTC) #39
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/2472863002/140001
4 years, 1 month ago (2016-11-09 22:47:50 UTC) #44
commit-bot: I haz the power
Committed patchset #8 (id:140001)
4 years, 1 month ago (2016-11-09 22:53:44 UTC) #46
commit-bot: I haz the power
4 years, 1 month ago (2016-11-09 22:58:33 UTC) #48
Message was sent while issue was closed.
Patchset 8 (id:??) landed as
https://crrev.com/603474151d2ea47cbf53a54b87bf13786aa90cef
Cr-Commit-Position: refs/heads/master@{#431066}

Powered by Google App Engine
This is Rietveld 408576698