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

Side by Side Diff: chrome/browser/extensions/extension_data_deleter.cc

Issue 8769024: base::Bind: Convert AppCacheHelper::DeleteAppCachesForOrigin. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years 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) 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
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 }
OLDNEW
« no previous file with comments | « no previous file | webkit/appcache/appcache_quota_client.h » ('j') | webkit/appcache/appcache_quota_client.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698