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

Issue 1454413002: Move FakeWebHistoryService to components/history (Closed)

Created:
5 years, 1 month ago by msramek
Modified:
5 years ago
CC:
chromium-reviews
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Move FakeWebHistoryService to components/history 1. split to declaration and definition to .cc and .h 2. since we moved to components/, the constructor can no longer derive the needed keyed services from Profile; instead, the caller must do so and pass them to FakeWebHistoryService constructor; the constructor signature now maches that of WebHistoryService 3. added support for the "num" query parameter, i.e. the limit of returned entries TBD: Add tests BUG=553421 Committed: https://crrev.com/b932634b22dcde4d847a2a467a0c07c7c90b413b Cr-Commit-Position: refs/heads/master@{#366071}

Patch Set 1 #

Total comments: 29

Patch Set 2 : Addressed comments. #

Total comments: 4

Patch Set 3 : Include net #

Total comments: 1

Patch Set 4 : Addressed most comments. #

Patch Set 5 : Moved to test/ #

Total comments: 2

Patch Set 6 : Removed forward declaration. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+270 lines, -140 lines) Patch
M chrome/browser/browsing_data/history_counter_browsertest.cc View 1 2 3 4 11 chunks +18 lines, -140 lines 0 comments Download
M chrome/chrome_tests.gypi View 1 1 chunk +1 line, -0 lines 0 comments Download
M components/history.gypi View 1 2 3 4 2 chunks +3 lines, -0 lines 0 comments Download
M components/history/core/test/BUILD.gn View 1 2 3 4 2 chunks +3 lines, -0 lines 0 comments Download
A components/history/core/test/fake_web_history_service.h View 1 2 3 4 1 chunk +76 lines, -0 lines 0 comments Download
A components/history/core/test/fake_web_history_service.cc View 1 2 3 4 5 1 chunk +169 lines, -0 lines 0 comments Download

Messages

Total messages: 24 (8 generated)
msramek
Hi Balázs, please have a look at your leisure. This is P3, so it doesn't ...
5 years, 1 month ago (2015-11-19 15:14:17 UTC) #4
engedy
LGTM % comments. Thanks for the cleanup! https://codereview.chromium.org/1454413002/diff/1/components/history.gypi File components/history.gypi (right): https://codereview.chromium.org/1454413002/diff/1/components/history.gypi#newcode51 components/history.gypi:51: 'history/core/browser/fake_web_history_service.cc', I ...
5 years, 1 month ago (2015-11-19 16:02:16 UTC) #5
msramek
https://codereview.chromium.org/1454413002/diff/1/components/history.gypi File components/history.gypi (right): https://codereview.chromium.org/1454413002/diff/1/components/history.gypi#newcode51 components/history.gypi:51: 'history/core/browser/fake_web_history_service.cc', On 2015/11/19 16:02:16, engedy wrote: > I was ...
5 years ago (2015-11-30 15:17:11 UTC) #6
engedy
LGTM % minor comments. https://codereview.chromium.org/1454413002/diff/1/components/history.gypi File components/history.gypi (right): https://codereview.chromium.org/1454413002/diff/1/components/history.gypi#newcode51 components/history.gypi:51: 'history/core/browser/fake_web_history_service.cc', On 2015/11/30 15:17:10, msramek ...
5 years ago (2015-11-30 15:47:08 UTC) #7
msramek
https://codereview.chromium.org/1454413002/diff/1/components/history/core/browser/fake_web_history_service.h File components/history/core/browser/fake_web_history_service.h (right): https://codereview.chromium.org/1454413002/diff/1/components/history/core/browser/fake_web_history_service.h#newcode45 components/history/core/browser/fake_web_history_service.h:45: class Request : public history::WebHistoryService::Request { On 2015/11/30 15:47:08, ...
5 years ago (2015-12-01 12:27:12 UTC) #8
msramek
+Sylvain, PTAL as the owner of history/ (added a fake testing class) +Markus, PTAL for ...
5 years ago (2015-12-01 12:29:28 UTC) #10
engedy
Ack, LGTM. Thanks for the refactoring!
5 years ago (2015-12-01 12:29:36 UTC) #11
sdefresne
lgtm https://codereview.chromium.org/1454413002/diff/80001/components/history/core/test/fake_web_history_service.cc File components/history/core/test/fake_web_history_service.cc (right): https://codereview.chromium.org/1454413002/diff/80001/components/history/core/test/fake_web_history_service.cc#newcode17 components/history/core/test/fake_web_history_service.cc:17: class FakeWebHistoryService; nit: I think this forward-declaration is ...
5 years ago (2015-12-01 14:13:00 UTC) #12
msramek
https://codereview.chromium.org/1454413002/diff/80001/components/history/core/test/fake_web_history_service.cc File components/history/core/test/fake_web_history_service.cc (right): https://codereview.chromium.org/1454413002/diff/80001/components/history/core/test/fake_web_history_service.cc#newcode17 components/history/core/test/fake_web_history_service.cc:17: class FakeWebHistoryService; On 2015/12/01 14:13:00, sdefresne wrote: > nit: ...
5 years ago (2015-12-01 15:06:54 UTC) #13
msramek
Markus: Ping :-)
5 years ago (2015-12-08 16:11:32 UTC) #14
msramek
Ping! :)
5 years ago (2015-12-14 20:15:16 UTC) #15
markusheintz_
On 2015/12/14 20:15:16, msramek wrote: > Ping! :) LGTM
5 years ago (2015-12-18 09:30:29 UTC) #16
msramek
Thanks, everyone! I'm landing this.
5 years ago (2015-12-18 09:33:09 UTC) #17
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1454413002/100001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1454413002/100001
5 years ago (2015-12-18 09:33:52 UTC) #20
commit-bot: I haz the power
Committed patchset #6 (id:100001)
5 years ago (2015-12-18 10:40:01 UTC) #22
commit-bot: I haz the power
5 years ago (2015-12-18 10:40:48 UTC) #24
Message was sent while issue was closed.
Patchset 6 (id:??) landed as
https://crrev.com/b932634b22dcde4d847a2a467a0c07c7c90b413b
Cr-Commit-Position: refs/heads/master@{#366071}

Powered by Google App Engine
This is Rietveld 408576698