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

Issue 2877243002: Support IPH NotifyEvent calls before Initialize (Closed)

Created:
3 years, 7 months ago by David Trainor- moved to gerrit
Modified:
3 years, 7 months ago
Reviewers:
nyquist
CC:
chromium-reviews
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Support IPH NotifyEvent calls before Initialize Previously any attempt to call FeatureEngagementTracker::NotifyEvent() would crash if the Model and Store had not finished initializing yet. This adds support for queuing up calls to NotifyEvent() so that once the underlying Model and Store are initialized they can properly receive the calls. This is done by building a Model implementation that wraps another Model implementation and queues up calls if the underlying Model is not ready. BUG=706309 Review-Url: https://codereview.chromium.org/2877243002 Cr-Commit-Position: refs/heads/master@{#471528} Committed: https://chromium.googlesource.com/chromium/src/+/f5bb53683cec36b37334b069b35b7c42b76f59a0

Patch Set 1 #

Total comments: 3

Patch Set 2 : Fixed build.gn #

Messages

Total messages: 10 (5 generated)
David Trainor- moved to gerrit
ptal
3 years, 7 months ago (2017-05-12 23:04:21 UTC) #2
nyquist
Overall lgtm! It's probably good to remove the extra line from //components/BUILD.gn though :-p And ...
3 years, 7 months ago (2017-05-12 23:12:24 UTC) #3
David Trainor- moved to gerrit
https://codereview.chromium.org/2877243002/diff/1/components/feature_engagement_tracker/internal/feature_engagement_tracker_impl.cc File components/feature_engagement_tracker/internal/feature_engagement_tracker_impl.cc (right): https://codereview.chromium.org/2877243002/diff/1/components/feature_engagement_tracker/internal/feature_engagement_tracker_impl.cc#newcode45 components/feature_engagement_tracker/internal/feature_engagement_tracker_impl.cc:45: base::MakeUnique<ModelImpl>(base::MakeUnique<InMemoryStore>(), On 2017/05/12 23:12:24, nyquist (nychthemeron ping) wrote: > ...
3 years, 7 months ago (2017-05-13 00:03:52 UTC) #4
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/2877243002/20001
3 years, 7 months ago (2017-05-13 00:04:48 UTC) #7
commit-bot: I haz the power
3 years, 7 months ago (2017-05-13 01:20:56 UTC) #10
Message was sent while issue was closed.
Committed patchset #2 (id:20001) as
https://chromium.googlesource.com/chromium/src/+/f5bb53683cec36b37334b069b35b...

Powered by Google App Engine
This is Rietveld 408576698