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

Unified Diff: chrome/browser/download/download_test_file_activity_observer.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_test_file_activity_observer.cc
diff --git a/chrome/browser/download/download_test_file_activity_observer.cc b/chrome/browser/download/download_test_file_activity_observer.cc
index d9ff901a3fa669ad9c4ea088914dc6f70475bc1b..7a9a721b5fb33aa08b0a9d11d6df51ebe21b66fb 100644
--- a/chrome/browser/download/download_test_file_activity_observer.cc
+++ b/chrome/browser/download/download_test_file_activity_observer.cc
@@ -4,6 +4,8 @@
#include "chrome/browser/download/download_test_file_activity_observer.h"
+#include <utility>
+
#include "base/bind.h"
#include "base/location.h"
#include "base/single_thread_task_runner.h"
@@ -75,7 +77,7 @@ DownloadTestFileActivityObserver::DownloadTestFileActivityObserver(
new MockDownloadManagerDelegate(profile));
test_delegate_ = mock_delegate->GetWeakPtr();
DownloadServiceFactory::GetForBrowserContext(profile)
- ->SetDownloadManagerDelegateForTesting(mock_delegate.Pass());
+ ->SetDownloadManagerDelegateForTesting(std::move(mock_delegate));
}
DownloadTestFileActivityObserver::~DownloadTestFileActivityObserver() {

Powered by Google App Engine
This is Rietveld 408576698