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

Unified Diff: content/browser/web_contents/web_contents_impl.cc

Issue 1545243002: Convert Pass()→std::move() in //content/browser (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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
Index: content/browser/web_contents/web_contents_impl.cc
diff --git a/content/browser/web_contents/web_contents_impl.cc b/content/browser/web_contents/web_contents_impl.cc
index eadd9c1cfd7ef75c8a03617fe5be68978d5028bc..9b709d85dc1f3e7cf690350be803b180be80fb51 100644
--- a/content/browser/web_contents/web_contents_impl.cc
+++ b/content/browser/web_contents/web_contents_impl.cc
@@ -1389,7 +1389,7 @@ void WebContentsImpl::Init(const WebContents::CreateParams& params) {
if (browser_plugin_guest_ &&
!BrowserPluginGuestMode::UseCrossProcessFramesForGuests()) {
view_.reset(new WebContentsViewGuest(this, browser_plugin_guest_.get(),
- view_.Pass(),
+ std::move(view_),
&render_view_host_delegate_view_));
}
CHECK(render_view_host_delegate_view_);
@@ -2592,7 +2592,7 @@ void WebContentsImpl::SaveFrameWithHeaders(const GURL& url,
params->add_request_header(pair[0], pair[1]);
}
}
- dlm->DownloadUrl(params.Pass());
+ dlm->DownloadUrl(std::move(params));
}
void WebContentsImpl::GenerateMHTML(
@@ -2808,7 +2808,7 @@ int WebContentsImpl::DownloadImage(
req->bypass_cache = bypass_cache;
mojo_image_downloader->DownloadImage(
- req.Pass(),
+ std::move(req),
base::Bind(&DidDownloadImage, callback, download_id, url));
return download_id;
}

Powered by Google App Engine
This is Rietveld 408576698