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

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

Issue 57933002: Declarative API: Signal RulesRegister ready on correct thread (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 7 years, 1 month 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 | « no previous file | 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.cc
diff --git a/chrome/browser/extensions/api/declarative/rules_registry.cc b/chrome/browser/extensions/api/declarative/rules_registry.cc
index 255de0ec2f7a4d84762518b0ec59dc9917e88a5a..12f1d3cfd737613c05bd0461650bc42b1feee91d 100644
--- a/chrome/browser/extensions/api/declarative/rules_registry.cc
+++ b/chrome/browser/extensions/api/declarative/rules_registry.cc
@@ -87,7 +87,10 @@ RulesRegistry::RulesRegistry(
cache_delegate_ = cache_delegate->GetWeakPtr();
cache_delegate->Init(this);
} else {
- ready_.Signal();
+ content::BrowserThread::PostTask(
+ owner_thread,
+ FROM_HERE,
+ base::Bind(&RulesRegistry::MarkReady, this, base::Time::Now()));
}
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698