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

Issue 2643723004: Add Desktop iOS promotion logging to chrome ios app. (Closed)

Created:
3 years, 11 months ago by mrefaat
Modified:
3 years, 10 months ago
CC:
chromium-reviews, pkl (ping after 24h if needed), noyau+watch_chromium.org, sdefresne+watch_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Add Desktop iOS promotion logging to chrome ios app. Create a sync observer for the desktop promotion and add it on the application main controller. When the priority prefs are synced. log to UMA if the user have seen the desktop promotion on the last 7 days and log if they triggered the sms feature on the promotion. Also mark the promotion as completed using priority prefs. BUG=681885 Review-Url: https://codereview.chromium.org/2643723004 Cr-Commit-Position: refs/heads/master@{#447026} Committed: https://chromium.googlesource.com/chromium/src/+/54a832541cb8aafced2f60deb296132c90ad1eb4

Patch Set 1 : CL #

Total comments: 8

Patch Set 2 : address comments / change pref name #

Total comments: 16

Patch Set 3 : add histogram #

Total comments: 6

Patch Set 4 : adding histogram changes and addressing comments #

Total comments: 13

Patch Set 5 : Add histogram_macros to desktop_promotion/ #

Total comments: 6

Patch Set 6 : browser_state keyed service #

Total comments: 21

Patch Set 7 : create new file for sync service & move prefs to pref_names.h #

Total comments: 12

Patch Set 8 : remove histogram_macros #

Total comments: 10

Patch Set 9 : histogram summary #

Total comments: 10

Patch Set 10 : change histogram name #

Total comments: 19

Patch Set 11 : address nits #

Total comments: 2

Patch Set 12 : to be submitted #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+405 lines, -0 lines) Patch
M ios/chrome/browser/browser_state/BUILD.gn View 1 2 3 4 5 7 8 9 10 1 chunk +1 line, -0 lines 0 comments Download
M ios/chrome/browser/browser_state/browser_state_keyed_service_factories.mm View 1 2 3 4 5 2 chunks +2 lines, -0 lines 0 comments Download
M ios/chrome/browser/browser_state/chrome_browser_state_manager_impl.cc View 1 2 3 4 5 2 chunks +2 lines, -0 lines 0 comments Download
A ios/chrome/browser/desktop_promotion/BUILD.gn View 1 2 3 4 5 6 7 8 9 10 1 chunk +26 lines, -0 lines 0 comments Download
A ios/chrome/browser/desktop_promotion/desktop_promotion_sync_observer.h View 1 2 3 4 5 6 1 chunk +40 lines, -0 lines 0 comments Download
A ios/chrome/browser/desktop_promotion/desktop_promotion_sync_observer.cc View 1 2 3 4 5 6 7 8 9 10 1 chunk +92 lines, -0 lines 0 comments Download
A ios/chrome/browser/desktop_promotion/desktop_promotion_sync_service.h View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +36 lines, -0 lines 0 comments Download
A ios/chrome/browser/desktop_promotion/desktop_promotion_sync_service.cc View 1 2 3 4 5 6 1 chunk +34 lines, -0 lines 0 comments Download
A ios/chrome/browser/desktop_promotion/desktop_promotion_sync_service_factory.h View 1 2 3 4 5 6 1 chunk +42 lines, -0 lines 0 comments Download
A ios/chrome/browser/desktop_promotion/desktop_promotion_sync_service_factory.cc View 1 2 3 4 5 6 1 chunk +50 lines, -0 lines 0 comments Download
M ios/chrome/browser/pref_names.h View 1 2 3 4 5 6 1 chunk +5 lines, -0 lines 0 comments Download
M ios/chrome/browser/pref_names.cc View 1 2 3 4 5 6 7 8 9 10 1 chunk +21 lines, -0 lines 0 comments Download
M ios/chrome/browser/prefs/BUILD.gn View 1 chunk +1 line, -0 lines 0 comments Download
M ios/chrome/browser/prefs/browser_prefs.mm View 1 2 3 4 5 6 7 8 9 10 2 chunks +2 lines, -0 lines 0 comments Download
M tools/metrics/histograms/histograms.xml View 1 2 3 4 5 6 7 8 9 10 3 chunks +51 lines, -0 lines 1 comment Download

Messages

Total messages: 52 (22 generated)
mrefaat
3 years, 11 months ago (2017-01-18 23:00:31 UTC) #5
pkl (ping after 24h if needed)
drive-by https://codereview.chromium.org/2643723004/diff/40001/ios/chrome/browser/desktop_promotion/desktop_promotion_sync_observer.mm File ios/chrome/browser/desktop_promotion/desktop_promotion_sync_observer.mm (right): https://codereview.chromium.org/2643723004/diff/40001/ios/chrome/browser/desktop_promotion/desktop_promotion_sync_observer.mm#newcode20 ios/chrome/browser/desktop_promotion/desktop_promotion_sync_observer.mm:20: const int kMaxEntrypoints = 5; What is the ...
3 years, 11 months ago (2017-01-18 23:47:02 UTC) #7
mrefaat1
https://codereview.chromium.org/2643723004/diff/40001/ios/chrome/browser/desktop_promotion/desktop_promotion_sync_observer.mm File ios/chrome/browser/desktop_promotion/desktop_promotion_sync_observer.mm (right): https://codereview.chromium.org/2643723004/diff/40001/ios/chrome/browser/desktop_promotion/desktop_promotion_sync_observer.mm#newcode20 ios/chrome/browser/desktop_promotion/desktop_promotion_sync_observer.mm:20: const int kMaxEntrypoints = 5; On 2017/01/18 23:47:02, pklpkl ...
3 years, 11 months ago (2017-01-19 05:17:30 UTC) #9
Mark P
Happened to drive-by when reviewing some histograms descriptions for this work. Hope these comments help ...
3 years, 11 months ago (2017-01-19 23:35:48 UTC) #12
Mark P
https://codereview.chromium.org/2643723004/diff/120001/tools/metrics/histograms/histograms.xml File tools/metrics/histograms/histograms.xml (right): https://codereview.chromium.org/2643723004/diff/120001/tools/metrics/histograms/histograms.xml#newcode10017 tools/metrics/histograms/histograms.xml:10017: + entry point promotion on desktop and user signing ...
3 years, 11 months ago (2017-01-20 17:43:40 UTC) #13
mrefaat
https://codereview.chromium.org/2643723004/diff/100001/ios/chrome/browser/desktop_promotion/desktop_promotion_sync_observer.mm File ios/chrome/browser/desktop_promotion/desktop_promotion_sync_observer.mm (right): https://codereview.chromium.org/2643723004/diff/100001/ios/chrome/browser/desktop_promotion/desktop_promotion_sync_observer.mm#newcode9 ios/chrome/browser/desktop_promotion/desktop_promotion_sync_observer.mm:9: #include "base/metrics/histogram.h" On 2017/01/19 23:35:48, Mark P wrote: > ...
3 years, 11 months ago (2017-01-20 19:14:59 UTC) #16
Mark P
https://codereview.chromium.org/2643723004/diff/100001/ios/chrome/browser/desktop_promotion/desktop_promotion_sync_observer.mm File ios/chrome/browser/desktop_promotion/desktop_promotion_sync_observer.mm (right): https://codereview.chromium.org/2643723004/diff/100001/ios/chrome/browser/desktop_promotion/desktop_promotion_sync_observer.mm#newcode26 ios/chrome/browser/desktop_promotion/desktop_promotion_sync_observer.mm:26: "DesktopIOSPromotion.SMSSent.IOSSigninReason"; On 2017/01/20 19:14:59, mrefaat wrote: > On 2017/01/19 ...
3 years, 11 months ago (2017-01-20 19:40:06 UTC) #19
rohitrao (ping after 24h)
https://codereview.chromium.org/2643723004/diff/200001/ios/chrome/app/main_controller.mm File ios/chrome/app/main_controller.mm (right): https://codereview.chromium.org/2643723004/diff/200001/ios/chrome/app/main_controller.mm#newcode340 ios/chrome/app/main_controller.mm:340: std::unique_ptr<DesktopPromotionSyncObserver> _desktopPromotionSyncObserver; Can this be a BrowserStateKeyedService instead of ...
3 years, 11 months ago (2017-01-23 20:31:39 UTC) #20
mrefaat
For moving out of the main controller - i'm still checking how can i do ...
3 years, 11 months ago (2017-01-24 19:57:20 UTC) #22
sdefresne
This is just the verbose version of what I said on hangout when you asked ...
3 years, 11 months ago (2017-01-25 09:52:52 UTC) #24
sdefresne
https://codereview.chromium.org/2643723004/diff/240001/ios/chrome/browser/desktop_promotion/desktop_promotion_sync_observer.mm File ios/chrome/browser/desktop_promotion/desktop_promotion_sync_observer.mm (right): https://codereview.chromium.org/2643723004/diff/240001/ios/chrome/browser/desktop_promotion/desktop_promotion_sync_observer.mm#newcode43 ios/chrome/browser/desktop_promotion/desktop_promotion_sync_observer.mm:43: if (!desktop_metrics_logger_initiated_ && Unrelated to KeyedService, I think you ...
3 years, 11 months ago (2017-01-25 09:58:22 UTC) #25
mrefaat1
https://codereview.chromium.org/2643723004/diff/240001/ios/chrome/browser/desktop_promotion/desktop_promotion_sync_observer.h File ios/chrome/browser/desktop_promotion/desktop_promotion_sync_observer.h (right): https://codereview.chromium.org/2643723004/diff/240001/ios/chrome/browser/desktop_promotion/desktop_promotion_sync_observer.h#newcode15 ios/chrome/browser/desktop_promotion/desktop_promotion_sync_observer.h:15: class DesktopPromotionSyncObserver : public syncer::SyncServiceObserver { On 2017/01/25 09:52:52, ...
3 years, 11 months ago (2017-01-26 16:51:19 UTC) #27
sdefresne
lgtm https://codereview.chromium.org/2643723004/diff/280001/ios/chrome/browser/desktop_promotion/desktop_promotion_prefs.h File ios/chrome/browser/desktop_promotion/desktop_promotion_prefs.h (right): https://codereview.chromium.org/2643723004/diff/280001/ios/chrome/browser/desktop_promotion/desktop_promotion_prefs.h#newcode12 ios/chrome/browser/desktop_promotion/desktop_promotion_prefs.h:12: namespace prefs { Can you move those prefs ...
3 years, 11 months ago (2017-01-26 17:03:25 UTC) #28
Mark P
https://codereview.chromium.org/2643723004/diff/280001/ios/chrome/browser/desktop_promotion/desktop_promotion_sync_observer.mm File ios/chrome/browser/desktop_promotion/desktop_promotion_sync_observer.mm (right): https://codereview.chromium.org/2643723004/diff/280001/ios/chrome/browser/desktop_promotion/desktop_promotion_sync_observer.mm#newcode61 ios/chrome/browser/desktop_promotion/desktop_promotion_sync_observer.mm:61: // Entry points are represented on the preference by ...
3 years, 11 months ago (2017-01-26 18:55:15 UTC) #29
mrefaat
https://codereview.chromium.org/2643723004/diff/280001/ios/chrome/browser/desktop_promotion/desktop_promotion_prefs.h File ios/chrome/browser/desktop_promotion/desktop_promotion_prefs.h (right): https://codereview.chromium.org/2643723004/diff/280001/ios/chrome/browser/desktop_promotion/desktop_promotion_prefs.h#newcode12 ios/chrome/browser/desktop_promotion/desktop_promotion_prefs.h:12: namespace prefs { On 2017/01/26 17:03:25, sdefresne wrote: > ...
3 years, 11 months ago (2017-01-26 23:34:12 UTC) #31
Mark P
https://codereview.chromium.org/2643723004/diff/280001/tools/metrics/histograms/histograms.xml File tools/metrics/histograms/histograms.xml (right): https://codereview.chromium.org/2643723004/diff/280001/tools/metrics/histograms/histograms.xml#newcode110489 tools/metrics/histograms/histograms.xml:110489: + On 2017/01/26 23:34:12, mrefaat wrote: > On 2017/01/26 ...
3 years, 11 months ago (2017-01-26 23:47:24 UTC) #32
Mark P
https://codereview.chromium.org/2643723004/diff/320001/ios/chrome/browser/desktop_promotion/desktop_promotion_sync_observer.mm File ios/chrome/browser/desktop_promotion/desktop_promotion_sync_observer.mm (right): https://codereview.chromium.org/2643723004/diff/320001/ios/chrome/browser/desktop_promotion/desktop_promotion_sync_observer.mm#newcode75 ios/chrome/browser/desktop_promotion/desktop_promotion_sync_observer.mm:75: MAX(0, delta.InHours())); BTW, where are you getting MAX from? ...
3 years, 10 months ago (2017-01-27 17:35:01 UTC) #33
mrefaat
https://codereview.chromium.org/2643723004/diff/320001/ios/chrome/browser/desktop_promotion/desktop_promotion_sync_observer.mm File ios/chrome/browser/desktop_promotion/desktop_promotion_sync_observer.mm (right): https://codereview.chromium.org/2643723004/diff/320001/ios/chrome/browser/desktop_promotion/desktop_promotion_sync_observer.mm#newcode19 ios/chrome/browser/desktop_promotion/desktop_promotion_sync_observer.mm:19: const char* kDesktopIOSPromotionEntrypointHistogramPrefix[] = { On 2017/01/26 23:47:24, Mark ...
3 years, 10 months ago (2017-01-27 18:29:43 UTC) #34
Mark P
https://codereview.chromium.org/2643723004/diff/340001/ios/chrome/browser/desktop_promotion/desktop_promotion_sync_observer.mm File ios/chrome/browser/desktop_promotion/desktop_promotion_sync_observer.mm (right): https://codereview.chromium.org/2643723004/diff/340001/ios/chrome/browser/desktop_promotion/desktop_promotion_sync_observer.mm#newcode66 ios/chrome/browser/desktop_promotion/desktop_promotion_sync_observer.mm:66: // in the nit: formatting https://codereview.chromium.org/2643723004/diff/340001/ios/chrome/browser/desktop_promotion/desktop_promotion_sync_observer.mm#newcode78 ios/chrome/browser/desktop_promotion/desktop_promotion_sync_observer.mm:78: 1, 1000, ...
3 years, 10 months ago (2017-01-27 18:58:59 UTC) #35
mrefaat
As per our discussion i updated the description on the histogram.xml https://codereview.chromium.org/2643723004/diff/340001/ios/chrome/browser/desktop_promotion/desktop_promotion_sync_observer.mm File ios/chrome/browser/desktop_promotion/desktop_promotion_sync_observer.mm (right): ...
3 years, 10 months ago (2017-01-27 19:58:41 UTC) #36
Mark P
optimistically saying lgtm on the metrics; please make the changes below. --mark https://codereview.chromium.org/2643723004/diff/360001/ios/chrome/browser/desktop_promotion/desktop_promotion_sync_observer.mm File ios/chrome/browser/desktop_promotion/desktop_promotion_sync_observer.mm ...
3 years, 10 months ago (2017-01-27 20:07:34 UTC) #37
mrefaat
https://codereview.chromium.org/2643723004/diff/360001/ios/chrome/browser/desktop_promotion/desktop_promotion_sync_observer.mm File ios/chrome/browser/desktop_promotion/desktop_promotion_sync_observer.mm (right): https://codereview.chromium.org/2643723004/diff/360001/ios/chrome/browser/desktop_promotion/desktop_promotion_sync_observer.mm#newcode78 ios/chrome/browser/desktop_promotion/desktop_promotion_sync_observer.mm:78: 0, 168, 24, base::Histogram::kUmaTargetedHistogramFlag) On 2017/01/27 20:07:33, Mark P ...
3 years, 10 months ago (2017-01-28 00:02:24 UTC) #38
Mark P
one minor comment, still histograms.xml lgtm generally. https://codereview.chromium.org/2643723004/diff/380001/tools/metrics/histograms/histograms.xml File tools/metrics/histograms/histograms.xml (right): https://codereview.chromium.org/2643723004/diff/380001/tools/metrics/histograms/histograms.xml#newcode10094 tools/metrics/histograms/histograms.xml:10094: + to ...
3 years, 10 months ago (2017-01-28 05:00:54 UTC) #39
sdefresne
lgtm with some comments https://codereview.chromium.org/2643723004/diff/380001/ios/chrome/browser/desktop_promotion/BUILD.gn File ios/chrome/browser/desktop_promotion/BUILD.gn (right): https://codereview.chromium.org/2643723004/diff/380001/ios/chrome/browser/desktop_promotion/BUILD.gn#newcode23 ios/chrome/browser/desktop_promotion/BUILD.gn:23: "//ios/chrome/browser/sync/", Remove trailing "/" :-) ...
3 years, 10 months ago (2017-01-30 15:47:19 UTC) #40
mrefaat
https://codereview.chromium.org/2643723004/diff/380001/ios/chrome/browser/desktop_promotion/BUILD.gn File ios/chrome/browser/desktop_promotion/BUILD.gn (right): https://codereview.chromium.org/2643723004/diff/380001/ios/chrome/browser/desktop_promotion/BUILD.gn#newcode23 ios/chrome/browser/desktop_promotion/BUILD.gn:23: "//ios/chrome/browser/sync/", On 2017/01/30 15:47:19, sdefresne wrote: > Remove trailing ...
3 years, 10 months ago (2017-01-30 16:32:23 UTC) #41
sdefresne
lgtm https://codereview.chromium.org/2643723004/diff/400001/ios/chrome/browser/desktop_promotion/desktop_promotion_sync_service.h File ios/chrome/browser/desktop_promotion/desktop_promotion_sync_service.h (right): https://codereview.chromium.org/2643723004/diff/400001/ios/chrome/browser/desktop_promotion/desktop_promotion_sync_service.h#newcode16 ios/chrome/browser/desktop_promotion/desktop_promotion_sync_service.h:16: // // This class is responsible for creating ...
3 years, 10 months ago (2017-01-30 16:45:54 UTC) #44
mrefaat
https://codereview.chromium.org/2643723004/diff/400001/ios/chrome/browser/desktop_promotion/desktop_promotion_sync_service.h File ios/chrome/browser/desktop_promotion/desktop_promotion_sync_service.h (right): https://codereview.chromium.org/2643723004/diff/400001/ios/chrome/browser/desktop_promotion/desktop_promotion_sync_service.h#newcode16 ios/chrome/browser/desktop_promotion/desktop_promotion_sync_service.h:16: // // This class is responsible for creating a ...
3 years, 10 months ago (2017-01-30 17:27:07 UTC) #47
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/2643723004/420001
3 years, 10 months ago (2017-01-30 17:27:21 UTC) #48
Mark P
Not a big deal, but ... https://codereview.chromium.org/2643723004/diff/420001/tools/metrics/histograms/histograms.xml File tools/metrics/histograms/histograms.xml (right): https://codereview.chromium.org/2643723004/diff/420001/tools/metrics/histograms/histograms.xml#newcode9935 tools/metrics/histograms/histograms.xml:9935: + to the ...
3 years, 10 months ago (2017-01-30 18:25:03 UTC) #49
commit-bot: I haz the power
3 years, 10 months ago (2017-01-30 19:07:51 UTC) #52
Message was sent while issue was closed.
Committed patchset #12 (id:420001) as
https://chromium.googlesource.com/chromium/src/+/54a832541cb8aafced2f60deb296...

Powered by Google App Engine
This is Rietveld 408576698