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

Issue 2484223005: Store original request URL in offline page metadata table (Closed)

Created:
4 years, 1 month ago by jianli
Modified:
4 years, 1 month ago
Reviewers:
Bernhard Bauer, fgorski
CC:
chromium-reviews, cbentzel+watch_chromium.org, romax+watch_chromium.org, tburkard+watch_chromium.org, fgorski+watch_chromium.org, dewittj+watch_chromium.org, petewil+watch_chromium.org, chili+watch_chromium.org, gavinp+prer_chromium.org, dimich+watch_chromium.org, Dmitry Titov
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Store original request URL in offline page metadata table This will be used to support triggering redirect from original request URL to last committed URL which is used to identify the offline page. BUG=618716 TBR=bauerb@chromium.org Committed: https://crrev.com/093a2a9dd37c96fb55776c5415c8dd768328e4c2 Cr-Commit-Position: refs/heads/master@{#432632}

Patch Set 1 #

Patch Set 2 : Add and update tests #

Total comments: 26

Patch Set 3 : Address feedback #

Unified diffs Side-by-side diffs Delta from patch set Stats (+334 lines, -167 lines) Patch
M chrome/browser/android/offline_pages/offline_page_bridge.cc View 1 2 1 chunk +7 lines, -7 lines 0 comments Download
M chrome/browser/android/offline_pages/offline_page_request_job_unittest.cc View 1 2 5 chunks +22 lines, -15 lines 0 comments Download
M chrome/browser/android/offline_pages/offline_page_utils_unittest.cc View 1 2 3 chunks +21 lines, -11 lines 0 comments Download
M chrome/browser/android/offline_pages/prerendering_offliner.h View 1 2 1 chunk +5 lines, -7 lines 0 comments Download
M chrome/browser/android/offline_pages/prerendering_offliner.cc View 1 2 2 chunks +14 lines, -12 lines 0 comments Download
M chrome/browser/android/offline_pages/prerendering_offliner_unittest.cc View 1 2 1 chunk +1 line, -3 lines 0 comments Download
M chrome/browser/android/offline_pages/recent_tab_helper.cc View 1 2 2 chunks +10 lines, -6 lines 0 comments Download
M chrome/browser/ui/webui/offline/offline_internals_ui_message_handler.cc View 1 chunk +1 line, -0 lines 0 comments Download
M components/offline_pages/offline_page_item.h View 2 chunks +5 lines, -1 line 0 comments Download
M components/offline_pages/offline_page_item.cc View 1 chunk +2 lines, -1 line 0 comments Download
M components/offline_pages/offline_page_metadata_store_impl_unittest.cc View 1 2 10 chunks +85 lines, -6 lines 0 comments Download
M components/offline_pages/offline_page_metadata_store_sql.h View 1 1 chunk +1 line, -0 lines 0 comments Download
M components/offline_pages/offline_page_metadata_store_sql.cc View 1 8 chunks +27 lines, -5 lines 0 comments Download
M components/offline_pages/offline_page_model.h View 1 2 2 chunks +23 lines, -8 lines 0 comments Download
M components/offline_pages/offline_page_model.cc View 1 2 1 chunk +11 lines, -0 lines 0 comments Download
M components/offline_pages/offline_page_model_impl.h View 1 2 2 chunks +2 lines, -5 lines 0 comments Download
M components/offline_pages/offline_page_model_impl.cc View 1 2 2 chunks +30 lines, -29 lines 0 comments Download
M components/offline_pages/offline_page_model_impl_unittest.cc View 1 2 8 chunks +65 lines, -45 lines 0 comments Download
M components/offline_pages/stub_offline_page_model.h View 1 2 1 chunk +1 line, -3 lines 0 comments Download
M components/offline_pages/stub_offline_page_model.cc View 1 2 1 chunk +1 line, -3 lines 0 comments Download

Dependent Patchsets:

Messages

Total messages: 23 (14 generated)
jianli
4 years, 1 month ago (2016-11-10 21:59:02 UTC) #2
fgorski
mostly looks good. Please consider adding shess@ for a quick look at our SQL store. ...
4 years, 1 month ago (2016-11-10 23:56:14 UTC) #7
jianli
https://codereview.chromium.org/2484223005/diff/20001/components/offline_pages/offline_page_metadata_store_impl_unittest.cc File components/offline_pages/offline_page_metadata_store_impl_unittest.cc (right): https://codereview.chromium.org/2484223005/diff/20001/components/offline_pages/offline_page_metadata_store_impl_unittest.cc#newcode223 components/offline_pages/offline_page_metadata_store_impl_unittest.cc:223: ASSERT_TRUE(connection.DoesColumnExist(OFFLINE_PAGES_TABLE_V1, "title")); On 2016/11/10 23:56:13, fgorski wrote: > this ...
4 years, 1 month ago (2016-11-16 01:25:40 UTC) #10
fgorski
lgtm, but please update the test (see my response) https://codereview.chromium.org/2484223005/diff/20001/components/offline_pages/offline_page_metadata_store_impl_unittest.cc File components/offline_pages/offline_page_metadata_store_impl_unittest.cc (right): https://codereview.chromium.org/2484223005/diff/20001/components/offline_pages/offline_page_metadata_store_impl_unittest.cc#newcode223 components/offline_pages/offline_page_metadata_store_impl_unittest.cc:223: ...
4 years, 1 month ago (2016-11-16 05:20:25 UTC) #13
jianli
TBR bauerb@chromium.org for simple change to chrome/browser/ui/webui
4 years, 1 month ago (2016-11-16 21:18:13 UTC) #16
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/2484223005/40001
4 years, 1 month ago (2016-11-16 21:19:44 UTC) #18
commit-bot: I haz the power
Committed patchset #3 (id:40001)
4 years, 1 month ago (2016-11-16 21:31:03 UTC) #20
commit-bot: I haz the power
Patchset 3 (id:??) landed as https://crrev.com/093a2a9dd37c96fb55776c5415c8dd768328e4c2 Cr-Commit-Position: refs/heads/master@{#432632}
4 years, 1 month ago (2016-11-16 21:39:38 UTC) #22
jianli
4 years, 1 month ago (2016-11-16 21:58:11 UTC) #23
Message was sent while issue was closed.
https://codereview.chromium.org/2484223005/diff/20001/components/offline_page...
File components/offline_pages/offline_page_metadata_store_impl_unittest.cc
(right):

https://codereview.chromium.org/2484223005/diff/20001/components/offline_page...
components/offline_pages/offline_page_metadata_store_impl_unittest.cc:223:
ASSERT_TRUE(connection.DoesColumnExist(OFFLINE_PAGES_TABLE_V1, "title"));
On 2016/11/16 05:20:25, fgorski wrote:
> On 2016/11/16 01:25:39, jianli wrote:
> > On 2016/11/10 23:56:13, fgorski wrote:
> > > this needs updating to check for the new column.
> > 
> > I think this is used to build the old store which did not contain the new
> > column.
> 
> Exactly, that is why you assert false, as in line 129, where the title column
> was missing.
> ASSERT_FALSE(connection.DoesColumnExist(OFFLINE_PAGES_TABLE_V1,
"new_column"));

I applied the change to the wrong branch. I will include this change in my next
patch you're currently reviewing.

Powered by Google App Engine
This is Rietveld 408576698