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

Issue 2415473003: Query API: Introduces an OfflinePageModelQuery object. (Closed)

Created:
4 years, 2 months ago by dewittj
Modified:
4 years, 1 month ago
Reviewers:
Dmitry Titov, 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, chili
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Query API: Introduces an OfflinePageModelQuery object. Replaces most query operations within OfflinePageModelImpl with query-based versions. BUG=622763 Committed: https://crrev.com/cc2f7d0c5c3ab42762d9e88ef1f4b293b03b6215 Cr-Commit-Position: refs/heads/master@{#428396}

Patch Set 1 #

Patch Set 2 : Stop making a new client policy controller, have a dangling pointer. #

Total comments: 8

Patch Set 3 : Add tests and address comments. #

Total comments: 8

Patch Set 4 : Moves everything to Requirement-based matching. #

Total comments: 6

Patch Set 5 : Updated re comments. #

Patch Set 6 : Address comments, add more tests, rename enum. #

Total comments: 41

Patch Set 7 : address comments. #

Patch Set 8 : Address more comments. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+926 lines, -111 lines) Patch
M components/offline_pages/BUILD.gn View 2 chunks +3 lines, -0 lines 0 comments Download
M components/offline_pages/client_policy_controller.h View 1 2 3 4 5 6 2 chunks +6 lines, -0 lines 0 comments Download
M components/offline_pages/client_policy_controller.cc View 1 2 3 4 5 6 2 chunks +14 lines, -0 lines 0 comments Download
M components/offline_pages/offline_page_model_impl.h View 1 2 3 4 5 6 4 chunks +6 lines, -11 lines 0 comments Download
M components/offline_pages/offline_page_model_impl.cc View 1 2 3 4 5 6 7 5 chunks +86 lines, -86 lines 0 comments Download
M components/offline_pages/offline_page_model_impl_unittest.cc View 1 2 3 4 5 6 7 10 chunks +21 lines, -14 lines 0 comments Download
A components/offline_pages/offline_page_model_query.h View 1 2 3 4 5 6 7 1 chunk +145 lines, -0 lines 0 comments Download
A components/offline_pages/offline_page_model_query.cc View 1 2 3 4 5 6 7 1 chunk +224 lines, -0 lines 0 comments Download
A components/offline_pages/offline_page_model_query_unittest.cc View 1 2 3 4 5 6 7 1 chunk +421 lines, -0 lines 0 comments Download

Messages

Total messages: 54 (37 generated)
dewittj
ptal, I know I need more tests in the query object but could you give ...
4 years, 2 months ago (2016-10-20 17:39:44 UTC) #13
Dmitry Titov
https://codereview.chromium.org/2415473003/diff/80001/components/offline_pages/client_policy_controller.h File components/offline_pages/client_policy_controller.h (right): https://codereview.chromium.org/2415473003/diff/80001/components/offline_pages/client_policy_controller.h#newcode39 components/offline_pages/client_policy_controller.h:39: std::vector<std::string> GetAllNamespacesExcept( It's a weird method to have here... ...
4 years, 2 months ago (2016-10-20 19:40:54 UTC) #15
dewittj
https://codereview.chromium.org/2415473003/diff/80001/components/offline_pages/client_policy_controller.h File components/offline_pages/client_policy_controller.h (right): https://codereview.chromium.org/2415473003/diff/80001/components/offline_pages/client_policy_controller.h#newcode39 components/offline_pages/client_policy_controller.h:39: std::vector<std::string> GetAllNamespacesExcept( On 2016/10/20 19:40:53, Dmitry Titov wrote: > ...
4 years, 2 months ago (2016-10-21 17:49:47 UTC) #18
Dmitry Titov
https://codereview.chromium.org/2415473003/diff/100001/components/offline_pages/offline_page_model_query.h File components/offline_pages/offline_page_model_query.h (right): https://codereview.chromium.org/2415473003/diff/100001/components/offline_pages/offline_page_model_query.h#newcode52 components/offline_pages/offline_page_model_query.h:52: Unset, Enum values should be either CAPITALIZED or kNamed: ...
4 years, 2 months ago (2016-10-21 20:21:09 UTC) #21
dewittj
https://codereview.chromium.org/2415473003/diff/100001/components/offline_pages/offline_page_model_query.h File components/offline_pages/offline_page_model_query.h (right): https://codereview.chromium.org/2415473003/diff/100001/components/offline_pages/offline_page_model_query.h#newcode52 components/offline_pages/offline_page_model_query.h:52: Unset, On 2016/10/21 20:21:09, Dmitry Titov wrote: > Enum ...
4 years, 1 month ago (2016-10-24 18:19:33 UTC) #24
Dmitry Titov
almost there: https://codereview.chromium.org/2415473003/diff/120001/components/offline_pages/offline_page_model_query.h File components/offline_pages/offline_page_model_query.h (right): https://codereview.chromium.org/2415473003/diff/120001/components/offline_pages/offline_page_model_query.h#newcode23 components/offline_pages/offline_page_model_query.h:23: MATCH, INCLUDE_MATCHING/EXCLUDE_MATCHING ? https://codereview.chromium.org/2415473003/diff/120001/components/offline_pages/offline_page_model_query.h#newcode55 components/offline_pages/offline_page_model_query.h:55: // Used ...
4 years, 1 month ago (2016-10-24 18:28:34 UTC) #25
dewittj
thanks! ptal https://codereview.chromium.org/2415473003/diff/120001/components/offline_pages/offline_page_model_query.h File components/offline_pages/offline_page_model_query.h (right): https://codereview.chromium.org/2415473003/diff/120001/components/offline_pages/offline_page_model_query.h#newcode23 components/offline_pages/offline_page_model_query.h:23: MATCH, On 2016/10/24 18:28:34, Dmitry Titov wrote: ...
4 years, 1 month ago (2016-10-24 22:20:13 UTC) #30
Dmitry Titov
lgtm
4 years, 1 month ago (2016-10-24 22:22:03 UTC) #31
dewittj
+chili@ as FYI for policy controller changes and usage.
4 years, 1 month ago (2016-10-24 22:25:01 UTC) #32
fgorski
Partial review. I am going through query model now. Will take some more time. https://codereview.chromium.org/2415473003/diff/160001/components/offline_pages/client_policy_controller.cc ...
4 years, 1 month ago (2016-10-26 18:05:42 UTC) #39
fgorski
Extra comment we discussed. https://codereview.chromium.org/2415473003/diff/160001/components/offline_pages/offline_page_model_query.cc File components/offline_pages/offline_page_model_query.cc (right): https://codereview.chromium.org/2415473003/diff/160001/components/offline_pages/offline_page_model_query.cc#newcode141 components/offline_pages/offline_page_model_query.cc:141: case Requirement::INCLUDE_MATCHING: suggestion split in ...
4 years, 1 month ago (2016-10-26 18:46:02 UTC) #40
dewittj
https://codereview.chromium.org/2415473003/diff/160001/components/offline_pages/client_policy_controller.cc File components/offline_pages/client_policy_controller.cc (right): https://codereview.chromium.org/2415473003/diff/160001/components/offline_pages/client_policy_controller.cc#newcode7 components/offline_pages/client_policy_controller.cc:7: #include <set> On 2016/10/26 18:05:41, fgorski wrote: > remove? ...
4 years, 1 month ago (2016-10-27 22:49:19 UTC) #41
fgorski
lgtm. Good work. https://codereview.chromium.org/2415473003/diff/160001/components/offline_pages/offline_page_model_impl_unittest.cc File components/offline_pages/offline_page_model_impl_unittest.cc (right): https://codereview.chromium.org/2415473003/diff/160001/components/offline_pages/offline_page_model_impl_unittest.cc#newcode891 components/offline_pages/offline_page_model_impl_unittest.cc:891: ASSERT_NE(nullptr, page); On 2016/10/27 22:49:17, dewittj ...
4 years, 1 month ago (2016-10-28 02:40:39 UTC) #46
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/2415473003/190001
4 years, 1 month ago (2016-10-28 16:55:40 UTC) #49
commit-bot: I haz the power
Failed to apply the patch. On branch working_branch Your branch is up-to-date with 'origin/refs/pending/heads/master'. nothing ...
4 years, 1 month ago (2016-10-28 17:03:09 UTC) #51
dewittj
On 2016/10/28 17:03:09, commit-bot: I haz the power wrote: > Failed to apply the patch. ...
4 years, 1 month ago (2016-10-28 17:10:52 UTC) #52
commit-bot: I haz the power
4 years, 1 month ago (2016-10-28 17:21:55 UTC) #54
Message was sent while issue was closed.
Patchset 8 (id:??) landed as
https://crrev.com/cc2f7d0c5c3ab42762d9e88ef1f4b293b03b6215
Cr-Commit-Position: refs/heads/master@{#428396}

Powered by Google App Engine
This is Rietveld 408576698