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

Unified Diff: components/update_client/url_fetcher_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/update_engine.cc ('k') | components/url_matcher/url_matcher.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/update_client/url_fetcher_downloader.cc
diff --git a/components/update_client/url_fetcher_downloader.cc b/components/update_client/url_fetcher_downloader.cc
index 4edc1c4c7377b1562b64405b10d8c129c1eeaa88..acb9eb2676ddea5ffbded59355e338c73206056a 100644
--- a/components/update_client/url_fetcher_downloader.cc
+++ b/components/update_client/url_fetcher_downloader.cc
@@ -5,6 +5,7 @@
#include "components/update_client/url_fetcher_downloader.h"
#include <stdint.h>
+#include <utility>
#include "base/logging.h"
#include "base/sequenced_task_runner.h"
@@ -19,12 +20,11 @@ UrlFetcherDownloader::UrlFetcherDownloader(
scoped_ptr<CrxDownloader> successor,
net::URLRequestContextGetter* context_getter,
scoped_refptr<base::SequencedTaskRunner> task_runner)
- : CrxDownloader(successor.Pass()),
+ : CrxDownloader(std::move(successor)),
context_getter_(context_getter),
task_runner_(task_runner),
downloaded_bytes_(-1),
- total_bytes_(-1) {
-}
+ total_bytes_(-1) {}
UrlFetcherDownloader::~UrlFetcherDownloader() {
DCHECK(thread_checker_.CalledOnValidThread());
« no previous file with comments | « components/update_client/update_engine.cc ('k') | components/url_matcher/url_matcher.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698