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

Unified Diff: chrome/browser/cocoa/web_drag_source.mm

Issue 4192012: Convert implicit scoped_refptr constructor calls to explicit ones, part 1 (Closed) Base URL: http://git.chromium.org/git/chromium.git
Patch Set: fix presubmit Created 10 years, 2 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 | « chrome/browser/cocoa/first_run_dialog.mm ('k') | chrome/browser/debugger/devtools_manager_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/cocoa/web_drag_source.mm
diff --git a/chrome/browser/cocoa/web_drag_source.mm b/chrome/browser/cocoa/web_drag_source.mm
index a2402dabd3f81f56c87e78fa546adb5545ea7479..95ab0d1f8b233162e351860e65d77823663bcd86 100644
--- a/chrome/browser/cocoa/web_drag_source.mm
+++ b/chrome/browser/cocoa/web_drag_source.mm
@@ -307,13 +307,13 @@ void PromiseWriterTask::Run() {
if (downloadURL_.is_valid()) {
TabContents* tabContents = [contentsView_ tabContents];
- scoped_refptr<DragDownloadFile> dragFileDownloader = new DragDownloadFile(
+ scoped_refptr<DragDownloadFile> dragFileDownloader(new DragDownloadFile(
filePath,
linked_ptr<net::FileStream>(fileStream),
downloadURL_,
tabContents->GetURL(),
tabContents->encoding(),
- tabContents);
+ tabContents));
// The finalizer will take care of closing and deletion.
dragFileDownloader->Start(
« no previous file with comments | « chrome/browser/cocoa/first_run_dialog.mm ('k') | chrome/browser/debugger/devtools_manager_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698