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

Side by Side Diff: chrome/browser/browsing_data_appcache_helper.cc

Issue 3178001: Delete callbacks after use in canned browsing data helpers. (Closed)
Patch Set: Created 10 years, 4 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
« no previous file with comments | « no previous file | chrome/browser/browsing_data_appcache_helper_unittest.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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/browsing_data_appcache_helper.h" 5 #include "chrome/browser/browsing_data_appcache_helper.h"
6 6
7 #include "chrome/browser/chrome_thread.h" 7 #include "chrome/browser/chrome_thread.h"
8 #include "chrome/browser/net/chrome_url_request_context.h" 8 #include "chrome/browser/net/chrome_url_request_context.h"
9 #include "chrome/browser/profile.h" 9 #include "chrome/browser/profile.h"
10 #include "chrome/common/url_constants.h" 10 #include "chrome/common/url_constants.h"
(...skipping 112 matching lines...) Expand 10 before | Expand all | Expand 10 after
123 appcache_infos_.push_back(info); 123 appcache_infos_.push_back(info);
124 } 124 }
125 125
126 void CannedBrowsingDataAppCacheHelper::Reset() { 126 void CannedBrowsingDataAppCacheHelper::Reset() {
127 info_collection_->infos_by_origin.clear(); 127 info_collection_->infos_by_origin.clear();
128 } 128 }
129 129
130 void CannedBrowsingDataAppCacheHelper::StartFetching( 130 void CannedBrowsingDataAppCacheHelper::StartFetching(
131 Callback0::Type* completion_callback) { 131 Callback0::Type* completion_callback) {
132 completion_callback->Run(); 132 completion_callback->Run();
133 delete completion_callback;
133 } 134 }
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/browsing_data_appcache_helper_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698