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

Unified Diff: chrome/common/extensions/manifest_handlers/content_scripts_handler.cc

Issue 635623003: Cleanup: Better constify some strings in chrome. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix mac Created 6 years, 2 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: chrome/common/extensions/manifest_handlers/content_scripts_handler.cc
diff --git a/chrome/common/extensions/manifest_handlers/content_scripts_handler.cc b/chrome/common/extensions/manifest_handlers/content_scripts_handler.cc
index e10c88f35c6c03bd8af89a6ee9ed6ddf554419cf..7f7cba97a23f6ed9ec4d224d4045705af49098b8 100644
--- a/chrome/common/extensions/manifest_handlers/content_scripts_handler.cc
+++ b/chrome/common/extensions/manifest_handlers/content_scripts_handler.cc
@@ -387,7 +387,7 @@ ContentScriptsHandler::~ContentScriptsHandler() {
}
const std::vector<std::string> ContentScriptsHandler::Keys() const {
- static const char* keys[] = {
+ static const char* const keys[] = {
keys::kContentScripts
};
return std::vector<std::string>(keys, keys + arraysize(keys));

Powered by Google App Engine
This is Rietveld 408576698