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

Unified Diff: third_party/WebKit/Source/web/ChromeClientImpl.cpp

Issue 2308353002: Replaced PassRefPtr copies with moves in Source/web and Source/wtf. (Closed)
Patch Set: rebased Created 4 years, 3 months 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 | « no previous file | third_party/WebKit/Source/wtf/HashMap.h » ('j') | third_party/WebKit/Source/wtf/HashMap.h » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/web/ChromeClientImpl.cpp
diff --git a/third_party/WebKit/Source/web/ChromeClientImpl.cpp b/third_party/WebKit/Source/web/ChromeClientImpl.cpp
index c8625a81c818c6900c53bd9e13dd7e66ae9c03c3..383ef1b11c2428da66510f8fecfadf958270fd06 100644
--- a/third_party/WebKit/Source/web/ChromeClientImpl.cpp
+++ b/third_party/WebKit/Source/web/ChromeClientImpl.cpp
@@ -718,7 +718,7 @@ void ChromeClientImpl::openFileChooser(LocalFrame* frame, PassRefPtr<FileChooser
params.needLocalPath = fileChooser->settings().allowsDirectoryUpload;
params.requestor = frame->document()->url();
- WebFileChooserCompletionImpl* chooserCompletion = new WebFileChooserCompletionImpl(fileChooser);
+ WebFileChooserCompletionImpl* chooserCompletion = new WebFileChooserCompletionImpl(std::move(fileChooser));
if (client->runFileChooser(params, chooserCompletion))
return;
// Choosing failed, so do callback with an empty list.
« no previous file with comments | « no previous file | third_party/WebKit/Source/wtf/HashMap.h » ('j') | third_party/WebKit/Source/wtf/HashMap.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698