| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 #include "base/basictypes.h" | 7 #include "base/basictypes.h" |
| 8 | 8 |
| 9 namespace prefs { | 9 namespace prefs { |
| 10 | 10 |
| (...skipping 1461 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1472 // standard one. | 1472 // standard one. |
| 1473 const char kNtpCustomLogoStart[] = "ntp.alt_logo_start"; | 1473 const char kNtpCustomLogoStart[] = "ntp.alt_logo_start"; |
| 1474 const char kNtpCustomLogoEnd[] = "ntp.alt_logo_end"; | 1474 const char kNtpCustomLogoEnd[] = "ntp.alt_logo_end"; |
| 1475 | 1475 |
| 1476 // The promo resource service version number. | 1476 // The promo resource service version number. |
| 1477 const char kNtpPromoVersion[] = "ntp.promo_version"; | 1477 const char kNtpPromoVersion[] = "ntp.promo_version"; |
| 1478 | 1478 |
| 1479 // The last locale the promo was fetched for. | 1479 // The last locale the promo was fetched for. |
| 1480 const char kNtpPromoLocale[] = "ntp.promo_locale"; | 1480 const char kNtpPromoLocale[] = "ntp.promo_locale"; |
| 1481 | 1481 |
| 1482 // Whether promo should be shown to Dev builds, Beta and Dev, or all builds. | |
| 1483 const char kNtpPromoBuild[] = "ntp.promo_build"; | |
| 1484 | |
| 1485 // True if user has explicitly closed the promo line. | |
| 1486 const char kNtpPromoClosed[] = "ntp.promo_closed"; | |
| 1487 | |
| 1488 // Users are randomly divided into 100 groups in order to slowly roll out | |
| 1489 // special promos. | |
| 1490 const char kNtpPromoGroup[] = "ntp.promo_group"; | |
| 1491 | |
| 1492 // Number of promo groups (buckets). | |
| 1493 const char kNtpPromoNumGroups[] = "ntp.promo_num_groups"; | |
| 1494 | |
| 1495 // Initial segment of the groups to show the promo to. | |
| 1496 const char kNtpPromoInitialSegment[] = "ntp.promo_initial_segment"; | |
| 1497 | |
| 1498 // Number of additional segments to show this promo to every time slice. | |
| 1499 const char kNtpPromoIncrement[] = "ntp.promo_increment"; | |
| 1500 | |
| 1501 // Amount of time each promo group should be shown a promo that is being slowly | |
| 1502 // rolled out, in seconds. | |
| 1503 const char kNtpPromoGroupTimeSlice[] = "ntp.promo_group_timeslice"; | |
| 1504 | |
| 1505 // Number of groups to roll out this promo to. | |
| 1506 const char kNtpPromoGroupMax[] = "ntp.promo_group_max"; | |
| 1507 | |
| 1508 // Number of views of this promo. | |
| 1509 const char kNtpPromoViews[] = "ntp.promo_views"; | |
| 1510 | |
| 1511 // Max number of views of this promo. | |
| 1512 const char kNtpPromoViewsMax[] = "ntp.promo_views_max"; | |
| 1513 | |
| 1514 // Target platform for this promo. | |
| 1515 const char kNtpPromoPlatform[] = "ntp.promo_platform"; | |
| 1516 | |
| 1517 // Promo line from server. | |
| 1518 const char kNtpPromoLine[] = "ntp.promo_line"; | |
| 1519 | |
| 1520 #if defined(OS_ANDROID) | |
| 1521 // Promo line from server (long). | |
| 1522 const char kNtpPromoLineLong[] = "ntp.promo_line_long"; | |
| 1523 // Promo action that needs to be triggered | |
| 1524 const char kNtpPromoActionType[] = "ntp.promo_action_type"; | |
| 1525 // Promo action arguments | |
| 1526 const char kNtpPromoActionArgs[] = "ntp.promo_action_args"; | |
| 1527 #endif // defined(OS_ANDROID) | |
| 1528 | |
| 1529 // Dates between which the NTP should show a promotional line downloaded | |
| 1530 // from the promo server. | |
| 1531 const char kNtpPromoStart[] = "ntp.promo_start"; | |
| 1532 const char kNtpPromoEnd[] = "ntp.promo_end"; | |
| 1533 | |
| 1534 // True if this promo should only be shown to G+ users. | |
| 1535 const char kNtpPromoGplusRequired[] = "ntp.gplus_required"; | |
| 1536 | |
| 1537 // Boolean indicating whether the web store is active for the current locale. | 1482 // Boolean indicating whether the web store is active for the current locale. |
| 1538 const char kNtpWebStoreEnabled[] = "ntp.webstore_enabled"; | 1483 const char kNtpWebStoreEnabled[] = "ntp.webstore_enabled"; |
| 1539 | 1484 |
| 1540 // The id of the last web store promo actually displayed on the NTP. | 1485 // The id of the last web store promo actually displayed on the NTP. |
| 1541 const char kNtpWebStorePromoLastId[] = "ntp.webstore_last_promo_id"; | 1486 const char kNtpWebStorePromoLastId[] = "ntp.webstore_last_promo_id"; |
| 1542 | 1487 |
| 1543 // The id of the current web store promo. | 1488 // The id of the current web store promo. |
| 1544 const char kNtpWebStorePromoId[] = "ntp.webstorepromo.id"; | 1489 const char kNtpWebStorePromoId[] = "ntp.webstorepromo.id"; |
| 1545 | 1490 |
| 1546 // The header line for the NTP web store promo. | 1491 // The header line for the NTP web store promo. |
| (...skipping 492 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2039 | 1984 |
| 2040 // Counts how many more times the 'profile on a network share' warning should be | 1985 // Counts how many more times the 'profile on a network share' warning should be |
| 2041 // shown to the user before the next silence period. | 1986 // shown to the user before the next silence period. |
| 2042 const char kNetworkProfileWarningsLeft[] = "network_profile.warnings_left"; | 1987 const char kNetworkProfileWarningsLeft[] = "network_profile.warnings_left"; |
| 2043 // Tracks the time of the last shown warning. Used to reset | 1988 // Tracks the time of the last shown warning. Used to reset |
| 2044 // |network_profile.warnings_left| after a silence period. | 1989 // |network_profile.warnings_left| after a silence period. |
| 2045 const char kNetworkProfileLastWarningTime[] = | 1990 const char kNetworkProfileLastWarningTime[] = |
| 2046 "network_profile.last_warning_time"; | 1991 "network_profile.last_warning_time"; |
| 2047 | 1992 |
| 2048 } // namespace prefs | 1993 } // namespace prefs |
| OLD | NEW |