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

Unified Diff: chrome/browser/chromeos/display/display_preferences.cc

Issue 2765363004: Stop passing raw pointers to DictionaryValue::Set, part 2 (Closed)
Patch Set: Fix comments Created 3 years, 9 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/chromeos/display/display_preferences.cc
diff --git a/chrome/browser/chromeos/display/display_preferences.cc b/chrome/browser/chromeos/display/display_preferences.cc
index 80d5b293c63a11504699a9e0d6a19d42f7fd7cba..914b7ac23acfb2d146066772e01a7c8c678086c5 100644
--- a/chrome/browser/chromeos/display/display_preferences.cc
+++ b/chrome/browser/chromeos/display/display_preferences.cc
@@ -315,7 +315,7 @@ void StoreDisplayLayoutPref(const display::DisplayIdList& list,
layout_value.reset(value->DeepCopy());
}
if (display::DisplayLayoutToJson(display_layout, layout_value.get()))
- pref_data->Set(name, layout_value.release());
+ pref_data->Set(name, std::move(layout_value));
}
void StoreCurrentDisplayLayoutPrefs() {
@@ -373,7 +373,7 @@ void StoreCurrentDisplayProperties() {
}
if (info.has_touch_calibration_data())
TouchDataToValue(info.GetTouchCalibrationData(), property_value.get());
- pref_data->Set(base::Int64ToString(id), property_value.release());
+ pref_data->Set(base::Int64ToString(id), std::move(property_value));
}
}

Powered by Google App Engine
This is Rietveld 408576698