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

Unified Diff: components/resource_provider/resource_provider_impl.cc

Issue 1548203002: Convert Pass()→std::move() in //components/[n-z]* (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix bad headers 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
« no previous file with comments | « components/resource_provider/resource_provider_app.cc ('k') | components/safe_browsing_db/prefix_set.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/resource_provider/resource_provider_impl.cc
diff --git a/components/resource_provider/resource_provider_impl.cc b/components/resource_provider/resource_provider_impl.cc
index 8b0168a5929b0b933c2aac85364a8c4ffcdf4a28..93317032cc288d04306100684daa007b184b2c29 100644
--- a/components/resource_provider/resource_provider_impl.cc
+++ b/components/resource_provider/resource_provider_impl.cc
@@ -5,6 +5,7 @@
#include "components/resource_provider/resource_provider_impl.h"
#include <stddef.h>
+#include <utility>
#include "base/bind.h"
#include "base/files/file_util.h"
@@ -39,7 +40,7 @@ ScopedHandle GetHandleForPath(const base::FilePath& path) {
return ScopedHandle();
}
- return ScopedHandle(mojo::Handle(mojo_handle)).Pass();
+ return ScopedHandle(mojo::Handle(mojo_handle));
}
} // namespace
@@ -65,7 +66,7 @@ void ResourceProviderImpl::GetResources(mojo::Array<mojo::String> paths,
GetPathForResourceNamed(application_path_, paths[i]));
}
}
- callback.Run(handles.Pass());
+ callback.Run(std::move(handles));
}
} // namespace resource_provider
« no previous file with comments | « components/resource_provider/resource_provider_app.cc ('k') | components/safe_browsing_db/prefix_set.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698