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

Unified Diff: ash/touch/touch_hud_debug.cc

Issue 2773513002: Stop passing raw pointers to DictionaryValue::Set, part 1 (Closed)
Patch Set: Fix compilation 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
« no previous file with comments | « no previous file | base/value_conversions.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/touch/touch_hud_debug.cc
diff --git a/ash/touch/touch_hud_debug.cc b/ash/touch/touch_hud_debug.cc
index c009aad2d19ad4d99ad0e19881e54277d2da3a44..7979873698d893efa514817a829305d5f7781d4e 100644
--- a/ash/touch/touch_hud_debug.cc
+++ b/ash/touch/touch_hud_debug.cc
@@ -6,6 +6,7 @@
#include <algorithm>
#include <string>
+#include <utility>
#include <vector>
#include "ash/root_window_controller.h"
@@ -363,7 +364,7 @@ std::unique_ptr<base::DictionaryValue> TouchHudDebug::GetAllAsDictionary() {
if (hud) {
std::unique_ptr<base::ListValue> list = hud->GetLogAsList();
if (!list->empty())
- value->Set(base::Int64ToString(hud->display_id()), list.release());
+ value->Set(base::Int64ToString(hud->display_id()), std::move(list));
}
}
return value;
« no previous file with comments | « no previous file | base/value_conversions.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698