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

Unified Diff: extensions/browser/api/declarative/rules_registry_service.cc

Issue 1232603002: This patch improves the way that GuestViewManager tracks the destruction of GuestView embedders. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix for failing tests. Created 5 years, 5 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
Index: extensions/browser/api/declarative/rules_registry_service.cc
diff --git a/extensions/browser/api/declarative/rules_registry_service.cc b/extensions/browser/api/declarative/rules_registry_service.cc
index 939b01eab2ae33b92bdf779c059582e6ae5ee6ab..a5af632e615a1ad6577e4f7ecf9c79d87fa52698 100644
--- a/extensions/browser/api/declarative/rules_registry_service.cc
+++ b/extensions/browser/api/declarative/rules_registry_service.cc
@@ -137,6 +137,14 @@ RulesRegistryService* RulesRegistryService::Get(
return BrowserContextKeyedAPIFactory<RulesRegistryService>::Get(context);
}
+// static
+RulesRegistryService* RulesRegistryService::Get(
+ content::BrowserContext* context,
+ bool create) {
+ return BrowserContextKeyedAPIFactory<RulesRegistryService>::Get(context,
+ create);
+}
+
void RulesRegistryService::RegisterRulesRegistry(
scoped_refptr<RulesRegistry> rule_registry) {
const std::string event_name(rule_registry->event_name());

Powered by Google App Engine
This is Rietveld 408576698