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

Issue 2773593003: Revert of Extensions: Only create Web request rules registry if Declarative Web Request is enabled. (Closed)

Created:
3 years, 9 months ago by karandeepb
Modified:
3 years, 9 months ago
Reviewers:
Devlin
CC:
chromium-reviews, chromium-apps-reviews_chromium.org, extensions-reviews_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Revert of Extensions: Only create Web request rules registry if Declarative Web Request is enabled. (patchset #4 id:60001 of https://codereview.chromium.org/2705513002/ ) Reason for revert: Declarative Web Request is enabled on Stable through <webview>. Hence we can't disable creation of rules registry on Stable. Original issue's description: > Extensions: Only create Web request rules registry if Declarative Web Request is enabled. > > Currently the Web Request rules registry required by the Declarative Web > Request API is created on all Chrome channels, even though the Declarative Web > Request API is disabled on Stable. The UMA metric > Extensions.NetworkDelayRegistryLoad shows significant delay for some web > requests which are blocked due to the loading of the Web Request rules > registry even on Stable. The mean delay is around 1.7 sec and the median delay > is around 50ms. > > This CL modifies RulesRegistryService::EnsureDefaultRulesRegistriesRegistered > to ensure the Web Request rules registry is only created for the channels on > which the Declarative Web Request API is enabled. To do this, > Feature::IsAvailableToChannel is introduced. > > BUG=693243 > > Review-Url: https://codereview.chromium.org/2705513002 > Cr-Commit-Position: refs/heads/master@{#452240} > Committed: https://chromium.googlesource.com/chromium/src/+/a77b53baca5f2a4ff102592c17c8ea3f53dd5307 # Not skipping CQ checks because original CL landed more than 1 days ago. BUG=693243 Review-Url: https://codereview.chromium.org/2773593003 Cr-Commit-Position: refs/heads/master@{#459269} Committed: https://chromium.googlesource.com/chromium/src/+/9df2cccc337ca57188f9709b2205439347870606

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+84 lines, -107 lines) Patch
M extensions/browser/api/declarative/rules_registry_service.cc View 2 chunks +18 lines, -27 lines 0 comments Download
M extensions/common/features/complex_feature.h View 1 chunk +0 lines, -2 lines 0 comments Download
M extensions/common/features/complex_feature.cc View 1 chunk +0 lines, -18 lines 0 comments Download
M extensions/common/features/feature.h View 2 chunks +0 lines, -7 lines 0 comments Download
M extensions/common/features/simple_feature.h View 1 chunk +0 lines, -2 lines 0 comments Download
M extensions/common/features/simple_feature.cc View 2 chunks +0 lines, -12 lines 0 comments Download
M extensions/common/features/simple_feature_unittest.cc View 6 chunks +66 lines, -39 lines 0 comments Download

Messages

Total messages: 9 (4 generated)
karandeepb
Created Revert of Extensions: Only create Web request rules registry if Declarative Web Request is ...
3 years, 9 months ago (2017-03-23 18:20:30 UTC) #1
karandeepb
On 2017/03/23 18:20:30, karandeepb wrote: > Created Revert of Extensions: Only create Web request rules ...
3 years, 9 months ago (2017-03-23 18:22:06 UTC) #3
Devlin
On 2017/03/23 18:22:06, karandeepb wrote: > On 2017/03/23 18:20:30, karandeepb wrote: > > Created Revert ...
3 years, 9 months ago (2017-03-23 21:45:11 UTC) #4
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2773593003/1
3 years, 9 months ago (2017-03-23 22:24:44 UTC) #6
commit-bot: I haz the power
3 years, 9 months ago (2017-03-23 23:13:28 UTC) #9
Message was sent while issue was closed.
Committed patchset #1 (id:1) as
https://chromium.googlesource.com/chromium/src/+/9df2cccc337ca57188f9709b2205...

Powered by Google App Engine
This is Rietveld 408576698