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

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

Issue 2753073003: [DO NOT COMMIT] Test what fails on stable with declarativeWebRequest
Patch Set: . Created 3 years, 9 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
« 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: 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 =
« 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