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

Issue 1345473003: Added HistoryService::GetHistoryCount() and helper functions in components/history (Closed)

Created:
5 years, 3 months ago by lwchkg
Modified:
5 years, 3 months ago
CC:
chromium-reviews, Mike Lerman
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Added HistoryService::GetHistoryCount() and helper functions in components/history GetHistoryCount counts history the same way they are listed chrome://history i.e. A visit to the URL is counted once if it is visited multiple times in the same day using local time, but counted multiple times if they are visited in different days. BUG=501916 (This CL is uploaded as a response to comment #55-57 in the bug.) Committed: https://crrev.com/4cbca7b75d45f19948cf89c8b5ed6934bd62af4a Cr-Commit-Position: refs/heads/master@{#349184}

Patch Set 1 #

Total comments: 32

Patch Set 2 : Respond to msramek's comment + fixed wrong localtime calculation #

Total comments: 2

Patch Set 3 : Respond to msramek's comment #

Unified diffs Side-by-side diffs Delta from patch set Stats (+93 lines, -0 lines) Patch
M components/history/core/browser/history_backend.h View 1 1 chunk +8 lines, -0 lines 0 comments Download
M components/history/core/browser/history_backend.cc View 1 2 1 chunk +9 lines, -0 lines 0 comments Download
M components/history/core/browser/history_service.h View 1 1 chunk +12 lines, -0 lines 0 comments Download
M components/history/core/browser/history_service.cc View 1 1 chunk +14 lines, -0 lines 0 comments Download
M components/history/core/browser/history_types.h View 1 1 chunk +11 lines, -0 lines 0 comments Download
M components/history/core/browser/visit_database.h View 1 1 chunk +8 lines, -0 lines 0 comments Download
M components/history/core/browser/visit_database.cc View 1 2 chunks +31 lines, -0 lines 0 comments Download

Messages

Total messages: 24 (7 generated)
lwchkg
Dear msramek, Please have a look. Thanks. Regards, WC Leung.
5 years, 3 months ago (2015-09-14 15:50:35 UTC) #2
msramek
Thanks for extracting this! I left some comments. Btw, this feels like it needs tests, ...
5 years, 3 months ago (2015-09-14 17:28:16 UTC) #3
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1345473003/1 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1345473003/1
5 years, 3 months ago (2015-09-14 17:45:07 UTC) #5
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
5 years, 3 months ago (2015-09-14 18:29:39 UTC) #7
lwchkg
Yes building a test is needed. (And I have no experience of writing tests at ...
5 years, 3 months ago (2015-09-15 14:27:09 UTC) #8
lwchkg
Had been so dumb that I replied one of the comments wrongly. Here's the correction. ...
5 years, 3 months ago (2015-09-15 18:03:07 UTC) #9
lwchkg
patch #2 submitted. PTAL.
5 years, 3 months ago (2015-09-15 19:27:31 UTC) #10
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1345473003/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1345473003/20001
5 years, 3 months ago (2015-09-16 11:14:58 UTC) #12
msramek
LGTM sky@, sdefresne@, can you please have a look as owners? https://codereview.chromium.org/1345473003/diff/1/components/history/core/browser/history_service.h File components/history/core/browser/history_service.h (right): ...
5 years, 3 months ago (2015-09-16 11:16:30 UTC) #13
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
5 years, 3 months ago (2015-09-16 11:53:14 UTC) #15
sdefresne
lgtm
5 years, 3 months ago (2015-09-16 14:44:13 UTC) #16
lwchkg
Here's the response to some of msramek's comment. https://codereview.chromium.org/1345473003/diff/1/components/history/core/browser/visit_database.cc File components/history/core/browser/visit_database.cc (right): https://codereview.chromium.org/1345473003/diff/1/components/history/core/browser/visit_database.cc#newcode541 components/history/core/browser/visit_database.cc:541: "SELECT ...
5 years, 3 months ago (2015-09-16 17:32:34 UTC) #17
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1345473003/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1345473003/40001
5 years, 3 months ago (2015-09-16 18:20:41 UTC) #20
commit-bot: I haz the power
Committed patchset #3 (id:40001)
5 years, 3 months ago (2015-09-16 19:19:28 UTC) #21
commit-bot: I haz the power
Patchset 3 (id:??) landed as https://crrev.com/4cbca7b75d45f19948cf89c8b5ed6934bd62af4a Cr-Commit-Position: refs/heads/master@{#349184}
5 years, 3 months ago (2015-09-16 19:20:17 UTC) #22
msramek
https://codereview.chromium.org/1345473003/diff/1/components/history/core/browser/visit_database.cc File components/history/core/browser/visit_database.cc (right): https://codereview.chromium.org/1345473003/diff/1/components/history/core/browser/visit_database.cc#newcode544 components/history/core/browser/visit_database.cc:544: // Windows Epoch to the number of seconds from ...
5 years, 3 months ago (2015-09-17 15:14:25 UTC) #23
commit-bot: I haz the power
5 years, 3 months ago (2015-09-23 12:59:01 UTC) #24
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/4cbca7b75d45f19948cf89c8b5ed6934bd62af4a
Cr-Commit-Position: refs/heads/master@{#349184}

Powered by Google App Engine
This is Rietveld 408576698