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

Issue 590573002: Remove ContentRulesRegistry dependence from RulesRegistryService. (Closed)

Created:
6 years, 3 months ago by wjmaclean
Modified:
6 years, 3 months ago
CC:
chromium-reviews, chromium-apps-reviews_chromium.org, extensions-reviews_chromium.org, Xi Han, lfg, Fady Samuel
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Project:
chromium
Visibility:
Public.

Description

Move RulesRegistryService to //extensions. This CL moves RulesRegistryService to //extensions. Since it was dependent on ContentRulesRegistry, we move the essential elements of that interface to //extensions as well, renaming what remains as ChromeContentRulesRegistry. BUG=352293 Committed: https://crrev.com/76c67583b565e93ba11f8c0337e696191d760009 Cr-Commit-Position: refs/heads/master@{#296255}

Patch Set 1 #

Total comments: 1

Patch Set 2 : Move pointer conversion onto ContentRulesRegistry. #

Patch Set 3 : Introduce intermediary interface for ContentRulesRegistry. #

Patch Set 4 : Introduce ChromeContentRulesRegistry, move rules_registry_service.* #

Total comments: 2

Patch Set 5 : Rename to CreateContentRulesRegistry. #

Total comments: 1

Patch Set 6 : Fix comment. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+204 lines, -1060 lines) Patch
M chrome/browser/extensions/api/chrome_extensions_api_client.h View 1 2 3 4 1 chunk +3 lines, -0 lines 0 comments Download
M chrome/browser/extensions/api/chrome_extensions_api_client.cc View 1 2 3 4 3 chunks +10 lines, -1 line 0 comments Download
M chrome/browser/extensions/api/declarative/declarative_apitest.cc View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/extensions/api/declarative/rules_registry_service.h View 1 2 3 1 chunk +0 lines, -156 lines 0 comments Download
D chrome/browser/extensions/api/declarative/rules_registry_service.cc View 1 2 3 1 chunk +0 lines, -233 lines 0 comments Download
M chrome/browser/extensions/api/declarative/rules_registry_service_unittest.cc View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
A + chrome/browser/extensions/api/declarative_content/chrome_content_rules_registry.h View 1 2 3 4 5 6 chunks +22 lines, -19 lines 0 comments Download
A + chrome/browser/extensions/api/declarative_content/chrome_content_rules_registry.cc View 1 2 3 17 chunks +65 lines, -49 lines 0 comments Download
A + chrome/browser/extensions/api/declarative_content/chrome_content_rules_registry_unittest.cc View 1 2 3 2 chunks +6 lines, -6 lines 0 comments Download
M chrome/browser/extensions/api/declarative_content/content_rules_registry.h View 1 2 3 1 chunk +0 lines, -151 lines 0 comments Download
M chrome/browser/extensions/api/declarative_content/content_rules_registry.cc View 1 2 3 1 chunk +0 lines, -329 lines 0 comments Download
D chrome/browser/extensions/api/declarative_content/content_rules_registry_unittest.cc View 1 2 3 1 chunk +0 lines, -97 lines 0 comments Download
M chrome/browser/extensions/tab_helper.cc View 1 2 3 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/chrome_browser_extensions.gypi View 1 2 3 1 chunk +2 lines, -4 lines 0 comments Download
M chrome/chrome_tests_unit.gypi View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M extensions/browser/BUILD.gn View 1 2 3 1 chunk +3 lines, -0 lines 0 comments Download
A + extensions/browser/api/declarative/rules_registry_service.h View 1 2 3 2 chunks +3 lines, -3 lines 0 comments Download
A + extensions/browser/api/declarative/rules_registry_service.cc View 1 2 3 4 3 chunks +6 lines, -5 lines 0 comments Download
A extensions/browser/api/declarative_content/content_rules_registry.h View 1 2 3 1 chunk +60 lines, -0 lines 0 comments Download
M extensions/browser/api/extensions_api_client.h View 1 2 3 4 4 chunks +9 lines, -1 line 0 comments Download
M extensions/browser/api/extensions_api_client.cc View 1 2 3 4 1 chunk +7 lines, -0 lines 0 comments Download
M extensions/extensions.gyp View 1 2 3 1 chunk +3 lines, -1 line 0 comments Download

Messages

Total messages: 17 (3 generated)
wjmaclean
Please take a look when you get a moment? The actual move of the rules_registry_service ...
6 years, 3 months ago (2014-09-19 20:39:23 UTC) #2
Ken Rockot(use gerrit already)
https://codereview.chromium.org/590573002/diff/1/extensions/browser/api/extensions_api_client.h File extensions/browser/api/extensions_api_client.h (right): https://codereview.chromium.org/590573002/diff/1/extensions/browser/api/extensions_api_client.h#newcode100 extensions/browser/api/extensions_api_client.h:100: virtual ContentRulesRegistry* ConvertToContentRulesRegistryPtr( I don't think this should be ...
6 years, 3 months ago (2014-09-19 22:56:10 UTC) #3
wjmaclean
On 2014/09/19 22:56:10, Ken Rockot wrote: > https://codereview.chromium.org/590573002/diff/1/extensions/browser/api/extensions_api_client.h > File extensions/browser/api/extensions_api_client.h (right): > > https://codereview.chromium.org/590573002/diff/1/extensions/browser/api/extensions_api_client.h#newcode100 ...
6 years, 3 months ago (2014-09-22 13:46:26 UTC) #4
wjmaclean
On 2014/09/22 13:46:26, wjmaclean wrote: > > I don't think it can be static ...
6 years, 3 months ago (2014-09-22 17:05:27 UTC) #5
Ken Rockot(use gerrit already)
On 2014/09/22 17:05:27, wjmaclean wrote: > On 2014/09/22 13:46:26, wjmaclean wrote: > > > > ...
6 years, 3 months ago (2014-09-22 17:13:40 UTC) #6
wjmaclean
I've added an //extensions intermediary interface for ContentRulesRegistry so that RuleRegistryService is never dealing with ...
6 years, 3 months ago (2014-09-22 20:11:04 UTC) #7
Ken Rockot(use gerrit already)
On 2014/09/22 20:11:04, wjmaclean wrote: > I've added an //extensions intermediary interface for ContentRulesRegistry so ...
6 years, 3 months ago (2014-09-22 21:13:25 UTC) #8
wjmaclean
PTAL I had resisted renaming ContentRulesRegistry before since I figured it would create a lot ...
6 years, 3 months ago (2014-09-23 14:59:01 UTC) #9
Fady Samuel
https://codereview.chromium.org/590573002/diff/60001/extensions/browser/api/declarative/rules_registry_service.cc File extensions/browser/api/declarative/rules_registry_service.cc (right): https://codereview.chromium.org/590573002/diff/60001/extensions/browser/api/declarative/rules_registry_service.cc#newcode96 extensions/browser/api/declarative/rules_registry_service.cc:96: ExtensionsAPIClient::Get()->GetContentRulesRegistry( nit: Could we please rename this CreateContentRulesRegistry? GetContentRulesRegistry ...
6 years, 3 months ago (2014-09-23 15:04:51 UTC) #11
wjmaclean
PTAL https://codereview.chromium.org/590573002/diff/60001/extensions/browser/api/declarative/rules_registry_service.cc File extensions/browser/api/declarative/rules_registry_service.cc (right): https://codereview.chromium.org/590573002/diff/60001/extensions/browser/api/declarative/rules_registry_service.cc#newcode96 extensions/browser/api/declarative/rules_registry_service.cc:96: ExtensionsAPIClient::Get()->GetContentRulesRegistry( On 2014/09/23 15:04:50, Fady Samuel wrote: > ...
6 years, 3 months ago (2014-09-23 15:19:05 UTC) #12
Ken Rockot(use gerrit already)
Thanks for the rename, I think this looks great. lgtm! https://codereview.chromium.org/590573002/diff/80001/chrome/browser/extensions/api/declarative_content/chrome_content_rules_registry.h File chrome/browser/extensions/api/declarative_content/chrome_content_rules_registry.h (right): https://codereview.chromium.org/590573002/diff/80001/chrome/browser/extensions/api/declarative_content/chrome_content_rules_registry.h#newcode70 ...
6 years, 3 months ago (2014-09-23 16:13:41 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/590573002/100001
6 years, 3 months ago (2014-09-23 17:59:26 UTC) #15
commit-bot: I haz the power
Committed patchset #6 (id:100001) as 168e9057c22f41e97f81d0789fea8136c7d91201
6 years, 3 months ago (2014-09-23 21:34:05 UTC) #16
commit-bot: I haz the power
6 years, 3 months ago (2014-09-23 21:34:49 UTC) #17
Message was sent while issue was closed.
Patchset 6 (id:??) landed as
https://crrev.com/76c67583b565e93ba11f8c0337e696191d760009
Cr-Commit-Position: refs/heads/master@{#296255}

Powered by Google App Engine
This is Rietveld 408576698