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

Unified Diff: chrome/browser/download/notification/download_notification_browsertest.cc

Issue 1552863003: Global conversion of Pass()→std::move(): CrOS edition (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 12 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/download/notification/download_notification_browsertest.cc
diff --git a/chrome/browser/download/notification/download_notification_browsertest.cc b/chrome/browser/download/notification/download_notification_browsertest.cc
index 3293f97a71a27d2c02b86a94c9926cdc93a07f81..ea910c560611857596daa54d2fc0615a55bbafde 100644
--- a/chrome/browser/download/notification/download_notification_browsertest.cc
+++ b/chrome/browser/download/notification/download_notification_browsertest.cc
@@ -3,6 +3,7 @@
// found in the LICENSE file.
#include <stddef.h>
+#include <utility>
#include "base/command_line.h"
#include "base/macros.h"
@@ -338,7 +339,7 @@ class DownloadNotificationTest : public DownloadNotificationTestBase {
test_delegate->GetDownloadIdReceiverCallback().Run(
content::DownloadItem::kInvalidId + 1);
DownloadServiceFactory::GetForBrowserContext(profile)
- ->SetDownloadManagerDelegateForTesting(test_delegate.Pass());
+ ->SetDownloadManagerDelegateForTesting(std::move(test_delegate));
DownloadNotificationTestBase::SetUpOnMainThread();
}
@@ -359,7 +360,8 @@ class DownloadNotificationTest : public DownloadNotificationTestBase {
incognito_test_delegate.reset(
new TestChromeDownloadManagerDelegate(incognito_profile));
DownloadServiceFactory::GetForBrowserContext(incognito_profile)
- ->SetDownloadManagerDelegateForTesting(incognito_test_delegate.Pass());
+ ->SetDownloadManagerDelegateForTesting(
+ std::move(incognito_test_delegate));
}
TestChromeDownloadManagerDelegate* GetIncognitoDownloadManagerDelegate()

Powered by Google App Engine
This is Rietveld 408576698