Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(6638)

Unified Diff: components/subresource_filter/core/browser/subresource_filter_constants.h

Issue 2936233004: [subresource_filter] Use constexpr for subresource filter dev tools messages. (Closed)
Patch Set: Added include sstream Created 3 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: components/subresource_filter/core/browser/subresource_filter_constants.h
diff --git a/components/subresource_filter/core/browser/subresource_filter_constants.h b/components/subresource_filter/core/browser/subresource_filter_constants.h
index 9e3495840be20d965c7a54d2d8088a47d9630566..cd36c796dc8298c8cf9f9b7cc1d49a436ce7a16d 100644
--- a/components/subresource_filter/core/browser/subresource_filter_constants.h
+++ b/components/subresource_filter/core/browser/subresource_filter_constants.h
@@ -47,11 +47,14 @@ extern const base::FilePath::CharType kUnindexedRulesetLicenseFileName[];
// The name of the file that stores the unindexed filtering rules.
extern const base::FilePath::CharType kUnindexedRulesetDataFileName[];
+// TODO(shivanisha): Update the strings when finalized.
// Console message to be displayed on activation.
-extern const std::string kActivationConsoleMessage;
+constexpr char kActivationConsoleMessage[] =
+ "Subresource filter is activated on this site";
// Console message to be displayed on disallowing subframe.
-extern const std::string kDisallowSubframeConsoleMessage;
+constexpr char kDisallowSubframeConsoleMessage[] =
+ "Subresource filtering disallowed loading this resource, ";
} // namespace subresource_filter

Powered by Google App Engine
This is Rietveld 408576698