|
10 | 10 |
|
11 | 11 | namespace brave_shields {
|
12 | 12 |
|
13 |
| -const char kAds[] = "shieldsAds"; |
14 |
| -const char kCosmeticFiltering[] = "cosmeticFiltering"; |
15 |
| -const char kTrackers[] = "trackers"; |
16 |
| -const char kHTTPUpgradableResources[] = "httpUpgradableResources"; |
17 |
| -const char kHTTPSUpgrades[] = "httpsUpgrades"; |
18 |
| -const char kJavaScript[] = "javascript"; |
19 |
| -const char kFingerprintingV2[] = "fingerprintingV2"; |
20 |
| -const char kBraveShields[] = "braveShields"; |
21 |
| -const char kReferrers[] = "referrers"; |
22 |
| -const char kCookies[] = "shieldsCookiesV3"; |
23 |
| -const char kFacebookEmbeds[] = "fb-embeds"; |
24 |
| -const char kTwitterEmbeds[] = "twitter-embeds"; |
25 |
| -const char kLinkedInEmbeds[] = "linked-in-embeds"; |
| 13 | +inline constexpr char kAds[] = "shieldsAds"; |
| 14 | +inline constexpr char kCosmeticFiltering[] = "cosmeticFiltering"; |
| 15 | +inline constexpr char kTrackers[] = "trackers"; |
| 16 | +inline constexpr char kHTTPUpgradableResources[] = "httpUpgradableResources"; |
| 17 | +inline constexpr char kHTTPSUpgrades[] = "httpsUpgrades"; |
| 18 | +inline constexpr char kJavaScript[] = "javascript"; |
| 19 | +inline constexpr char kFingerprintingV2[] = "fingerprintingV2"; |
| 20 | +inline constexpr char kBraveShields[] = "braveShields"; |
| 21 | +inline constexpr char kReferrers[] = "referrers"; |
| 22 | +inline constexpr char kCookies[] = "shieldsCookiesV3"; |
| 23 | +inline constexpr char kFacebookEmbeds[] = "fb-embeds"; |
| 24 | +inline constexpr char kTwitterEmbeds[] = "twitter-embeds"; |
| 25 | +inline constexpr char kLinkedInEmbeds[] = "linked-in-embeds"; |
26 | 26 |
|
27 | 27 | // Values used before the migration away from ResourceIdentifier, kept around
|
28 | 28 | // for migration purposes only.
|
29 |
| -const char kObsoleteAds[] = "ads"; |
30 |
| -const char kObsoleteCookies[] = "cookies"; |
31 |
| -const char kObsoleteShieldsCookies[] = "shieldsCookies"; |
| 29 | +inline constexpr char kObsoleteAds[] = "ads"; |
| 30 | +inline constexpr char kObsoleteCookies[] = "cookies"; |
| 31 | +inline constexpr char kObsoleteShieldsCookies[] = "shieldsCookies"; |
32 | 32 |
|
33 | 33 | // Some users were not properly migrated from fingerprinting V1.
|
34 |
| -const char kObsoleteFingerprinting[] = "fingerprinting"; |
| 34 | +inline constexpr char kObsoleteFingerprinting[] = "fingerprinting"; |
35 | 35 |
|
36 | 36 | // Filename for cached text from a custom filter list subscription
|
37 | 37 | const base::FilePath::CharType kCustomSubscriptionListText[] =
|
38 | 38 | FILE_PATH_LITERAL("list_text.txt");
|
39 | 39 |
|
40 |
| -const char kCookieListUuid[] = "AC023D22-AE88-4060-A978-4FEEEC4221693"; |
41 |
| -const char kMobileNotificationsListUuid[] = |
| 40 | +inline constexpr char kCookieListUuid[] = |
| 41 | + "AC023D22-AE88-4060-A978-4FEEEC4221693"; |
| 42 | +inline constexpr char kMobileNotificationsListUuid[] = |
42 | 43 | "2F3DCE16-A19A-493C-A88F-2E110FBD37D6";
|
43 |
| -const char kExperimentalListUuid[] = "564C3B75-8731-404C-AD7C-5683258BA0B0"; |
| 44 | +inline constexpr char kExperimentalListUuid[] = |
| 45 | + "564C3B75-8731-404C-AD7C-5683258BA0B0"; |
44 | 46 |
|
45 | 47 | inline constexpr char kAdBlockResourceComponentName[] =
|
46 | 48 | "Brave Ad Block Resources Library";
|
@@ -68,8 +70,10 @@ inline constexpr char kAdBlockFilterListCatalogComponentBase64PublicKey[] =
|
68 | 70 | "1H8y9SR970LqsUMozu3ioSHtFh/IVgq7Nqy4TljaKsTE+3AdtjiOyHpW9ZaOkA7j"
|
69 | 71 | "2QIDAQAB";
|
70 | 72 |
|
71 |
| -const char kCookieListEnabledHistogram[] = "Brave.Shields.CookieListEnabled"; |
72 |
| -const char kCookieListPromptHistogram[] = "Brave.Shields.CookieListPrompt"; |
| 73 | +inline constexpr char kCookieListEnabledHistogram[] = |
| 74 | + "Brave.Shields.CookieListEnabled"; |
| 75 | +inline constexpr char kCookieListPromptHistogram[] = |
| 76 | + "Brave.Shields.CookieListPrompt"; |
73 | 77 |
|
74 | 78 | } // namespace brave_shields
|
75 | 79 |
|
|
0 commit comments