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

Unified Diff: chrome/browser/extensions/api/gcd_private/privet_v3_session.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/browser/extensions/api/gcd_private/privet_v3_session.cc
diff --git a/chrome/browser/extensions/api/gcd_private/privet_v3_session.cc b/chrome/browser/extensions/api/gcd_private/privet_v3_session.cc
index ed2bd672a806b14a6cc9596028d81050ef13f597..5dfa456aa8a1b168a886a05577f7d153594a0fff 100644
--- a/chrome/browser/extensions/api/gcd_private/privet_v3_session.cc
+++ b/chrome/browser/extensions/api/gcd_private/privet_v3_session.cc
@@ -78,7 +78,7 @@ bool ContainsString(const base::DictionaryValue& dictionary,
if (!dictionary.GetList(key, &list_of_string))
return false;
- for (const base::Value* value : *list_of_string) {
+ for (const auto& value : *list_of_string) {
std::string string_value;
if (value->GetAsString(&string_value) && string_value == expected_value)
return true;

Powered by Google App Engine
This is Rietveld 408576698