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

Issue 2040163003: Refactors offline page tab helper to stash the offline page item on redirect. (Closed)

Created:
4 years, 6 months ago by dewittj
Modified:
4 years, 6 months ago
Reviewers:
jianli, fgorski
CC:
chromium-reviews, romax+watch_chromium.org, fgorski+watch_chromium.org, dewittj+watch_chromium.org, petewil+watch_chromium.org, chili+watch_chromium.org, dimich+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@single-result
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Refactors offline page tab helper to stash the offline page item on redirect. This allows the Tab to pull the offline page item synchronously when it's rendering the omnibox UI. BUG=607684 Committed: https://crrev.com/44d11cb4bed3575d3c89abae66b61d6f76f221f8 Cr-Commit-Position: refs/heads/master@{#400542}

Patch Set 1 #

Patch Set 2 : Rebase. #

Patch Set 3 : Add a dedicated test. #

Total comments: 2

Patch Set 4 : Move pointer to tab helper. #

Patch Set 5 : remove move. #

Total comments: 8

Patch Set 6 : Refactor for clarity. #

Patch Set 7 : Address comments. #

Patch Set 8 : Fix bug where offline page is reset while navigating to an offline page. #

Total comments: 1

Patch Set 9 : fix nit. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+141 lines, -56 lines) Patch
M chrome/browser/android/offline_pages/offline_page_tab_helper.h View 1 2 3 4 5 6 4 chunks +20 lines, -5 lines 0 comments Download
M chrome/browser/android/offline_pages/offline_page_tab_helper.cc View 1 2 3 4 5 6 7 8 5 chunks +81 lines, -45 lines 0 comments Download
M chrome/browser/android/offline_pages/offline_page_tab_helper_unittest.cc View 1 2 3 4 5 6 5 chunks +24 lines, -6 lines 0 comments Download
M chrome/browser/android/offline_pages/offline_page_utils.h View 1 2 3 4 5 6 2 chunks +7 lines, -0 lines 0 comments Download
M chrome/browser/android/offline_pages/offline_page_utils.cc View 1 2 3 4 5 6 2 chunks +9 lines, -0 lines 0 comments Download

Messages

Total messages: 24 (12 generated)
dewittj
jianli: ptal
4 years, 6 months ago (2016-06-13 20:58:28 UTC) #7
jianli
Do we really need to introduce another user data that is associated with WebContents? I ...
4 years, 6 months ago (2016-06-14 00:38:44 UTC) #8
dewittj
On 2016/06/14 00:38:44, jianli wrote: > Do we really need to introduce another user data ...
4 years, 6 months ago (2016-06-14 19:43:14 UTC) #9
dewittj
https://codereview.chromium.org/2040163003/diff/100001/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/2040163003/diff/100001/chrome/browser/android/offline_pages/offline_page_tab_helper.cc#newcode194 chrome/browser/android/offline_pages/offline_page_tab_helper.cc:194: Redirect(from_url, redirect_url, std::move(offline_page)); On 2016/06/14 00:38:44, jianli wrote: > ...
4 years, 6 months ago (2016-06-14 19:43:26 UTC) #10
jianli
lgtm https://codereview.chromium.org/2040163003/diff/140001/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/2040163003/diff/140001/chrome/browser/android/offline_pages/offline_page_tab_helper.cc#newcode215 chrome/browser/android/offline_pages/offline_page_tab_helper.cc:215: offline_page ? base::MakeUnique<OfflinePageItem>(*offline_page) : nullptr; I think whether ...
4 years, 6 months ago (2016-06-15 00:44:00 UTC) #11
dewittj
https://codereview.chromium.org/2040163003/diff/140001/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/2040163003/diff/140001/chrome/browser/android/offline_pages/offline_page_tab_helper.cc#newcode215 chrome/browser/android/offline_pages/offline_page_tab_helper.cc:215: offline_page ? base::MakeUnique<OfflinePageItem>(*offline_page) : nullptr; On 2016/06/15 00:44:00, jianli ...
4 years, 6 months ago (2016-06-15 17:21:05 UTC) #12
fgorski
Probably use https://bugs.chromium.org/p/chromium/issues/detail?id=607684
4 years, 6 months ago (2016-06-17 18:51:50 UTC) #14
dewittj
jianli: ptal at most recent patch. Thanks
4 years, 6 months ago (2016-06-17 21:37:24 UTC) #16
jianli
lgtm https://codereview.chromium.org/2040163003/diff/200001/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/2040163003/diff/200001/chrome/browser/android/offline_pages/offline_page_tab_helper.cc#newcode62 chrome/browser/android/offline_pages/offline_page_tab_helper.cc:62: if (offline_page_ && navigated_url != offline_page_->GetOfflineURL()) { nit: ...
4 years, 6 months ago (2016-06-17 21:48:59 UTC) #17
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2040163003/220001
4 years, 6 months ago (2016-06-17 22:43:50 UTC) #20
commit-bot: I haz the power
Committed patchset #9 (id:220001)
4 years, 6 months ago (2016-06-17 23:30:43 UTC) #22
commit-bot: I haz the power
4 years, 6 months ago (2016-06-17 23:33:46 UTC) #24
Message was sent while issue was closed.
Patchset 9 (id:??) landed as
https://crrev.com/44d11cb4bed3575d3c89abae66b61d6f76f221f8
Cr-Commit-Position: refs/heads/master@{#400542}

Powered by Google App Engine
This is Rietveld 408576698