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

Unified Diff: chrome/browser/extensions/api/declarative/rules_registry_with_cache.cc

Issue 11316307: Revert 170319 - Removed dead code from chrome/browser/extensions/api/declarative (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 8 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/browser/extensions/api/declarative/rules_registry_with_cache.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/extensions/api/declarative/rules_registry_with_cache.cc
===================================================================
--- chrome/browser/extensions/api/declarative/rules_registry_with_cache.cc (revision 170756)
+++ chrome/browser/extensions/api/declarative/rules_registry_with_cache.cc (working copy)
@@ -20,6 +20,10 @@
: delegate_(delegate) {
}
+void RulesRegistryWithCache::AddReadyCallback(const base::Closure& callback) {
+ ready_callbacks_.push_back(callback);
+}
+
void RulesRegistryWithCache::OnReady() {
for (size_t i = 0; i < ready_callbacks_.size(); ++i)
ready_callbacks_[i].Run();
« no previous file with comments | « chrome/browser/extensions/api/declarative/rules_registry_with_cache.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698