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

Unified Diff: chrome/browser/ui/webui/quota_internals_proxy.h

Issue 8070001: Use base::Callback in Quota related code. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 9 years, 2 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/browser/browsing_data_remover.cc ('k') | chrome/browser/ui/webui/quota_internals_proxy.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/webui/quota_internals_proxy.h
diff --git a/chrome/browser/ui/webui/quota_internals_proxy.h b/chrome/browser/ui/webui/quota_internals_proxy.h
index c717d579308f4177e0b42bfd89069e9ab44a793d..ad433448ca2c8317d660b7f4c048b75253bd12f5 100644
--- a/chrome/browser/ui/webui/quota_internals_proxy.h
+++ b/chrome/browser/ui/webui/quota_internals_proxy.h
@@ -12,6 +12,7 @@
#include <vector>
#include "base/memory/ref_counted.h"
+#include "base/memory/weak_ptr.h"
#include "content/browser/browser_thread.h"
#include "webkit/quota/quota_manager.h"
#include "webkit/quota/quota_types.h"
@@ -69,7 +70,7 @@ class QuotaInternalsProxy
QuotaInternalsHandler* handler_;
// Used on IO Thread.
- base::ScopedCallbackFactory<QuotaInternalsProxy> callback_factory_;
+ base::WeakPtrFactory<QuotaInternalsProxy> weak_factory_;
scoped_refptr<quota::QuotaManager> quota_manager_;
std::set<std::pair<std::string, quota::StorageType> >
hosts_visited_, hosts_pending_;
« no previous file with comments | « chrome/browser/browsing_data_remover.cc ('k') | chrome/browser/ui/webui/quota_internals_proxy.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698