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

Side by Side Diff: content/browser/download/drag_download_util.cc

Issue 16294003: Update content/ to use scoped_refptr<T>::get() rather than implicit "operator T*" (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebased Created 7 years, 6 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "content/browser/download/drag_download_util.h" 5 #include "content/browser/download/drag_download_util.h"
6 6
7 #include <string> 7 #include <string>
8 8
9 #include "base/bind.h" 9 #include "base/bind.h"
10 #include "base/file_util.h" 10 #include "base/file_util.h"
(...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after
107 107
108 void PromiseFileFinalizer::OnDownloadAborted() { 108 void PromiseFileFinalizer::OnDownloadAborted() {
109 BrowserThread::PostTask( 109 BrowserThread::PostTask(
110 BrowserThread::UI, FROM_HERE, 110 BrowserThread::UI, FROM_HERE,
111 base::Bind(&PromiseFileFinalizer::Cleanup, this)); 111 base::Bind(&PromiseFileFinalizer::Cleanup, this));
112 } 112 }
113 113
114 PromiseFileFinalizer::~PromiseFileFinalizer() {} 114 PromiseFileFinalizer::~PromiseFileFinalizer() {}
115 115
116 void PromiseFileFinalizer::Cleanup() { 116 void PromiseFileFinalizer::Cleanup() {
117 if (drag_file_downloader_) 117 if (drag_file_downloader_.get())
118 drag_file_downloader_ = NULL; 118 drag_file_downloader_ = NULL;
119 } 119 }
120 120
121 } // namespace content 121 } // namespace content
OLDNEW
« no previous file with comments | « content/browser/download/drag_download_file_browsertest.cc ('k') | content/browser/download/save_file_resource_handler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698