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

Side by Side Diff: ios/chrome/browser/desktop_promotion/desktop_promotion_prefs.mm

Issue 2643723004: Add Desktop iOS promotion logging to chrome ios app. (Closed)
Patch Set: add histogram Created 3 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(Empty)
1 // Copyright 2017 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #include "ios/chrome/browser/desktop_promotion/desktop_promotion_prefs.h"
6
7 #include "components/pref_registry/pref_registry_syncable.h"
8 #include "components/prefs/pref_service.h"
9
10 namespace prefs {
11
12 // Which desktop ios promotion initiated sent the sms.
13 const char kDesktopIOSPromotionSMSEntryPoint[] =
14 "ios.desktop_ios_promo_sms_entrypoint";
15
16 // Which desktop ios promotions did the user see.
17 const char kDesktopIOSPromotionTargetedEntryPoints[] =
18 "ios.desktop_ios_promo_targeted_entrypoints";
19
20 // Last desktop ios promotion impression (If sms was sent it's the time of
21 // sending the sms).
22 const char kDesktopIOSPromotionLastImpression[] =
23 "ios.desktop_ios_promo_last_impression";
24
25 // This is true when the user see the promotion, get sms, install and sign into
26 // chrome ios.
27 const char kDesktopIOSPromotionDone[] = "ios.desktop_ios_promo_done";
28
29 } // namespace prefs
30
31 namespace desktop_ios_promotion {
32
33 void RegisterDesktopPromotionUserPrefs(
34 user_prefs::PrefRegistrySyncable* registry) {
35 registry->RegisterIntegerPref(
36 prefs::kDesktopIOSPromotionSMSEntryPoint, 0,
37 user_prefs::PrefRegistrySyncable::SYNCABLE_PRIORITY_PREF);
38 registry->RegisterIntegerPref(
39 prefs::kDesktopIOSPromotionTargetedEntryPoints, 0,
40 user_prefs::PrefRegistrySyncable::SYNCABLE_PRIORITY_PREF);
41 registry->RegisterDoublePref(
42 prefs::kDesktopIOSPromotionLastImpression, 0,
43 user_prefs::PrefRegistrySyncable::SYNCABLE_PRIORITY_PREF);
44 registry->RegisterBooleanPref(
45 prefs::kDesktopIOSPromotionDone, false,
46 user_prefs::PrefRegistrySyncable::SYNCABLE_PRIORITY_PREF);
47 }
48
49 } // namespace desktop_ios_promotion
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698