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

Issue 10560013: Persist declarative rules to the extension state store. (Closed)

Created:
8 years, 6 months ago by Matt Perry
Modified:
8 years, 5 months ago
Reviewers:
battre
CC:
chromium-reviews, Aaron Boodman, mihaip-chromium-reviews_chromium.org
Visibility:
Public.

Description

Persist declarative rules to the extension state store. BUG=123366 TEST=no Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=142842

Patch Set 1 #

Patch Set 2 : comments #

Total comments: 28

Patch Set 3 : battrefied #

Patch Set 4 : oops #

Patch Set 5 : RegisterKey #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+422 lines, -22 lines) Patch
M chrome/browser/extensions/api/declarative/rules_registry_service.cc View 3 chunks +13 lines, -2 lines 0 comments Download
A chrome/browser/extensions/api/declarative/rules_registry_storage_delegate.h View 1 1 chunk +45 lines, -0 lines 0 comments Download
A chrome/browser/extensions/api/declarative/rules_registry_storage_delegate.cc View 1 2 3 4 1 chunk +247 lines, -0 lines 0 comments Download
M chrome/browser/extensions/api/declarative/rules_registry_with_cache.h View 1 2 3 chunks +36 lines, -1 line 0 comments Download
M chrome/browser/extensions/api/declarative/rules_registry_with_cache.cc View 1 2 5 chunks +27 lines, -1 line 0 comments Download
M chrome/browser/extensions/api/declarative/test_rules_registry.cc View 1 chunk +2 lines, -1 line 0 comments Download
M chrome/browser/extensions/api/declarative_webrequest/webrequest_rules_registry.h View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/extensions/api/declarative_webrequest/webrequest_rules_registry.cc View 1 chunk +3 lines, -1 line 0 comments Download
M chrome/browser/extensions/api/declarative_webrequest/webrequest_rules_registry_unittest.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/extensions/api/web_request/web_request_api.h View 3 chunks +5 lines, -1 line 0 comments Download
M chrome/browser/extensions/api/web_request/web_request_api.cc View 1 2 3 5 chunks +30 lines, -6 lines 1 comment Download
M chrome/browser/extensions/extension_system.cc View 2 chunks +10 lines, -7 lines 0 comments Download
M chrome/chrome_browser_extensions.gypi View 1 2 1 chunk +2 lines, -0 lines 0 comments Download

Messages

Total messages: 13 (0 generated)
Matt Perry
8 years, 6 months ago (2012-06-15 21:51:55 UTC) #1
Matt Perry
http://codereview.chromium.org/10560013/diff/7001/chrome/browser/extensions/api/declarative/rules_registry_storage_delegate.cc File chrome/browser/extensions/api/declarative/rules_registry_storage_delegate.cc (right): http://codereview.chromium.org/10560013/diff/7001/chrome/browser/extensions/api/declarative/rules_registry_storage_delegate.cc#newcode175 chrome/browser/extensions/api/declarative/rules_registry_storage_delegate.cc:175: ExtensionAPIPermission::kDeclarativeWebRequest)) { Is there a better way to check ...
8 years, 6 months ago (2012-06-15 21:54:41 UTC) #2
battre
LGTM if you are sure that the cases mentions are no race conditions. I think ...
8 years, 6 months ago (2012-06-15 22:56:49 UTC) #3
Matt Perry
http://codereview.chromium.org/10560013/diff/7001/chrome/browser/extensions/api/declarative/rules_registry_storage_delegate.cc File chrome/browser/extensions/api/declarative/rules_registry_storage_delegate.cc (right): http://codereview.chromium.org/10560013/diff/7001/chrome/browser/extensions/api/declarative/rules_registry_storage_delegate.cc#newcode25 chrome/browser/extensions/api/declarative/rules_registry_storage_delegate.cc:25: return scoped_ptr<base::Value>(list.release()); On 2012/06/15 22:56:49, battre wrote: > nit: ...
8 years, 6 months ago (2012-06-18 21:01:01 UTC) #4
battre
Great, LGTM
8 years, 6 months ago (2012-06-18 21:33:42 UTC) #5
battre
There is one more thing that came to my mind: We persist now all rules, ...
8 years, 6 months ago (2012-06-19 05:51:08 UTC) #6
Matt Perry
On 2012/06/19 05:51:08, battre wrote: > There is one more thing that came to my ...
8 years, 6 months ago (2012-06-19 18:35:59 UTC) #7
battre
On 2012/06/19 18:35:59, Matt Perry wrote: > On 2012/06/19 05:51:08, battre wrote: > > There ...
8 years, 6 months ago (2012-06-19 18:46:13 UTC) #8
Matt Perry
On 2012/06/19 18:46:13, battre wrote: > On 2012/06/19 18:35:59, Matt Perry wrote: > > On ...
8 years, 6 months ago (2012-06-19 18:48:12 UTC) #9
battre
On 2012/06/19 18:48:12, Matt Perry wrote: > On 2012/06/19 18:46:13, battre wrote: > > On ...
8 years, 6 months ago (2012-06-19 18:50:36 UTC) #10
Matt Perry
On 2012/06/19 18:50:36, battre wrote: > On 2012/06/19 18:48:12, Matt Perry wrote: > > On ...
8 years, 6 months ago (2012-06-19 18:53:37 UTC) #11
battre
On 2012/06/19 18:53:37, Matt Perry wrote: > On 2012/06/19 18:50:36, battre wrote: > > On ...
8 years, 6 months ago (2012-06-19 18:56:45 UTC) #12
battre
8 years, 5 months ago (2012-06-26 07:59:55 UTC) #13
http://codereview.chromium.org/10560013/diff/21003/chrome/browser/extensions/...
File chrome/browser/extensions/api/web_request/web_request_api.cc (right):

http://codereview.chromium.org/10560013/diff/21003/chrome/browser/extensions/...
chrome/browser/extensions/api/web_request/web_request_api.cc:1425:
request->identifier(), response));
I think this is actually incorrect. We need to decrement the block count but we
also need to process the declarative rules.

Powered by Google App Engine
This is Rietveld 408576698