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

Unified Diff: components/update_client/crx_downloader.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/update_client/component_unpacker.cc ('k') | components/update_client/update_checker_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/update_client/crx_downloader.cc
diff --git a/components/update_client/crx_downloader.cc b/components/update_client/crx_downloader.cc
index 6a0b142a1496342490c16c59df3c40a0b2e087be..84f7210c17ff91c436bb38e322a00e2a71c8c0f0 100644
--- a/components/update_client/crx_downloader.cc
+++ b/components/update_client/crx_downloader.cc
@@ -4,6 +4,8 @@
#include "components/update_client/crx_downloader.h"
+#include <utility>
+
#include "base/bind.h"
#include "base/location.h"
#include "base/logging.h"
@@ -38,7 +40,7 @@ scoped_ptr<CrxDownloader> CrxDownloader::Create(
const scoped_refptr<base::SequencedTaskRunner>& task_runner) {
scoped_ptr<CrxDownloader> url_fetcher_downloader(
scoped_ptr<CrxDownloader>(new UrlFetcherDownloader(
- scoped_ptr<CrxDownloader>().Pass(), context_getter, task_runner)));
+ scoped_ptr<CrxDownloader>(), context_getter, task_runner)));
#if defined(OS_WIN)
if (is_background_download) {
return scoped_ptr<CrxDownloader>(new BackgroundDownloader(
@@ -50,8 +52,7 @@ scoped_ptr<CrxDownloader> CrxDownloader::Create(
}
CrxDownloader::CrxDownloader(scoped_ptr<CrxDownloader> successor)
- : successor_(successor.Pass()) {
-}
+ : successor_(std::move(successor)) {}
CrxDownloader::~CrxDownloader() {
}
« no previous file with comments | « components/update_client/component_unpacker.cc ('k') | components/update_client/update_checker_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698