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

Issue 2864973002: [Sync] Create UserEventService. (Closed)

Created:
3 years, 7 months ago by skym
Modified:
3 years, 7 months ago
CC:
chromium-reviews, blundell+watchlist_chromium.org, sdefresne+watchlist_chromium.org, droger+watchlist_chromium.org, sync-reviews_chromium.org
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

[Sync] Create UserEventService. Created a new KeyedService to act as an entry point for reporting UserEvents. Added simple logic in the UserEventService to detect if we should be reporting or not. Note that UserEvents is not currently hooked into Sync yet, and thus no reporting is actually capable of happening. This will come in a subsequent CL. BUG=701032 Review-Url: https://codereview.chromium.org/2864973002 Cr-Commit-Position: refs/heads/master@{#470577} Committed: https://chromium.googlesource.com/chromium/src/+/512bdb1555b3006f68bd35125f58d13d21669d9b

Patch Set 1 #

Patch Set 2 : Self review #

Patch Set 3 : Added keyed service dep to Build file. #

Total comments: 12

Patch Set 4 : Updates for Patrick. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+328 lines, -0 lines) Patch
M chrome/browser/BUILD.gn View 1 2 3 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/browser/profiles/chrome_browser_main_extra_parts_profiles.cc View 1 2 chunks +2 lines, -0 lines 0 comments Download
A chrome/browser/sync/user_event_service_factory.h View 1 2 3 1 chunk +40 lines, -0 lines 0 comments Download
A chrome/browser/sync/user_event_service_factory.cc View 1 2 3 1 chunk +58 lines, -0 lines 0 comments Download
M components/sync/BUILD.gn View 1 2 3 chunks +4 lines, -0 lines 0 comments Download
M components/sync/user_events/DEPS View 1 2 1 chunk +2 lines, -0 lines 0 comments Download
A components/sync/user_events/user_event_service.h View 1 chunk +59 lines, -0 lines 0 comments Download
A components/sync/user_events/user_event_service.cc View 1 2 3 1 chunk +58 lines, -0 lines 0 comments Download
A components/sync/user_events/user_event_service_unittest.cc View 1 2 3 1 chunk +103 lines, -0 lines 0 comments Download

Depends on Patchset:

Dependent Patchsets:

Messages

Total messages: 28 (19 generated)
skym
PTAL. erg@ for +keyed_service dep, and chrome_browser_main_extra_parts_profiles.cc pnoland@ for all sync changes.
3 years, 7 months ago (2017-05-08 00:25:15 UTC) #5
Patrick Noland
https://codereview.chromium.org/2864973002/diff/40001/chrome/browser/sync/user_event_service_factory.cc File chrome/browser/sync/user_event_service_factory.cc (right): https://codereview.chromium.org/2864973002/diff/40001/chrome/browser/sync/user_event_service_factory.cc#newcode20 chrome/browser/sync/user_event_service_factory.cc:20: #include "content/public/browser/browser_thread.h" What is this include for? I don't ...
3 years, 7 months ago (2017-05-08 22:42:38 UTC) #12
skym
Updates for Patrick. https://codereview.chromium.org/2864973002/diff/40001/chrome/browser/sync/user_event_service_factory.cc File chrome/browser/sync/user_event_service_factory.cc (right): https://codereview.chromium.org/2864973002/diff/40001/chrome/browser/sync/user_event_service_factory.cc#newcode20 chrome/browser/sync/user_event_service_factory.cc:20: #include "content/public/browser/browser_thread.h" On 2017/05/08 22:42:37, Patrick ...
3 years, 7 months ago (2017-05-08 23:35:27 UTC) #14
Patrick Noland
lgtm https://codereview.chromium.org/2864973002/diff/40001/components/sync/user_events/user_event_service.cc File components/sync/user_events/user_event_service.cc (right): https://codereview.chromium.org/2864973002/diff/40001/components/sync/user_events/user_event_service.cc#newcode50 components/sync/user_events/user_event_service.cc:50: sync_service_->GetPreferredDataTypes().Has(HISTORY_DELETE_DIRECTIVES); On 2017/05/08 23:35:27, skym wrote: > On ...
3 years, 7 months ago (2017-05-08 23:41:29 UTC) #15
Elliot Glaysher
profiles lgtm
3 years, 7 months ago (2017-05-09 17:45:21 UTC) #19
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/2864973002/60001
3 years, 7 months ago (2017-05-09 17:50:42 UTC) #21
commit-bot: I haz the power
Try jobs failed on following builders: android_compile_dbg on master.tryserver.chromium.android (JOB_FAILED, https://build.chromium.org/p/tryserver.chromium.android/builders/android_compile_dbg/builds/265785)
3 years, 7 months ago (2017-05-10 00:37:18 UTC) #23
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/2864973002/60001
3 years, 7 months ago (2017-05-10 14:57:06 UTC) #25
commit-bot: I haz the power
3 years, 7 months ago (2017-05-10 15:17:32 UTC) #28
Message was sent while issue was closed.
Committed patchset #4 (id:60001) as
https://chromium.googlesource.com/chromium/src/+/512bdb1555b3006f68bd35125f58...

Powered by Google App Engine
This is Rietveld 408576698