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

Unified Diff: chrome/browser/download/download_ui_controller.cc

Issue 1551503002: Convert Pass()→std::move() in //chrome (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years 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/download/download_ui_controller.cc
diff --git a/chrome/browser/download/download_ui_controller.cc b/chrome/browser/download/download_ui_controller.cc
index 9068ef8de9d832c708be285db98e18b90f773906..5b45568db437f388da4e5e7522aeaa11f197b6bb 100644
--- a/chrome/browser/download/download_ui_controller.cc
+++ b/chrome/browser/download/download_ui_controller.cc
@@ -4,6 +4,8 @@
#include "chrome/browser/download/download_ui_controller.h"
+#include <utility>
+
#include "base/callback.h"
#include "base/stl_util.h"
#include "build/build_config.h"
@@ -106,8 +108,7 @@ DownloadUIController::Delegate::~Delegate() {
DownloadUIController::DownloadUIController(content::DownloadManager* manager,
scoped_ptr<Delegate> delegate)
- : download_notifier_(manager, this),
- delegate_(delegate.Pass()) {
+ : download_notifier_(manager, this), delegate_(std::move(delegate)) {
#if defined(OS_ANDROID)
if (!delegate_)
delegate_.reset(new AndroidUIControllerDelegate());

Powered by Google App Engine
This is Rietveld 408576698