diff options
author | aruslan@chromium.org <aruslan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-08-24 09:59:57 +0000 |
---|---|---|
committer | aruslan@chromium.org <aruslan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-08-24 09:59:57 +0000 |
commit | 5353347465451584bca86cba5f39165ffd7b638d (patch) | |
tree | 2bc4823324fc275cb8fac424999ac3404e08a082 /chrome/browser/web_resource/notification_promo.h | |
parent | 7794b5c3e9daeb3fb72e2af785cac3714584aee6 (diff) | |
download | chromium_src-5353347465451584bca86cba5f39165ffd7b638d.zip chromium_src-5353347465451584bca86cba5f39165ffd7b638d.tar.gz chromium_src-5353347465451584bca86cba5f39165ffd7b638d.tar.bz2 |
Split JSON processing of parameters that needs to be handled by the
promotion system (e.g. rollout plan parameters) from processing of
promo-type-specific parameters.
BUG=143692
TESTS=unit_tests, manual tests as per test plan
Review URL: https://chromiumcodereview.appspot.com/10860025
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@153180 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/web_resource/notification_promo.h')
-rw-r--r-- | chrome/browser/web_resource/notification_promo.h | 17 |
1 files changed, 6 insertions, 11 deletions
diff --git a/chrome/browser/web_resource/notification_promo.h b/chrome/browser/web_resource/notification_promo.h index e46da99..9cc075e 100644 --- a/chrome/browser/web_resource/notification_promo.h +++ b/chrome/browser/web_resource/notification_promo.h @@ -59,13 +59,10 @@ class NotificationPromo { bool new_notification() const { return new_notification_; } const std::string& promo_text() const { return promo_text_; } -#if defined(OS_ANDROID) || defined(OS_IOS) - const std::string& promo_text_long() const { return promo_text_long_; } - const std::string& promo_action_type() const { return promo_action_type_; } - const base::ListValue* promo_action_args() const { - return promo_action_args_.get(); + PromoType promo_type() const { return promo_type_; } + const base::DictionaryValue* promo_payload() const { + return promo_payload_.get(); } -#endif // defined(OS_ANDROID) || defined(OS_IOS) // Register preferences. static void RegisterUserPrefs(PrefService* prefs); @@ -100,11 +97,9 @@ class NotificationPromo { PromoType promo_type_; std::string promo_text_; -#if defined(OS_ANDROID) || defined(OS_IOS) - std::string promo_text_long_; - std::string promo_action_type_; - scoped_ptr<base::ListValue> promo_action_args_; -#endif // defined(OS_ANDROID) || defined(OS_IOS) + + // Note that promo_payload_ isn't currently used for desktop promos. + scoped_ptr<const base::DictionaryValue> promo_payload_; double start_; double end_; |