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

Issue 2450453002: Refactor BrowsingHistoryHandler, create BrowsingHistoryService (Closed)

Created:
4 years, 1 month ago by Theresa
Modified:
4 years, 1 month ago
Reviewers:
tsergeant, Dan Beam, sky
CC:
chromium-reviews, Patrick Dubroy, dbeam+watch-history_chromium.org, pam+watch_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Refactor BrowsingHistoryHandler, create BrowsingHistoryService Creates a new BrowsingHistoryService that contains the logic that used to be in BrowsingHistoryHandler for querying and observing HistoryService, WebHistoryService, and SyncService. BrowsingHistoryHandler now interacts with BrowsingHistoryService and contains WebUI specific logic. BUG=654071 Committed: https://crrev.com/55397f22c5295f4e15530c9e156b4b78830e8963 Cr-Commit-Position: refs/heads/master@{#433200}

Patch Set 1 #

Total comments: 9

Patch Set 2 : Rebase #

Patch Set 3 : Fix rebase #

Patch Set 4 : Changes from review & fix unit tests #

Patch Set 5 : Add back #include<utility> #

Total comments: 2

Patch Set 6 : Rename HistoryUiService to BrowsingHistoryService #

Total comments: 4

Patch Set 7 : Make BrowsingHistoryServiceHandler its own class #

Patch Set 8 : Rebase #

Patch Set 9 : Rebase #

Patch Set 10 : Add missing import #

Unified diffs Side-by-side diffs Delta from patch set Stats (+973 lines, -992 lines) Patch
M chrome/browser/BUILD.gn View 1 2 3 4 5 6 7 8 1 chunk +3 lines, -0 lines 0 comments Download
A + chrome/browser/history/browsing_history_service.h View 1 2 3 4 5 6 7 8 8 chunks +54 lines, -80 lines 0 comments Download
A chrome/browser/history/browsing_history_service.cc View 1 2 3 4 5 6 7 8 9 1 chunk +580 lines, -0 lines 0 comments Download
A chrome/browser/history/browsing_history_service_handler.h View 1 2 3 4 5 6 1 chunk +39 lines, -0 lines 0 comments Download
A chrome/browser/history/browsing_history_service_unittest.cc View 1 2 3 4 5 1 chunk +147 lines, -0 lines 0 comments Download
M chrome/browser/ui/webui/browsing_history_handler.h View 1 2 3 4 5 6 7 8 6 chunks +15 lines, -198 lines 0 comments Download
M chrome/browser/ui/webui/browsing_history_handler.cc View 1 2 3 4 5 6 7 8 18 chunks +119 lines, -585 lines 0 comments Download
M chrome/browser/ui/webui/browsing_history_handler_unittest.cc View 1 2 3 4 5 6 7 8 9 chunks +15 lines, -129 lines 0 comments Download
M chrome/test/BUILD.gn View 1 2 3 4 5 6 7 8 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 70 (46 generated)
Theresa
ptal For the most part, code moved without modification from browsing_history_handler.cc to history_ui_service.h. I tried ...
4 years, 1 month ago (2016-10-24 15:40:29 UTC) #4
tsergeant
I'm OOO for the next week (I forgot to update my status, sorry), so passing ...
4 years, 1 month ago (2016-10-24 16:00:16 UTC) #6
Dan Beam
dang, I didn't see this for too long. my bad. i'll get to it this ...
4 years, 1 month ago (2016-10-29 01:11:19 UTC) #9
Theresa
On 2016/10/29 01:11:19, Dan Beam wrote: > dang, I didn't see this for too long. ...
4 years, 1 month ago (2016-10-31 18:04:49 UTC) #10
Dan Beam
this generally seems like a useful and fine separation to me tsergeant@: thoughts? https://codereview.chromium.org/2450453002/diff/1/chrome/browser/ui/webui/browsing_history_handler.cc File ...
4 years, 1 month ago (2016-11-03 03:56:34 UTC) #15
tsergeant
This is cool, lgtm https://codereview.chromium.org/2450453002/diff/1/chrome/browser/ui/webui/browsing_history_handler_unittest.cc File chrome/browser/ui/webui/browsing_history_handler_unittest.cc (right): https://codereview.chromium.org/2450453002/diff/1/chrome/browser/ui/webui/browsing_history_handler_unittest.cc#newcode10 chrome/browser/ui/webui/browsing_history_handler_unittest.cc:10: #include <utility> I might be ...
4 years, 1 month ago (2016-11-03 05:45:44 UTC) #16
Dan Beam
https://codereview.chromium.org/2450453002/diff/1/chrome/browser/ui/webui/browsing_history_handler_unittest.cc File chrome/browser/ui/webui/browsing_history_handler_unittest.cc (right): https://codereview.chromium.org/2450453002/diff/1/chrome/browser/ui/webui/browsing_history_handler_unittest.cc#newcode134 chrome/browser/ui/webui/browsing_history_handler_unittest.cc:134: return std::move(service); ^ this uses <utility>
4 years, 1 month ago (2016-11-03 18:04:17 UTC) #27
Theresa
https://codereview.chromium.org/2450453002/diff/1/chrome/browser/ui/webui/browsing_history_handler.cc File chrome/browser/ui/webui/browsing_history_handler.cc (right): https://codereview.chromium.org/2450453002/diff/1/chrome/browser/ui/webui/browsing_history_handler.cc#newcode268 chrome/browser/ui/webui/browsing_history_handler.cc:268: new HistoryUiService(Profile::FromWebUI(web_ui()), this)); On 2016/11/03 03:56:34, Dan Beam wrote: ...
4 years, 1 month ago (2016-11-03 18:09:07 UTC) #28
Dan Beam
any way we could ... not dramatically change this class until after MD history (desktop) ...
4 years, 1 month ago (2016-11-03 19:24:50 UTC) #29
Theresa
On 2016/11/03 19:24:50, Dan Beam wrote: > any way we could ... not dramatically change ...
4 years, 1 month ago (2016-11-03 20:31:23 UTC) #30
Dan Beam
this seems fine to me (lgtm) but it'll be hard to get a useful review ...
4 years, 1 month ago (2016-11-05 00:53:41 UTC) #31
Theresa
+sky@ for changes in chrome/browser/ui/
4 years, 1 month ago (2016-11-07 18:09:11 UTC) #33
Theresa
On 2016/11/05 00:53:41, Dan Beam wrote: > this seems fine to me (lgtm) but it'll ...
4 years, 1 month ago (2016-11-07 18:10:12 UTC) #34
sky
https://codereview.chromium.org/2450453002/diff/80001/chrome/browser/ui/history_ui_service.h File chrome/browser/ui/history_ui_service.h (right): https://codereview.chromium.org/2450453002/diff/80001/chrome/browser/ui/history_ui_service.h#newcode47 chrome/browser/ui/history_ui_service.h:47: class HistoryUiService : public history::HistoryServiceObserver, Is there a reason ...
4 years, 1 month ago (2016-11-07 20:42:52 UTC) #35
Theresa
https://codereview.chromium.org/2450453002/diff/80001/chrome/browser/ui/history_ui_service.h File chrome/browser/ui/history_ui_service.h (right): https://codereview.chromium.org/2450453002/diff/80001/chrome/browser/ui/history_ui_service.h#newcode47 chrome/browser/ui/history_ui_service.h:47: class HistoryUiService : public history::HistoryServiceObserver, On 2016/11/07 20:42:52, sky ...
4 years, 1 month ago (2016-11-07 21:02:16 UTC) #36
sky
I like BrowsingHistoryService. On Mon, Nov 7, 2016 at 1:02 PM, <twellington@chromium.org> wrote: > > ...
4 years, 1 month ago (2016-11-07 21:55:23 UTC) #37
sky
On 2016/11/07 21:55:23, sky wrote: > I like BrowsingHistoryService. > > On Mon, Nov 7, ...
4 years, 1 month ago (2016-11-07 22:29:00 UTC) #38
Theresa
On 2016/11/07 22:29:00, sky wrote: > Also, I think BrowsingHistoryService should live in c/b/history. Done.
4 years, 1 month ago (2016-11-07 23:33:55 UTC) #42
sky
LGTM with the following https://codereview.chromium.org/2450453002/diff/100001/chrome/browser/history/browsing_history_service.h File chrome/browser/history/browsing_history_service.h (right): https://codereview.chromium.org/2450453002/diff/100001/chrome/browser/history/browsing_history_service.h#newcode124 chrome/browser/history/browsing_history_service.h:124: class BrowsingHistoryServiceHandler { Move this ...
4 years, 1 month ago (2016-11-07 23:49:19 UTC) #43
Theresa
Thank you all for the reviews. I'm going to wait to rebase and land this ...
4 years, 1 month ago (2016-11-08 00:59:48 UTC) #47
Theresa
I'm going to land this today now that we've branched.
4 years, 1 month ago (2016-11-18 15:26:02 UTC) #63
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/2450453002/180001
4 years, 1 month ago (2016-11-18 15:26:24 UTC) #66
commit-bot: I haz the power
Committed patchset #10 (id:180001)
4 years, 1 month ago (2016-11-18 15:31:00 UTC) #68
commit-bot: I haz the power
4 years, 1 month ago (2016-11-18 15:32:57 UTC) #70
Message was sent while issue was closed.
Patchset 10 (id:??) landed as
https://crrev.com/55397f22c5295f4e15530c9e156b4b78830e8963
Cr-Commit-Position: refs/heads/master@{#433200}

Powered by Google App Engine
This is Rietveld 408576698