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

Unified Diff: chrome/common/extensions/chrome_manifest_url_handlers.cc

Issue 2141753002: [Extensions] Code cleanup - const &s (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 5 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
« no previous file with comments | « chrome/browser/extensions/extension_special_storage_policy.cc ('k') | chrome/common/extensions/command.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/common/extensions/chrome_manifest_url_handlers.cc
diff --git a/chrome/common/extensions/chrome_manifest_url_handlers.cc b/chrome/common/extensions/chrome_manifest_url_handlers.cc
index 200a53e6296c2b6d7785788a5c0082f9e4f67746..3d13dd9a32e5af2c764913c83ed21590761126ab 100644
--- a/chrome/common/extensions/chrome_manifest_url_handlers.cc
+++ b/chrome/common/extensions/chrome_manifest_url_handlers.cc
@@ -103,7 +103,7 @@ bool URLOverridesHandler::Parse(Extension* extension, base::string16* error) {
// Validate that the overrides are all strings
for (base::DictionaryValue::Iterator iter(*overrides); !iter.IsAtEnd();
iter.Advance()) {
- std::string page = iter.key();
+ const std::string& page = iter.key();
std::string val;
// Restrict override pages to a list of supported URLs.
bool is_allowed_host = page == chrome::kChromeUINewTabHost ||
« no previous file with comments | « chrome/browser/extensions/extension_special_storage_policy.cc ('k') | chrome/common/extensions/command.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698