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

Unified Diff: sync/internal_api/attachments/attachment_downloader_impl.cc

Issue 1539843002: Convert Pass()→std::move() in sync/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Cleaned up 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 | « sync/engine/sync_scheduler_impl.cc ('k') | sync/internal_api/attachments/attachment_service_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sync/internal_api/attachments/attachment_downloader_impl.cc
diff --git a/sync/internal_api/attachments/attachment_downloader_impl.cc b/sync/internal_api/attachments/attachment_downloader_impl.cc
index b1e2153231378604f331804200072196be3234ed..0bdcbc3bf996a0752c6923010074ad56ef6697c7 100644
--- a/sync/internal_api/attachments/attachment_downloader_impl.cc
+++ b/sync/internal_api/attachments/attachment_downloader_impl.cc
@@ -5,6 +5,7 @@
#include "sync/internal_api/public/attachments/attachment_downloader_impl.h"
#include <stdint.h>
+#include <utility>
#include "base/base64.h"
#include "base/bind.h"
@@ -90,7 +91,7 @@ void AttachmentDownloaderImpl::DownloadAttachment(
// DownloadState and request access token for it.
scoped_ptr<DownloadState> new_download_state(
new DownloadState(attachment_id, url));
- iter = state_map_.add(url, new_download_state.Pass()).first;
+ iter = state_map_.add(url, std::move(new_download_state)).first;
RequestAccessToken(iter->second);
}
DownloadState* download_state = iter->second;
@@ -113,7 +114,7 @@ void AttachmentDownloaderImpl::OnGetTokenSuccess(
DownloadState* download_state = *iter;
download_state->access_token = access_token;
download_state->url_fetcher =
- CreateFetcher(download_state->attachment_url, access_token).Pass();
+ CreateFetcher(download_state->attachment_url, access_token);
download_state->start_time = base::TimeTicks::Now();
download_state->url_fetcher->Start();
}
@@ -213,7 +214,7 @@ scoped_ptr<net::URLFetcher> AttachmentDownloaderImpl::CreateFetcher(
AttachmentUploaderImpl::ConfigureURLFetcherCommon(
url_fetcher.get(), access_token, raw_store_birthday_, model_type_,
url_request_context_getter_.get());
- return url_fetcher.Pass();
+ return url_fetcher;
}
void AttachmentDownloaderImpl::RequestAccessToken(
« no previous file with comments | « sync/engine/sync_scheduler_impl.cc ('k') | sync/internal_api/attachments/attachment_service_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698