| OLD | NEW | 
|---|
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be | 
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. | 
| 4 | 4 | 
| 5 #include "chrome/common/pref_names.h" | 5 #include "chrome/common/pref_names.h" | 
| 6 | 6 | 
| 7 namespace prefs { | 7 namespace prefs { | 
| 8 | 8 | 
| 9 // *************** PROFILE PREFS *************** | 9 // *************** PROFILE PREFS *************** | 
| 10 // These are attached to the user profile | 10 // These are attached to the user profile | 
| (...skipping 1064 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 1075 const char kNTPShownSections[] = "ntp.shown_sections"; | 1075 const char kNTPShownSections[] = "ntp.shown_sections"; | 
| 1076 | 1076 | 
| 1077 // This pref is used for migrating the prefs for the NTP | 1077 // This pref is used for migrating the prefs for the NTP | 
| 1078 const char kNTPPrefVersion[] = "ntp.pref_version"; | 1078 const char kNTPPrefVersion[] = "ntp.pref_version"; | 
| 1079 | 1079 | 
| 1080 // Dates between which the NTP should show a custom logo rather than the | 1080 // Dates between which the NTP should show a custom logo rather than the | 
| 1081 // standard one. | 1081 // standard one. | 
| 1082 const char kNTPCustomLogoStart[] = "ntp.alt_logo_start"; | 1082 const char kNTPCustomLogoStart[] = "ntp.alt_logo_start"; | 
| 1083 const char kNTPCustomLogoEnd[] = "ntp.alt_logo_end"; | 1083 const char kNTPCustomLogoEnd[] = "ntp.alt_logo_end"; | 
| 1084 | 1084 | 
|  | 1085 // The promo resource service version number. | 
|  | 1086 const char kNTPPromoVersion[] = "ntp.promo_version"; | 
|  | 1087 | 
|  | 1088 // The last locale the promo was fetched for. | 
|  | 1089 const char kNTPPromoLocale[] = "ntp.promo_locale"; | 
|  | 1090 | 
| 1085 // Whether promo should be shown to Dev builds, Beta and Dev, or all builds. | 1091 // Whether promo should be shown to Dev builds, Beta and Dev, or all builds. | 
| 1086 const char kNTPPromoBuild[] = "ntp.promo_build"; | 1092 const char kNTPPromoBuild[] = "ntp.promo_build"; | 
| 1087 | 1093 | 
| 1088 // True if user has explicitly closed the promo line. | 1094 // True if user has explicitly closed the promo line. | 
| 1089 const char kNTPPromoClosed[] = "ntp.promo_closed"; | 1095 const char kNTPPromoClosed[] = "ntp.promo_closed"; | 
| 1090 | 1096 | 
| 1091 // Users are randomly divided into 16 groups in order to slowly roll out | 1097 // Users are randomly divided into 16 groups in order to slowly roll out | 
| 1092 // special promos. | 1098 // special promos. | 
| 1093 const char kNTPPromoGroup[] = "ntp.promo_group"; | 1099 const char kNTPPromoGroup[] = "ntp.promo_group"; | 
| 1094 | 1100 | 
| 1095 // Amount of time each promo group should be shown a promo that is being slowly | 1101 // Amount of time each promo group should be shown a promo that is being slowly | 
| 1096 // rolled out, in hours. | 1102 // rolled out, in hours. | 
| 1097 const char kNTPPromoGroupTimeSlice[] = "ntp.promo_group_timeslice"; | 1103 const char kNTPPromoGroupTimeSlice[] = "ntp.promo_group_timeslice"; | 
| 1098 | 1104 | 
| 1099 // Promo line from server. | 1105 // Promo line from server. | 
| 1100 const char kNTPPromoLine[] = "ntp.promo_line"; | 1106 const char kNTPPromoLine[] = "ntp.promo_line"; | 
| 1101 | 1107 | 
| 1102 // Dates between which the NTP should show a promotional line downloaded | 1108 // Dates between which the NTP should show a promotional line downloaded | 
| 1103 // from the promo server. | 1109 // from the promo server. | 
| 1104 const char kNTPPromoStart[] = "ntp.promo_start"; | 1110 const char kNTPPromoStart[] = "ntp.promo_start"; | 
| 1105 const char kNTPPromoEnd[] = "ntp.promo_end"; | 1111 const char kNTPPromoEnd[] = "ntp.promo_end"; | 
| 1106 | 1112 | 
|  | 1113 // The id of the last web store promo actually displayed on the NTP. | 
|  | 1114 const char kNTPWebStorePromoLastId[] = "ntp.webstore_last_promo_id"; | 
|  | 1115 | 
|  | 1116 // The id of the current web store promo. | 
|  | 1117 const char kNTPWebStorePromoId[] = "ntp.webstore.promo_id"; | 
|  | 1118 | 
|  | 1119 // The header line for the NTP web store promo. | 
|  | 1120 const char kNTPWebStorePromoHeader[] = "ntp.webstore.promo_header"; | 
|  | 1121 | 
|  | 1122 // The button text for the NTP web store promo. | 
|  | 1123 const char kNTPWebStorePromoButton[] = "ntp.webstore.promo_button"; | 
|  | 1124 | 
|  | 1125 // The button link for the NTP web store promo. | 
|  | 1126 const char kNTPWebStorePromoLink[] = "ntp.webstore.promo_link"; | 
|  | 1127 | 
|  | 1128 // The "hide this" link text for the NTP web store promo. | 
|  | 1129 const char kNTPWebStorePromoExpire[] = "ntp.webstore.promo_expire"; | 
|  | 1130 | 
| 1107 // The most up-to-date GPU blacklist downloaded from the web, which replaces | 1131 // The most up-to-date GPU blacklist downloaded from the web, which replaces | 
| 1108 // the one that's installed with chrome. | 1132 // the one that's installed with chrome. | 
| 1109 const char kGpuBlacklist[] = "gpu_blacklist"; | 1133 const char kGpuBlacklist[] = "gpu_blacklist"; | 
| 1110 | 1134 | 
| 1111 // Last time of update of gpu_blacklist. | 1135 // Last time of update of gpu_blacklist. | 
| 1112 const char kGpuBlacklistUpdate[] = "gpu_blacklist_update"; | 1136 const char kGpuBlacklistUpdate[] = "gpu_blacklist_update"; | 
| 1113 | 1137 | 
| 1114 const char kDevToolsDisabled[] = "devtools.disabled"; | 1138 const char kDevToolsDisabled[] = "devtools.disabled"; | 
| 1115 | 1139 | 
| 1116 // A boolean specifying whether dev tools window should be opened docked. | 1140 // A boolean specifying whether dev tools window should be opened docked. | 
| (...skipping 168 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 1285     "profile.managed_popups_blocked_for_urls"; | 1309     "profile.managed_popups_blocked_for_urls"; | 
| 1286 | 1310 | 
| 1287 // Dictionary for storing the set of known background pages (keys are extension | 1311 // Dictionary for storing the set of known background pages (keys are extension | 
| 1288 // IDs of background page owners, value is a boolean that is true if the user | 1312 // IDs of background page owners, value is a boolean that is true if the user | 
| 1289 // needs to acknowledge this page. | 1313 // needs to acknowledge this page. | 
| 1290 const char kKnownBackgroundPages[] = "background_pages.known"; | 1314 const char kKnownBackgroundPages[] = "background_pages.known"; | 
| 1291 | 1315 | 
| 1292 // Dictionary that maps URL schemes (protocols) to URL handlers. | 1316 // Dictionary that maps URL schemes (protocols) to URL handlers. | 
| 1293 const char kRegisteredProtocolHandlers[] = "registered_protocol_handlers"; | 1317 const char kRegisteredProtocolHandlers[] = "registered_protocol_handlers"; | 
| 1294 }  // namespace prefs | 1318 }  // namespace prefs | 
| OLD | NEW | 
|---|