diff options
author | mirandac@chromium.org <mirandac@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-04-04 16:08:52 +0000 |
---|---|---|
committer | mirandac@chromium.org <mirandac@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-04-04 16:08:52 +0000 |
commit | 81bb1092f354f3cb3c597ab3c9ed568905078e49 (patch) | |
tree | 7e8c5f324f49fc7302e6f1ee742c39169340e03f /chrome/common | |
parent | 96dcc176c46003af0176f0f4772affc741aa772a (diff) | |
download | chromium_src-81bb1092f354f3cb3c597ab3c9ed568905078e49.zip chromium_src-81bb1092f354f3cb3c597ab3c9ed568905078e49.tar.gz chromium_src-81bb1092f354f3cb3c597ab3c9ed568905078e49.tar.bz2 |
Detach the PromoResourceService and WebResourceService from the Profile; have them store web resource data in local state instead.
We don't need multiple services for different Profiles; instead, there is a single service that captures data in local_state. The only preference stored in the Profile about the promo will be a bool indicating whether it's been closed or not, which will now be set outside the service.
Reviewers:
arv for general changes to PromoResourceService, & unittest.
erg for pulling the service out of the Profile and serving it up as a Singleton.
zmo for the changes I made to gpu_data_manager.
jstritar FYI, for changes to the PromoResourceService.
BUG=77155
TEST=promo resource service unittests.
Review URL: http://codereview.chromium.org/6736028
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@80318 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/common')
-rw-r--r-- | chrome/common/pref_names.cc | 30 | ||||
-rw-r--r-- | chrome/common/pref_names.h | 2 |
2 files changed, 11 insertions, 21 deletions
diff --git a/chrome/common/pref_names.cc b/chrome/common/pref_names.cc index cf08c3a..252588e 100644 --- a/chrome/common/pref_names.cc +++ b/chrome/common/pref_names.cc @@ -726,6 +726,17 @@ const char kMetricsInitialLogs[] = const char kMetricsOngoingLogs[] = "user_experience_metrics.ongoing_logs"; +// Whether promo should be shown to Dev builds, Beta and Dev, or all builds. +const char kNTPPromoBuild[] = "ntp.promo_build"; + +// Promo line from server. +const char kNTPPromoLine[] = "ntp.promo_line"; + +// Dates between which the NTP should show a promotional line downloaded +// from the promo server. +const char kNTPPromoStart[] = "ntp.promo_start"; +const char kNTPPromoEnd[] = "ntp.promo_end"; + // Where profile specific metrics are placed. const char kProfileMetrics[] = "user_experience_metrics.profiles"; @@ -1075,28 +1086,9 @@ const char kNTPPrefVersion[] = "ntp.pref_version"; const char kNTPCustomLogoStart[] = "ntp.alt_logo_start"; const char kNTPCustomLogoEnd[] = "ntp.alt_logo_end"; -// Whether promo should be shown to Dev builds, Beta and Dev, or all builds. -const char kNTPPromoBuild[] = "ntp.promo_build"; - // True if user has explicitly closed the promo line. const char kNTPPromoClosed[] = "ntp.promo_closed"; -// Users are randomly divided into 16 groups in order to slowly roll out -// special promos. -const char kNTPPromoGroup[] = "ntp.promo_group"; - -// Amount of time each promo group should be shown a promo that is being slowly -// rolled out, in hours. -const char kNTPPromoGroupTimeSlice[] = "ntp.promo_group_timeslice"; - -// Promo line from server. -const char kNTPPromoLine[] = "ntp.promo_line"; - -// Dates between which the NTP should show a promotional line downloaded -// from the promo server. -const char kNTPPromoStart[] = "ntp.promo_start"; -const char kNTPPromoEnd[] = "ntp.promo_end"; - // The most up-to-date GPU blacklist downloaded from the web, which replaces // the one that's installed with chrome. const char kGpuBlacklist[] = "gpu_blacklist"; diff --git a/chrome/common/pref_names.h b/chrome/common/pref_names.h index acfd6cc..69577ea 100644 --- a/chrome/common/pref_names.h +++ b/chrome/common/pref_names.h @@ -380,8 +380,6 @@ extern const char kNTPPromoStart[]; extern const char kNTPPromoEnd[]; extern const char kNTPPromoLine[]; extern const char kNTPPromoClosed[]; -extern const char kNTPPromoGroup[]; -extern const char kNTPPromoGroupTimeSlice[]; extern const char kNTPPromoBuild[]; extern const char kGpuBlacklist[]; |