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

Side by Side Diff: webkit/blob/shareable_file_reference.cc

Issue 11275088: Remove implicit scoped_refptr operator T* Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 8 years, 1 month 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
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 "webkit/blob/shareable_file_reference.h" 5 #include "webkit/blob/shareable_file_reference.h"
6 6
7 #include <map> 7 #include <map>
8 8
9 #include "base/file_util.h" 9 #include "base/file_util.h"
10 #include "base/file_util_proxy.h" 10 #include "base/file_util_proxy.h"
(...skipping 99 matching lines...) Expand 10 before | Expand all | Expand 10 after
110 } 110 }
111 111
112 ShareableFileReference::~ShareableFileReference() { 112 ShareableFileReference::~ShareableFileReference() {
113 DCHECK(g_file_map.Get().Find(path_)->second == this); 113 DCHECK(g_file_map.Get().Find(path_)->second == this);
114 g_file_map.Get().Erase(path_); 114 g_file_map.Get().Erase(path_);
115 115
116 for (size_t i = 0; i < final_release_callbacks_.size(); i++) 116 for (size_t i = 0; i < final_release_callbacks_.size(); i++)
117 final_release_callbacks_[i].Run(path_); 117 final_release_callbacks_[i].Run(path_);
118 118
119 if (final_release_policy_ == DELETE_ON_FINAL_RELEASE) { 119 if (final_release_policy_ == DELETE_ON_FINAL_RELEASE) {
120 base::FileUtilProxy::Delete(file_task_runner_, path_, false /* recursive */, 120 base::FileUtilProxy::Delete(
121 base::FileUtilProxy::StatusCallback()); 121 file_task_runner_.get(), path_, false /* recursive */,
122 base::FileUtilProxy::StatusCallback());
122 } 123 }
123 } 124 }
124 125
125 } // namespace webkit_blob 126 } // namespace webkit_blob
OLDNEW
« no previous file with comments | « webkit/blob/local_file_stream_reader_unittest.cc ('k') | webkit/blob/view_blob_internals_job.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698