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

Issue 2450353005: Revert of Showing previews UI for Offline Previews (Closed)

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

Description

Revert of Showing previews UI for Offline Previews (patchset #17 id:320001 of https://codereview.chromium.org/2362033002/ ) Reason for revert: Speculative revert: might have broken a bunch of infobar tests. This CL is the only infobar-related one in the blamelist. https://uberchromegw.corp.google.com/i/chromium.linux/builders/Android%20Tests%20%28dbg%29/builds/36738 For instance org.chromium.chrome.browser.infobar.InfoBarContainerTest#testCloseTabOnAdd: junit.framework.AssertionFailedError: expected:<2> but was:<1> at org.chromium.chrome.browser.infobar.InfoBarContainerTest.addInfoBarToCurrentTab(InfoBarContainerTest.java:103) at org.chromium.chrome.browser.infobar.InfoBarContainerTest.testCloseTabOnAdd(InfoBarContainerTest.java:223) Original issue's 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. > > BUG=615564, 649148 > > Committed: https://crrev.com/21364834a65e541369e8895d93695dfaf114056b > Committed: https://crrev.com/e28ec590f2f8f5103fb724c587d3abc1a6782cb8 > Cr-Original-Commit-Position: refs/heads/master@{#427902} > Cr-Commit-Position: refs/heads/master@{#428124} TBR=bmcquade@chromium.org,jianli@chromium.org,megjablon@chromium.org,dewittj@chromium.org,ryansturm@chromium.org # Skipping CQ checks because original CL landed less than 1 days ago. NOPRESUBMIT=true NOTREECHECKS=true NOTRY=true BUG=615564, 649148 Committed: https://crrev.com/a438c4bcb58e59d72727dbf83a2e9251a949a9a2 Cr-Commit-Position: refs/heads/master@{#428324}

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+38 lines, -186 lines) Patch
M chrome/android/java/src/org/chromium/chrome/browser/offlinepages/OfflinePageBridge.java View 2 chunks +0 lines, -10 lines 0 comments Download
M chrome/android/java/src/org/chromium/chrome/browser/offlinepages/OfflinePageTabObserver.java View 1 chunk +1 line, -7 lines 0 comments Download
M chrome/android/java/src/org/chromium/chrome/browser/offlinepages/OfflinePageUtils.java View 1 chunk +0 lines, -10 lines 0 comments Download
M chrome/android/junit/src/org/chromium/chrome/browser/offlinepages/OfflinePageTabObserverTest.java View 3 chunks +7 lines, -32 lines 0 comments Download
M chrome/browser/android/offline_pages/offline_page_bridge.h View 1 chunk +0 lines, -5 lines 0 comments Download
M chrome/browser/android/offline_pages/offline_page_bridge.cc View 1 chunk +0 lines, -11 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 3 chunks +4 lines, -11 lines 0 comments Download
M chrome/browser/android/offline_pages/offline_page_utils.h View 1 chunk +0 lines, -3 lines 0 comments Download
M chrome/browser/android/offline_pages/offline_page_utils.cc View 1 chunk +0 lines, -8 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 2 chunks +4 lines, -4 lines 0 comments Download
M chrome/browser/previews/previews_infobar_tab_helper.h View 2 chunks +5 lines, -8 lines 0 comments Download
M chrome/browser/previews/previews_infobar_tab_helper.cc View 3 chunks +14 lines, -32 lines 0 comments Download
M chrome/browser/previews/previews_infobar_tab_helper_unittest.cc View 4 chunks +0 lines, -42 lines 0 comments Download

Messages

Total messages: 8 (3 generated)
phoglund_chromium
Created Revert of Showing previews UI for Offline Previews
4 years, 1 month ago (2016-10-28 09:39:27 UTC) #2
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/2450353005/1
4 years, 1 month ago (2016-10-28 09:39:45 UTC) #3
commit-bot: I haz the power
Committed patchset #1 (id:1)
4 years, 1 month ago (2016-10-28 09:41:01 UTC) #5
commit-bot: I haz the power
Patchset 1 (id:??) landed as https://crrev.com/a438c4bcb58e59d72727dbf83a2e9251a949a9a2 Cr-Commit-Position: refs/heads/master@{#428324}
4 years, 1 month ago (2016-10-28 09:43:06 UTC) #7
RyanSturm
4 years, 1 month ago (2016-10-28 13:25:52 UTC) #8
Message was sent while issue was closed.
On 2016/10/28 09:43:06, commit-bot: I haz the power wrote:
> Patchset 1 (id:??) landed as
> https://crrev.com/a438c4bcb58e59d72727dbf83a2e9251a949a9a2
> Cr-Commit-Position: refs/heads/master@{#428324}

lgtm, thanks for the revert. I'll look at the failures and try to re-land.

Powered by Google App Engine
This is Rietveld 408576698