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

Unified Diff: chrome/browser/ui/webui/options/chromeos/change_picture_options_handler.cc

Issue 2392693002: Rewrite simple uses of base::ListValue::Append(base::Value*) on CrOS. (Closed)
Patch Set: MakeUnique Created 4 years, 2 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/change_picture_options_handler.cc
diff --git a/chrome/browser/ui/webui/options/chromeos/change_picture_options_handler.cc b/chrome/browser/ui/webui/options/chromeos/change_picture_options_handler.cc
index 1e9d7c07d3733f0baa724ed0fa83b09df373eda7..479a52745f70099a5ed078d5d8ec0cfe30041b71 100644
--- a/chrome/browser/ui/webui/options/chromeos/change_picture_options_handler.cc
+++ b/chrome/browser/ui/webui/options/chromeos/change_picture_options_handler.cc
@@ -4,6 +4,8 @@
#include "chrome/browser/ui/webui/options/chromeos/change_picture_options_handler.h"
+#include <utility>
+
#include "base/bind.h"
#include "base/bind_helpers.h"
#include "base/command_line.h"
@@ -179,7 +181,7 @@ void ChangePictureOptionsHandler::SendDefaultImages() {
default_user_image::kDefaultImageWebsiteIDs[i]));
image_data->SetString("title",
default_user_image::GetDefaultImageDescription(i));
- image_urls.Append(image_data.release());
+ image_urls.Append(std::move(image_data));
}
web_ui()->CallJavascriptFunctionUnsafe(
"ChangePictureOptions.setDefaultImages", image_urls);

Powered by Google App Engine
This is Rietveld 408576698