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

Unified Diff: extensions/common/features/simple_feature.cc

Issue 2133203002: [Extensions] Code cleanup (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: update 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
Index: extensions/common/features/simple_feature.cc
diff --git a/extensions/common/features/simple_feature.cc b/extensions/common/features/simple_feature.cc
index 9abc1b4f39224eed5f27a682b50d65fa06c18f43..8833fb2332821b3363f3e0491c6ca30f87b95780 100644
--- a/extensions/common/features/simple_feature.cc
+++ b/extensions/common/features/simple_feature.cc
@@ -306,7 +306,7 @@ std::string SimpleFeature::Parse(const base::DictionaryValue* dictionary) {
for (base::DictionaryValue::Iterator it(*dictionary);
!it.IsAtEnd();
it.Advance()) {
- std::string key = it.key();
+ const std::string& key = it.key();
const base::Value* value = &it.value();
if (key == "matches") {
ParseURLPatterns(dictionary, "matches", &matches_);

Powered by Google App Engine
This is Rietveld 408576698