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

Issue 2876633002: Add a PersistentStore to FeatureEngagementTracker (Closed)

Created:
3 years, 7 months ago by David Trainor- moved to gerrit
Modified:
3 years, 7 months ago
Reviewers:
nyquist, Ilya Sherman
CC:
chromium-reviews, blundell+watchlist_chromium.org, sdefresne+watchlist_chromium.org, asvitkine+watch_chromium.org, droger+watchlist_chromium.org
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Add a PersistentStore to FeatureEngagementTracker Currently we use an InMemoryStore for the FeatureEngagementTracker, which doesn't persist feature Events beyond the scope of the application lifetime. However once we move beyond demo mode, the feature engagement conditions will span months, so we need to track the data for longer than a single session. This CL implements the Store interface and backs it with a leveldb_proto::ProtoDatabase. BUG=706309 Review-Url: https://codereview.chromium.org/2876633002 Cr-Commit-Position: refs/heads/master@{#471149} Committed: https://chromium.googlesource.com/chromium/src/+/23b616383acde9c16e0892084498620ecc46856f

Patch Set 1 #

Patch Set 2 : Moved test files #

Patch Set 3 : Rebased and fleshed out test #

Total comments: 18

Patch Set 4 : Address comments #

Patch Set 5 : Rebased #

Patch Set 6 : Fix deps #

Unified diffs Side-by-side diffs Delta from patch set Stats (+476 lines, -73 lines) Patch
M components/feature_engagement_tracker/DEPS View 1 chunk +1 line, -0 lines 0 comments Download
M components/feature_engagement_tracker/components_unittests.filter View 1 2 3 4 1 chunk +1 line, -0 lines 0 comments Download
M components/feature_engagement_tracker/internal/BUILD.gn View 1 2 3 4 5 4 chunks +6 lines, -0 lines 0 comments Download
M components/feature_engagement_tracker/internal/feature_engagement_tracker_impl.cc View 1 2 3 4 2 chunks +9 lines, -2 lines 0 comments Download
M components/feature_engagement_tracker/internal/model_impl_unittest.cc View 1 2 3 4 12 chunks +36 lines, -71 lines 0 comments Download
A components/feature_engagement_tracker/internal/persistent_store.h View 1 chunk +58 lines, -0 lines 0 comments Download
A components/feature_engagement_tracker/internal/persistent_store.cc View 1 2 3 1 chunk +76 lines, -0 lines 0 comments Download
A components/feature_engagement_tracker/internal/persistent_store_unittest.cc View 1 2 3 1 chunk +193 lines, -0 lines 0 comments Download
A components/feature_engagement_tracker/internal/test/BUILD.gn View 1 2 3 1 chunk +19 lines, -0 lines 0 comments Download
A components/feature_engagement_tracker/internal/test/event_util.h View 1 2 3 1 chunk +29 lines, -0 lines 0 comments Download
A components/feature_engagement_tracker/internal/test/event_util.cc View 1 2 3 1 chunk +46 lines, -0 lines 0 comments Download
M tools/metrics/histograms/histograms.xml View 1 2 3 4 1 chunk +2 lines, -0 lines 0 comments Download

Depends on Patchset:

Messages

Total messages: 21 (11 generated)
David Trainor- moved to gerrit
nyquist@: ptal at all isherman@: ptal at histograms.xml Thanks!
3 years, 7 months ago (2017-05-10 19:32:38 UTC) #2
Ilya Sherman
histograms.xml lgtm
3 years, 7 months ago (2017-05-11 00:43:37 UTC) #3
nyquist
lgtm! https://codereview.chromium.org/2876633002/diff/40001/components/BUILD.gn File components/BUILD.gn (right): https://codereview.chromium.org/2876633002/diff/40001/components/BUILD.gn#newcode245 components/BUILD.gn:245: deps += [ "//components/feature_engagement_tracker:unit_tests" ] Hey, this looks ...
3 years, 7 months ago (2017-05-11 17:08:04 UTC) #4
David Trainor- moved to gerrit
https://codereview.chromium.org/2876633002/diff/40001/components/BUILD.gn File components/BUILD.gn (right): https://codereview.chromium.org/2876633002/diff/40001/components/BUILD.gn#newcode245 components/BUILD.gn:245: deps += [ "//components/feature_engagement_tracker:unit_tests" ] On 2017/05/11 17:08:03, nyquist ...
3 years, 7 months ago (2017-05-11 19:30:29 UTC) #5
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/2876633002/60001
3 years, 7 months ago (2017-05-11 19:50:39 UTC) #8
commit-bot: I haz the power
Try jobs failed on following builders: android_arm64_dbg_recipe on master.tryserver.chromium.android (JOB_FAILED, https://build.chromium.org/p/tryserver.chromium.android/builders/android_arm64_dbg_recipe/builds/266220) android_clang_dbg_recipe on master.tryserver.chromium.android (JOB_FAILED, ...
3 years, 7 months ago (2017-05-11 19:55:57 UTC) #10
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/2876633002/80001
3 years, 7 months ago (2017-05-11 20:15:27 UTC) #13
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/267597)
3 years, 7 months ago (2017-05-11 20:34:34 UTC) #15
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/2876633002/100001
3 years, 7 months ago (2017-05-11 22:43:12 UTC) #18
commit-bot: I haz the power
3 years, 7 months ago (2017-05-12 00:38:00 UTC) #21
Message was sent while issue was closed.
Committed patchset #6 (id:100001) as
https://chromium.googlesource.com/chromium/src/+/23b616383acde9c16e0892084498...

Powered by Google App Engine
This is Rietveld 408576698