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

Issue 2462653002: Showing previews UI for Offline Previews (Closed)

Created:
4 years, 1 month ago by RyanSturm
Modified:
4 years, 1 month ago
CC:
chromium-reviews, dewittj+watch_chromium.org, fgorski+watch_chromium.org, romax+watch_chromium.org, petewil+watch_chromium.org, chili+watch_chromium.org, csharrison+watch_chromium.org, loading-reviews+metrics_chromium.org, agrieve+watch_chromium.org, dimich+watch_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Showing previews UI for Offline Previews This changes the functionality of is_offline_preview() in OfflinePageTabHelper to check the provisional information as well. Additionally, this CL addresses other consumers of this information that want access to it in DidFinishNavigation. Specifically, PreviewsPageLoadMetricsObserver will access the is_offline_previews bit as will PreviewsInfoBarHelper. This also prevents showing the offline pages snackbar and replaces it with the previews infobar. This leaves the Offline omnibox and other UI features. This is a re-land of https://codereview.chromium.org/2362033002/ BUG=615564, 649148 TBR=bmcquade Committed: https://crrev.com/ad9e85d3ae876b9531b7850d120a3f363ea0ad34 Cr-Commit-Position: refs/heads/master@{#428409}

Patch Set 1 : Last CL landed (https://codereview.chromium.org/2362033002/) #

Patch Set 2 : fix #

Total comments: 1

Patch Set 3 : fgorski comment #

Unified diffs Side-by-side diffs Delta from patch set Stats (+187 lines, -38 lines) Patch
M chrome/android/java/src/org/chromium/chrome/browser/offlinepages/OfflinePageBridge.java View 2 chunks +10 lines, -0 lines 0 comments Download
M chrome/android/java/src/org/chromium/chrome/browser/offlinepages/OfflinePageTabObserver.java View 1 chunk +7 lines, -1 line 0 comments Download
M chrome/android/java/src/org/chromium/chrome/browser/offlinepages/OfflinePageUtils.java View 1 chunk +10 lines, -0 lines 0 comments Download
M chrome/android/junit/src/org/chromium/chrome/browser/offlinepages/OfflinePageTabObserverTest.java View 3 chunks +31 lines, -6 lines 0 comments Download
M chrome/browser/android/offline_pages/offline_page_bridge.h View 1 chunk +5 lines, -0 lines 0 comments Download
M chrome/browser/android/offline_pages/offline_page_bridge.cc View 1 chunk +11 lines, -0 lines 0 comments Download
M chrome/browser/android/offline_pages/offline_page_tab_helper.h View 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/browser/android/offline_pages/offline_page_tab_helper.cc View 1 2 3 chunks +13 lines, -5 lines 0 comments Download
M chrome/browser/android/offline_pages/offline_page_utils.h View 1 chunk +3 lines, -0 lines 0 comments Download
M chrome/browser/android/offline_pages/offline_page_utils.cc View 1 chunk +8 lines, -0 lines 0 comments Download
M chrome/browser/page_load_metrics/observers/previews_page_load_metrics_observer.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/previews/previews_infobar_delegate.cc View 1 chunk +4 lines, -4 lines 0 comments Download
M chrome/browser/previews/previews_infobar_tab_helper.h View 1 chunk +8 lines, -5 lines 0 comments Download
M chrome/browser/previews/previews_infobar_tab_helper.cc View 1 chunk +32 lines, -14 lines 0 comments Download
M chrome/browser/previews/previews_infobar_tab_helper_unittest.cc View 3 chunks +42 lines, -0 lines 0 comments Download

Depends on Patchset:

Messages

Total messages: 23 (17 generated)
RyanSturm
jianli: PTAL at the diff from the landed patch tbansal: PTAL, nothing has changed in ...
4 years, 1 month ago (2016-10-28 14:11:15 UTC) #5
tbansal1
lgtm
4 years, 1 month ago (2016-10-28 14:18:00 UTC) #6
fgorski
offline_pages lgtm mod comment. https://codereview.chromium.org/2462653002/diff/20001/chrome/browser/android/offline_pages/offline_page_tab_helper.cc File chrome/browser/android/offline_pages/offline_page_tab_helper.cc (right): https://codereview.chromium.org/2462653002/diff/20001/chrome/browser/android/offline_pages/offline_page_tab_helper.cc#newcode182 chrome/browser/android/offline_pages/offline_page_tab_helper.cc:182: // TODO: Change this once ...
4 years, 1 month ago (2016-10-28 16:16:29 UTC) #10
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/2462653002/40001
4 years, 1 month ago (2016-10-28 17:22:59 UTC) #19
commit-bot: I haz the power
Committed patchset #3 (id:40001)
4 years, 1 month ago (2016-10-28 17:28:33 UTC) #21
commit-bot: I haz the power
4 years, 1 month ago (2016-10-28 17:53:33 UTC) #23
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/ad9e85d3ae876b9531b7850d120a3f363ea0ad34
Cr-Commit-Position: refs/heads/master@{#428409}

Powered by Google App Engine
This is Rietveld 408576698