OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 "chrome/browser/extensions/extension_data_deleter.h" | 5 #include "chrome/browser/extensions/extension_data_deleter.h" |
6 | 6 |
7 #include "base/bind.h" | 7 #include "base/bind.h" |
8 #include "base/file_util.h" | 8 #include "base/file_util.h" |
9 #include "chrome/browser/profiles/profile.h" | 9 #include "chrome/browser/profiles/profile.h" |
10 #include "chrome/browser/extensions/extension_service.h" | 10 #include "chrome/browser/extensions/extension_service.h" |
(...skipping 123 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
134 | 134 |
135 // TODO(creis): The following call fails because the request context is still | 135 // TODO(creis): The following call fails because the request context is still |
136 // around, and holding open file handles in this directory. | 136 // around, and holding open file handles in this directory. |
137 // See http://crbug.com/85127 | 137 // See http://crbug.com/85127 |
138 if (!isolated_app_path_.empty()) | 138 if (!isolated_app_path_.empty()) |
139 file_util::Delete(isolated_app_path_, true); | 139 file_util::Delete(isolated_app_path_, true); |
140 } | 140 } |
141 | 141 |
142 void ExtensionDataDeleter::DeleteAppcachesOnIOThread() { | 142 void ExtensionDataDeleter::DeleteAppcachesOnIOThread() { |
143 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::IO)); | 143 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::IO)); |
144 appcache_service_->DeleteAppCachesForOrigin(storage_origin_, NULL); | 144 appcache_service_->DeleteAppCachesForOrigin( |
| 145 storage_origin_, net::CompletionCallback()); |
145 } | 146 } |
OLD | NEW |