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

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

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: Addressed comment by kalman@. 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.h
diff --git a/extensions/browser/api/declarative/rules_registry_service.h b/extensions/browser/api/declarative/rules_registry_service.h
index f03adbad7f5b3f1ade92989e3b8879e86e7d0e32..8f16cb2a530ea7778fce779fe6049da72e6ebc24 100644
--- a/extensions/browser/api/declarative/rules_registry_service.h
+++ b/extensions/browser/api/declarative/rules_registry_service.h
@@ -61,9 +61,15 @@ class RulesRegistryService : public BrowserContextKeyedAPI,
static BrowserContextKeyedAPIFactory<RulesRegistryService>*
GetFactoryInstance();
- // Convenience method to get the RulesRegistryService for a context.
+ // Convenience method to get the RulesRegistryService for a context. If a
+ // RulesRegistryService does not already exist for |context|, one will be
+ // created and returned.
static RulesRegistryService* Get(content::BrowserContext* context);
+ // The same as Get(), except that if a RulesRegistryService does not already
+ // exist for |context|, nullptr is returned.
+ static RulesRegistryService* GetIfExists(content::BrowserContext* context);
+
int GetNextRulesRegistryID();
// Registers the default RulesRegistries used in Chromium.
« no previous file with comments | « components/guest_view/browser/test_guest_view_manager.cc ('k') | extensions/browser/api/declarative/rules_registry_service.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698