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

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

Issue 1551033002: Convert Pass()→std::move() in //chrome (Android edition) (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Enable RVO by making types match 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_resource_throttle.cc
diff --git a/chrome/browser/download/download_resource_throttle.cc b/chrome/browser/download/download_resource_throttle.cc
index 9d6a56641ef345850c6fb891a1ef24967fdea27c..fae860e9b3dd2b8559413bb1ac2aa528eea0a7e9 100644
--- a/chrome/browser/download/download_resource_throttle.cc
+++ b/chrome/browser/download/download_resource_throttle.cc
@@ -43,7 +43,7 @@ void OnAcquireFileAccessPermissionDone(
bool granted) {
DCHECK_CURRENTLY_ON(BrowserThread::UI);
if (granted)
- CanDownload(info.Pass());
+ CanDownload(std::move(info));
else
info->continue_callback.Run(false);
}
@@ -55,10 +55,10 @@ void CanDownloadOnUIThread(
#if defined(OS_ANDROID)
content::WebContents* contents = info->web_contents_getter.Run();
if (!contents)
- OnAcquireFileAccessPermissionDone(info.Pass(), false);
+ OnAcquireFileAccessPermissionDone(std::move(info), false);
content::DownloadControllerAndroid::Get()->AcquireFileAccessPermission(
contents, base::Bind(&OnAcquireFileAccessPermissionDone,
- base::Passed(info.Pass())));
+ base::Passed(std::move(info))));
#else
CanDownload(std::move(info));
#endif
« no previous file with comments | « chrome/browser/chrome_content_browser_client.cc ('k') | chrome/browser/geolocation/geolocation_permission_context_android.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698