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

Unified Diff: chrome/browser/ui/webui/options/chromeos/display_options_handler.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/ui/webui/options/chromeos/display_options_handler.cc
diff --git a/chrome/browser/ui/webui/options/chromeos/display_options_handler.cc b/chrome/browser/ui/webui/options/chromeos/display_options_handler.cc
index 18dc1d0d226b080cdec4a2fb769999bd6234865b..eecfb9a37b5390758c638376a6b7e33cbdae6f13 100644
--- a/chrome/browser/ui/webui/options/chromeos/display_options_handler.cc
+++ b/chrome/browser/ui/webui/options/chromeos/display_options_handler.cc
@@ -413,7 +413,7 @@ void DisplayOptionsHandler::HandleSetDisplayLayout(
display::DisplayLayoutBuilder builder(
display_manager->GetCurrentDisplayLayout());
builder.ClearPlacements();
- for (const base::Value* layout : *layouts) {
+ for (const auto& layout : *layouts) {
const base::DictionaryValue* dictionary;
if (!layout->GetAsDictionary(&dictionary)) {
LOG(ERROR) << "Invalid layout dictionary: " << *dictionary;

Powered by Google App Engine
This is Rietveld 408576698