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

Issue 2153863002: Move counters for passwords, history and autofill to components (Closed)

Created:
4 years, 5 months ago by ioanap
Modified:
4 years, 5 months ago
CC:
chromium-reviews, blundell+watchlist_chromium.org, markusheintz_, sdefresne+watchlist_chromium.org, msramek+watch_chromium.org, droger+watchlist_chromium.org, melandory
Base URL:
https://chromium.googlesource.com/chromium/src.git@separate_build_targets_in_components_bd
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Move counters for passwords, history and autofill to components Files moved from c/b/browsing_data/ to components/browsing_data/core/counters: - autofill_counter.* - passwords_counter.* - history_counter.* BUG=620317 Committed: https://crrev.com/4245d2bac2ab4d5092e83bbb3ac34174654646e2 Cr-Commit-Position: refs/heads/master@{#407462}

Patch Set 1 #

Patch Set 2 : Fixed tests and polished code #

Patch Set 3 : Removed include #

Patch Set 4 : Fixed dependencies #

Total comments: 25

Patch Set 5 : Addressed comments #

Patch Set 6 : Removed extra empty line #

Total comments: 2

Patch Set 7 : Addressed comments #

Total comments: 6

Patch Set 8 : Addressed comments #

Total comments: 4

Patch Set 9 : Addressed comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+375 lines, -866 lines) Patch
D chrome/browser/browsing_data/autofill_counter.h View 1 chunk +0 lines, -88 lines 0 comments Download
D chrome/browser/browsing_data/autofill_counter.cc View 1 chunk +0 lines, -171 lines 0 comments Download
M chrome/browser/browsing_data/autofill_counter_browsertest.cc View 1 9 chunks +14 lines, -9 lines 0 comments Download
M chrome/browser/browsing_data/browsing_data_counter_factory.cc View 1 2 3 4 5 6 7 8 2 chunks +39 lines, -9 lines 0 comments Download
M chrome/browser/browsing_data/browsing_data_counter_utils.cc View 1 3 chunks +14 lines, -10 lines 0 comments Download
M chrome/browser/browsing_data/browsing_data_counter_utils_unittest.cc View 1 3 chunks +8 lines, -6 lines 0 comments Download
M chrome/browser/browsing_data/cache_counter.h View 1 2 3 4 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/browser/browsing_data/cache_counter.cc View 1 2 3 4 1 chunk +5 lines, -2 lines 0 comments Download
M chrome/browser/browsing_data/downloads_counter.h View 1 2 3 4 1 chunk +2 lines, -2 lines 0 comments Download
M chrome/browser/browsing_data/downloads_counter.cc View 1 2 3 4 1 chunk +5 lines, -2 lines 0 comments Download
D chrome/browser/browsing_data/history_counter.h View 1 chunk +0 lines, -82 lines 0 comments Download
D chrome/browser/browsing_data/history_counter.cc View 1 chunk +0 lines, -192 lines 0 comments Download
M chrome/browser/browsing_data/history_counter_browsertest.cc View 1 2 3 4 5 6 7 12 chunks +83 lines, -26 lines 0 comments Download
M chrome/browser/browsing_data/hosted_apps_counter.h View 1 2 3 4 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/browser/browsing_data/hosted_apps_counter.cc View 1 2 3 4 1 chunk +5 lines, -2 lines 0 comments Download
M chrome/browser/browsing_data/media_licenses_counter.h View 1 2 3 4 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/browser/browsing_data/media_licenses_counter.cc View 1 2 3 4 1 chunk +5 lines, -2 lines 0 comments Download
D chrome/browser/browsing_data/passwords_counter.h View 1 chunk +0 lines, -42 lines 0 comments Download
D chrome/browser/browsing_data/passwords_counter.cc View 1 chunk +0 lines, -49 lines 0 comments Download
M chrome/browser/browsing_data/passwords_counter_browsertest.cc View 1 7 chunks +14 lines, -7 lines 0 comments Download
M chrome/chrome_browser.gypi View 2 chunks +0 lines, -6 lines 0 comments Download
M components/browsing_data.gypi View 1 2 3 4 5 6 7 8 2 chunks +12 lines, -0 lines 0 comments Download
M components/browsing_data/core/BUILD.gn View 1 2 3 4 5 6 7 8 1 chunk +11 lines, -0 lines 0 comments Download
M components/browsing_data/core/DEPS View 1 2 3 4 5 6 7 8 1 chunk +5 lines, -0 lines 0 comments Download
A + components/browsing_data/core/counters/autofill_counter.h View 1 2 3 4 5 chunks +21 lines, -16 lines 0 comments Download
A + components/browsing_data/core/counters/autofill_counter.cc View 1 2 3 4 8 chunks +33 lines, -32 lines 0 comments Download
M components/browsing_data/core/counters/browsing_data_counter.h View 1 2 3 4 2 chunks +2 lines, -5 lines 0 comments Download
M components/browsing_data/core/counters/browsing_data_counter.cc View 2 chunks +1 line, -6 lines 0 comments Download
A + components/browsing_data/core/counters/history_counter.h View 1 2 3 4 5 6 7 8 3 chunks +32 lines, -27 lines 0 comments Download
A + components/browsing_data/core/counters/history_counter.cc View 1 2 3 4 5 6 7 8 8 chunks +27 lines, -47 lines 0 comments Download
A + components/browsing_data/core/counters/passwords_counter.h View 1 2 3 4 2 chunks +14 lines, -11 lines 0 comments Download
A + components/browsing_data/core/counters/passwords_counter.cc View 1 2 3 4 2 chunks +17 lines, -15 lines 0 comments Download

Depends on Patchset:

Messages

Total messages: 44 (23 generated)
ioanap
Hi Martin, Please have a look! Thanks, Ioana
4 years, 5 months ago (2016-07-20 12:17:55 UTC) #17
msramek
Looks good, I just left a couple of comments. https://codereview.chromium.org/2153863002/diff/60001/chrome/browser/browsing_data/browsing_data_counter_factory.cc File chrome/browser/browsing_data/browsing_data_counter_factory.cc (right): https://codereview.chromium.org/2153863002/diff/60001/chrome/browser/browsing_data/browsing_data_counter_factory.cc#newcode78 chrome/browser/browsing_data/browsing_data_counter_factory.cc:78: ...
4 years, 5 months ago (2016-07-20 13:41:16 UTC) #18
ioanap
Addressed comments. Thanks, Ioana https://codereview.chromium.org/2153863002/diff/60001/chrome/browser/browsing_data/browsing_data_counter_factory.cc File chrome/browser/browsing_data/browsing_data_counter_factory.cc (right): https://codereview.chromium.org/2153863002/diff/60001/chrome/browser/browsing_data/browsing_data_counter_factory.cc#newcode78 chrome/browser/browsing_data/browsing_data_counter_factory.cc:78: history::WebHistoryService* On 2016/07/20 13:41:16, msramek ...
4 years, 5 months ago (2016-07-20 17:50:37 UTC) #19
msramek
LGTM with a comment and a request. https://codereview.chromium.org/2153863002/diff/60001/chrome/browser/browsing_data/history_counter_browsertest.cc File chrome/browser/browsing_data/history_counter_browsertest.cc (right): https://codereview.chromium.org/2153863002/diff/60001/chrome/browser/browsing_data/history_counter_browsertest.cc#newcode303 chrome/browser/browsing_data/history_counter_browsertest.cc:303: fake_web_history_service->SetupFakeResponse(true /* ...
4 years, 5 months ago (2016-07-20 18:26:13 UTC) #20
ioanap
Addressed comments. Could you please have a look at the modified callback and tell me ...
4 years, 5 months ago (2016-07-21 11:47:36 UTC) #21
msramek
I understand what was the problem now, thanks for working around it! Still LGTM % ...
4 years, 5 months ago (2016-07-21 12:17:11 UTC) #22
ioanap
blundell@chromium.org: Please review changes in components/browsing_data.gypi Thanks, Ioana https://codereview.chromium.org/2153863002/diff/110001/chrome/browser/browsing_data/browsing_data_counter_factory.cc File chrome/browser/browsing_data/browsing_data_counter_factory.cc (right): https://codereview.chromium.org/2153863002/diff/110001/chrome/browser/browsing_data/browsing_data_counter_factory.cc#newcode38 chrome/browser/browsing_data/browsing_data_counter_factory.cc:38: } ...
4 years, 5 months ago (2016-07-21 13:27:14 UTC) #24
blundell
I don't think you need me based on the browsing_data line in //components/OWNERS.
4 years, 5 months ago (2016-07-21 13:30:40 UTC) #25
msramek
Still LGTM. On 2016/07/21 13:30:40, blundell wrote: > I don't think you need me based ...
4 years, 5 months ago (2016-07-21 13:45:41 UTC) #26
ioanap
Ah, you're right, that's what happened. Sorry!
4 years, 5 months ago (2016-07-21 13:56:11 UTC) #27
ioanap
+vabr for DEPS on: - components/autofill/core/browser - components/password_manager/core/browser +maxbogue for DEPS on: - components/browser_sync/browser - ...
4 years, 5 months ago (2016-07-21 14:27:18 UTC) #29
vabr (Chromium)
On 2016/07/21 14:27:18, ioanap wrote: > +vabr for DEPS on: > - components/autofill/core/browser > - ...
4 years, 5 months ago (2016-07-21 14:31:51 UTC) #30
maxbogue
https://codereview.chromium.org/2153863002/diff/130001/chrome/browser/browsing_data/browsing_data_counter_factory.h File chrome/browser/browsing_data/browsing_data_counter_factory.h (right): https://codereview.chromium.org/2153863002/diff/130001/chrome/browser/browsing_data/browsing_data_counter_factory.h#newcode20 chrome/browser/browsing_data/browsing_data_counter_factory.h:20: class WebHistoryService; Why is this here? I don't see ...
4 years, 5 months ago (2016-07-21 16:03:05 UTC) #31
Peter Kasting
LGTM
4 years, 5 months ago (2016-07-21 19:11:48 UTC) #32
ioanap
Thank you for the reviews! maxbogue@: I removed the dependency on browser_sync. https://codereview.chromium.org/2153863002/diff/130001/chrome/browser/browsing_data/browsing_data_counter_factory.h File chrome/browser/browsing_data/browsing_data_counter_factory.h ...
4 years, 5 months ago (2016-07-22 09:59:25 UTC) #34
maxbogue
lgtm for the sync_driver DEP, thanks!
4 years, 5 months ago (2016-07-22 16:50:01 UTC) #35
ioanap
sdefresne@: friendly ping! :) (for DEPS on components/history/core/browser)
4 years, 5 months ago (2016-07-25 08:53:07 UTC) #36
sdefresne
lgtm
4 years, 5 months ago (2016-07-25 12:19:14 UTC) #37
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/2153863002/170001
4 years, 5 months ago (2016-07-25 12:23:18 UTC) #40
commit-bot: I haz the power
Committed patchset #9 (id:170001)
4 years, 5 months ago (2016-07-25 13:28:27 UTC) #42
commit-bot: I haz the power
4 years, 5 months ago (2016-07-25 13:30:15 UTC) #44
Message was sent while issue was closed.
Patchset 9 (id:??) landed as
https://crrev.com/4245d2bac2ab4d5092e83bbb3ac34174654646e2
Cr-Commit-Position: refs/heads/master@{#407462}

Powered by Google App Engine
This is Rietveld 408576698