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 37162a78c1d0e0af0b4d36dbb38b953a3a083a30..7c06e331959f466c47b0bcbe8058279d29996e1d 100644 |
--- a/extensions/browser/api/declarative/rules_registry_service.cc |
+++ b/extensions/browser/api/declarative/rules_registry_service.cc |
@@ -10,6 +10,7 @@ |
#include "base/lazy_instance.h" |
#include "base/logging.h" |
#include "base/memory/ptr_util.h" |
+#include "components/version_info/version_info.h" |
#include "content/public/browser/browser_thread.h" |
#include "content/public/browser/render_process_host.h" |
#include "extensions/browser/api/declarative/rules_cache_delegate.h" |
@@ -76,6 +77,8 @@ void RulesRegistryService::EnsureDefaultRulesRegistriesRegistered( |
if (ContainsKey(rule_registries_, key)) |
return; |
+ ScopedCurrentChannel channel(version_info::Channel::STABLE); |
+ |
// Create a web request rules registry if declarative web request is enabled |
// on the current channel. |
const Feature* declarative_web_request = |