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

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

Issue 2000803003: Use std::unique_ptr for base::DictionaryValue and base::ListValue's internal store. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: More fixes Created 4 years, 7 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/linked_app_icons.cc
diff --git a/chrome/common/extensions/manifest_handlers/linked_app_icons.cc b/chrome/common/extensions/manifest_handlers/linked_app_icons.cc
index 5f4945ebc9244b4743c1028049e04925154d797e..b1f089cf8dce37d8ef207778645f2ab1ffa997a6 100644
--- a/chrome/common/extensions/manifest_handlers/linked_app_icons.cc
+++ b/chrome/common/extensions/manifest_handlers/linked_app_icons.cc
@@ -68,7 +68,7 @@ bool LinkedAppIconsHandler::Parse(Extension* extension, base::string16* error) {
return false;
}
- for (const base::Value* icon_value : *icons_list) {
+ for (const auto& icon_value : *icons_list) {
const base::DictionaryValue* icon_dict = nullptr;
if (!icon_value->GetAsDictionary(&icon_dict)) {
*error = base::UTF8ToUTF16(

Powered by Google App Engine
This is Rietveld 408576698