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

Unified Diff: chrome/browser/media_galleries/fileapi/iphoto_file_util.cc

Issue 1579863003: Convert Pass()→std::move() for Mac build. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 11 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/media_galleries/fileapi/iphoto_file_util.cc
diff --git a/chrome/browser/media_galleries/fileapi/iphoto_file_util.cc b/chrome/browser/media_galleries/fileapi/iphoto_file_util.cc
index 112def1ba2b783c2a376d2ce17fe6a1aee3ca632..1f58e3d631526493bb8a6165fe6a7d0fd66499e4 100644
--- a/chrome/browser/media_galleries/fileapi/iphoto_file_util.cc
+++ b/chrome/browser/media_galleries/fileapi/iphoto_file_util.cc
@@ -6,6 +6,7 @@
#include <set>
#include <string>
+#include <utility>
#include <vector>
#include "base/bind_helpers.h"
@@ -84,7 +85,7 @@ void IPhotoFileUtil::GetFileInfoOnTaskRunnerThread(
// |data_provider| may be NULL if the file system was revoked before this
// operation had a chance to run.
if (!data_provider) {
- GetFileInfoWithFreshDataProvider(context.Pass(), url, callback, false);
+ GetFileInfoWithFreshDataProvider(std::move(context), url, callback, false);
} else {
data_provider->RefreshData(
base::Bind(&IPhotoFileUtil::GetFileInfoWithFreshDataProvider,
@@ -101,7 +102,8 @@ void IPhotoFileUtil::ReadDirectoryOnTaskRunnerThread(
// |data_provider| may be NULL if the file system was revoked before this
// operation had a chance to run.
if (!data_provider) {
- ReadDirectoryWithFreshDataProvider(context.Pass(), url, callback, false);
+ ReadDirectoryWithFreshDataProvider(std::move(context), url, callback,
+ false);
} else {
data_provider->RefreshData(
base::Bind(&IPhotoFileUtil::ReadDirectoryWithFreshDataProvider,
@@ -118,7 +120,7 @@ void IPhotoFileUtil::CreateSnapshotFileOnTaskRunnerThread(
// |data_provider| may be NULL if the file system was revoked before this
// operation had a chance to run.
if (!data_provider) {
- CreateSnapshotFileWithFreshDataProvider(context.Pass(), url, callback,
+ CreateSnapshotFileWithFreshDataProvider(std::move(context), url, callback,
false);
} else {
data_provider->RefreshData(
@@ -142,7 +144,7 @@ void IPhotoFileUtil::GetFileInfoWithFreshDataProvider(
}
return;
}
- NativeMediaFileUtil::GetFileInfoOnTaskRunnerThread(context.Pass(), url,
+ NativeMediaFileUtil::GetFileInfoOnTaskRunnerThread(std::move(context), url,
callback);
}
@@ -160,7 +162,7 @@ void IPhotoFileUtil::ReadDirectoryWithFreshDataProvider(
}
return;
}
- NativeMediaFileUtil::ReadDirectoryOnTaskRunnerThread(context.Pass(), url,
+ NativeMediaFileUtil::ReadDirectoryOnTaskRunnerThread(std::move(context), url,
callback);
}
@@ -182,8 +184,8 @@ void IPhotoFileUtil::CreateSnapshotFileWithFreshDataProvider(
}
return;
}
- NativeMediaFileUtil::CreateSnapshotFileOnTaskRunnerThread(context.Pass(), url,
- callback);
+ NativeMediaFileUtil::CreateSnapshotFileOnTaskRunnerThread(std::move(context),
+ url, callback);
}
// Begin actual implementation.

Powered by Google App Engine
This is Rietveld 408576698