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

Issue 2499493004: Communicate ExtensionSettings policy to renderers (Closed)

Created:
4 years, 1 month ago by nrpeter
Modified:
3 years, 8 months ago
CC:
chromium-reviews, chromium-apps-reviews_chromium.org, extensions-reviews_chromium.org
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Communicate ExtensionSettings policy to renderers -Communicate which hosts are runtime blocked to all renderers -Blocks host permissions for specific hosts by specific extensions -Tests via blocking content script injection -Introduces new test class for use with ExtensionSettings policy BUG=624649 Review-Url: https://codereview.chromium.org/2499493004 Cr-Commit-Position: refs/heads/master@{#464954} Committed: https://chromium.googlesource.com/chromium/src/+/c2f02148125c69bdce012802d9a467d725965a93

Patch Set 1 #

Total comments: 25

Patch Set 2 : URLPatternSets use shared memory for IPC. Default scope patterns sent once per renderer. #

Total comments: 21

Patch Set 3 : Add URLPattern effective TLD whitelisting, Switched IPC to UpdatePermissions, Removed shared memor… #

Total comments: 34

Patch Set 4 : Fixed static non-pod, removed default params, fixed formatting, fixed nits, simplified code #

Total comments: 26

Patch Set 5 : Style fixes, prevent heap leak. #

Total comments: 52

Patch Set 6 : Fix effective TLD wildcard bug, move to Leaky LazyInstance in PermissionsData, removed unnecessary … #

Total comments: 50

Patch Set 7 : -Added includes, Seperated setting usage of default policy in PermissionsData, spelling fixes #

Total comments: 6

Patch Set 8 : -Send notification of extension permission changes due to policy, only send individual policy when … #

Patch Set 9 : -Forgot to remove comments #

Total comments: 18

Patch Set 10 : -Removed old includes, added lock check to SetUsesDefaultHostRestrictions #

Total comments: 22

Patch Set 11 : -Updating host policy calls function to use default or send override data. Fixes bug sending notifi… #

Patch Set 12 : -Make if statments positive, cl format #

Patch Set 13 : -Forgot to update copyright date #

Total comments: 2

Patch Set 14 : -Added unit tests for PermissionsUpdater and PermissionsData, Removed unnecessary lock assertion, p… #

Total comments: 63

Patch Set 15 : -Updated unit tests, fixed nits, moved IsRuntimeBlockedHost for safety #

Total comments: 7

Patch Set 16 : Change to a debug check, change function name to reduce confusion. #

Patch Set 17 : Removed unnecessary optional_permissions #

Patch Set 18 : -fix unittest, manual merge, fix to apease windows compiler #

Total comments: 6

Patch Set 19 : nits #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+1014 lines, -101 lines) Patch
M chrome/browser/extensions/api/permissions/permissions_apitest.cc View 2 chunks +1 line, -15 lines 0 comments Download
M chrome/browser/extensions/content_script_apitest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 2 chunks +14 lines, -0 lines 0 comments Download
M chrome/browser/extensions/extension_management.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 1 chunk +20 lines, -2 lines 0 comments Download
M chrome/browser/extensions/extension_management.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 2 chunks +17 lines, -2 lines 0 comments Download
M chrome/browser/extensions/extension_management_constants.h View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/extensions/extension_management_constants.cc View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/extensions/extension_management_internal.cc View 1 2 3 4 2 chunks +10 lines, -1 line 0 comments Download
M chrome/browser/extensions/extension_service.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 1 chunk +15 lines, -0 lines 0 comments Download
A chrome/browser/extensions/extension_with_management_policy_apitest.h View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +29 lines, -0 lines 0 comments Download
A chrome/browser/extensions/extension_with_management_policy_apitest.cc View 1 2 3 4 5 6 7 8 1 chunk +21 lines, -0 lines 0 comments Download
M chrome/browser/extensions/permissions_updater.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 4 chunks +25 lines, -0 lines 0 comments Download
M chrome/browser/extensions/permissions_updater.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 4 chunks +79 lines, -9 lines 0 comments Download
M chrome/browser/extensions/permissions_updater_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 3 chunks +107 lines, -0 lines 0 comments Download
M chrome/common/extensions/permissions/permissions_data_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 12 chunks +197 lines, -26 lines 0 comments Download
M chrome/test/BUILD.gn View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 1 chunk +2 lines, -0 lines 0 comments Download
A chrome/test/data/extensions/api_test/content_scripts/policy/background.js View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +53 lines, -0 lines 0 comments Download
A chrome/test/data/extensions/api_test/content_scripts/policy/manifest.json View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 1 chunk +7 lines, -0 lines 0 comments Download
M extensions/browser/renderer_startup_helper.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 2 chunks +10 lines, -0 lines 0 comments Download
M extensions/common/constants.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 1 chunk +3 lines, -0 lines 0 comments Download
M extensions/common/constants.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 1 chunk +4 lines, -0 lines 0 comments Download
M extensions/common/extension.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 1 chunk +1 line, -0 lines 0 comments Download
M extensions/common/extension_messages.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 4 chunks +24 lines, -0 lines 2 comments Download
M extensions/common/extension_messages.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 8 chunks +34 lines, -4 lines 0 comments Download
M extensions/common/permissions/permissions_data.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 5 chunks +81 lines, -0 lines 0 comments Download
M extensions/common/permissions/permissions_data.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 7 chunks +89 lines, -4 lines 0 comments Download
M extensions/common/url_pattern.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 4 chunks +24 lines, -1 line 0 comments Download
M extensions/common/url_pattern.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 7 chunks +39 lines, -2 lines 0 comments Download
M extensions/common/url_pattern_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 17 chunks +81 lines, -33 lines 0 comments Download
M extensions/renderer/dispatcher.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 2 chunks +3 lines, -0 lines 0 comments Download
M extensions/renderer/dispatcher.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 5 chunks +22 lines, -2 lines 0 comments Download

Messages

Total messages: 128 (66 generated)
NickP
4 years, 1 month ago (2016-11-11 23:06:56 UTC) #10
NickP
4 years, 1 month ago (2016-11-15 18:01:24 UTC) #11
asargent_no_longer_on_chrome
The biggest concern here is the one about the size of the lists and IPC ...
4 years, 1 month ago (2016-11-23 01:19:23 UTC) #13
Devlin
https://codereview.chromium.org/2499493004/diff/1/extensions/common/manifest_constants.cc File extensions/common/manifest_constants.cc (right): https://codereview.chromium.org/2499493004/diff/1/extensions/common/manifest_constants.cc#newcode291 extensions/common/manifest_constants.cc:291: "This page cannot be scripted due to an ExtensionsSettings ...
4 years ago (2016-11-23 17:22:56 UTC) #14
zmin
https://codereview.chromium.org/2499493004/diff/20001/chrome/browser/extensions/extension_service.cc File chrome/browser/extensions/extension_service.cc (right): https://codereview.chromium.org/2499493004/diff/20001/chrome/browser/extensions/extension_service.cc#newcode1490 chrome/browser/extensions/extension_service.cc:1490: CHECK(settings); Do we have to use CHECK() here? What ...
4 years ago (2016-12-22 22:15:39 UTC) #16
nrpeter
https://codereview.chromium.org/2499493004/diff/1/chrome/browser/extensions/content_script_apitest.cc File chrome/browser/extensions/content_script_apitest.cc (right): https://codereview.chromium.org/2499493004/diff/1/chrome/browser/extensions/content_script_apitest.cc#newcode337 chrome/browser/extensions/content_script_apitest.cc:337: ::switches::kAppsGalleryURL, On 2016/11/23 01:19:23, Antony Sargent wrote: > why ...
3 years, 11 months ago (2017-01-02 19:57:46 UTC) #17
asargent_no_longer_on_chrome
I've just transferred to another team, so I'm going to remove myself as reviewer and ...
3 years, 11 months ago (2017-01-03 17:51:36 UTC) #19
zmin
https://codereview.chromium.org/2499493004/diff/20001/chrome/browser/extensions/extension_service.cc File chrome/browser/extensions/extension_service.cc (right): https://codereview.chromium.org/2499493004/diff/20001/chrome/browser/extensions/extension_service.cc#newcode1490 chrome/browser/extensions/extension_service.cc:1490: CHECK(settings); On 2017/01/02 19:57:45, nrpeter wrote: > On 2016/12/22 ...
3 years, 11 months ago (2017-01-03 19:42:16 UTC) #21
dcheng
I haven't reviewed completely, but is it necessary to use shared memory for this? https://codereview.chromium.org/2499493004/diff/20001/extensions/common/extension_messages.cc ...
3 years, 11 months ago (2017-01-04 19:38:17 UTC) #22
nrpeter
My first implementation didn't use shared memory and asargent@ suggested I re-write to use shared ...
3 years, 11 months ago (2017-01-04 20:42:37 UTC) #23
dcheng
On 2017/01/04 20:42:37, nrpeter wrote: > My first implementation didn't use shared memory and asargent@ ...
3 years, 11 months ago (2017-01-05 06:39:16 UTC) #24
nrpeter
On 2017/01/05 06:39:16, dcheng wrote: > On 2017/01/04 20:42:37, nrpeter wrote: > > My first ...
3 years, 11 months ago (2017-01-05 18:56:33 UTC) #25
nrpeter
3 years, 11 months ago (2017-01-05 18:56:41 UTC) #26
nrpeter
On 2017/01/05 18:56:33, nrpeter wrote: > On 2017/01/05 06:39:16, dcheng wrote: > > On 2017/01/04 ...
3 years, 11 months ago (2017-01-06 21:47:36 UTC) #27
Devlin
On 2017/01/06 21:47:36, nrpeter wrote: > On 2017/01/05 18:56:33, nrpeter wrote: > > On 2017/01/05 ...
3 years, 11 months ago (2017-01-09 23:28:16 UTC) #28
Devlin
This is a little complicated for what it's doing - I'm wondering if we can ...
3 years, 11 months ago (2017-01-09 23:30:57 UTC) #29
nrpeter
On 2017/01/09 23:28:16, Devlin wrote: > On 2017/01/06 21:47:36, nrpeter wrote: > > On 2017/01/05 ...
3 years, 11 months ago (2017-01-10 17:32:24 UTC) #30
nrpeter
I'm a fan of simplification as well, I'm going to be in town tomorrow for ...
3 years, 11 months ago (2017-01-10 17:48:05 UTC) #31
nrpeter
I'm a fan of simplification as well, I'm going to be in town tomorrow for ...
3 years, 11 months ago (2017-01-10 17:48:07 UTC) #32
Devlin
On 2017/01/10 17:48:07, nrpeter wrote: > I'm a fan of simplification as well, I'm going ...
3 years, 11 months ago (2017-01-11 15:46:39 UTC) #33
Devlin
On 2017/01/11 15:46:39, Devlin wrote: > On 2017/01/10 17:48:07, nrpeter wrote: > > I'm a ...
3 years, 11 months ago (2017-01-12 21:52:39 UTC) #34
nrpeter
https://codereview.chromium.org/2499493004/diff/20001/chrome/browser/extensions/extension_service.cc File chrome/browser/extensions/extension_service.cc (right): https://codereview.chromium.org/2499493004/diff/20001/chrome/browser/extensions/extension_service.cc#newcode1490 chrome/browser/extensions/extension_service.cc:1490: CHECK(settings); On 2017/01/09 23:30:57, Devlin wrote: > On 2017/01/03 ...
3 years, 11 months ago (2017-01-19 01:50:45 UTC) #35
Devlin
https://codereview.chromium.org/2499493004/diff/40001/chrome/browser/extensions/extension_management_constants.cc File chrome/browser/extensions/extension_management_constants.cc (right): https://codereview.chromium.org/2499493004/diff/40001/chrome/browser/extensions/extension_management_constants.cc#newcode25 chrome/browser/extensions/extension_management_constants.cc:25: const size_t kMaxItemsURLPatternSet = 500; Didn't we decide on ...
3 years, 11 months ago (2017-01-26 22:47:40 UTC) #36
nrpeter
https://codereview.chromium.org/2499493004/diff/40001/chrome/browser/extensions/extension_management_constants.cc File chrome/browser/extensions/extension_management_constants.cc (right): https://codereview.chromium.org/2499493004/diff/40001/chrome/browser/extensions/extension_management_constants.cc#newcode25 chrome/browser/extensions/extension_management_constants.cc:25: const size_t kMaxItemsURLPatternSet = 500; On 2017/01/26 22:47:39, Devlin ...
3 years, 10 months ago (2017-02-03 19:32:25 UTC) #37
dcheng
https://codereview.chromium.org/2499493004/diff/60001/chrome/browser/extensions/extension_management.cc File chrome/browser/extensions/extension_management.cc (right): https://codereview.chromium.org/2499493004/diff/60001/chrome/browser/extensions/extension_management.cc#newcode241 chrome/browser/extensions/extension_management.cc:241: const Extension* extension) const { Pass by const reference ...
3 years, 10 months ago (2017-02-06 07:05:29 UTC) #38
nrpeter
https://codereview.chromium.org/2499493004/diff/60001/chrome/browser/extensions/extension_management.cc File chrome/browser/extensions/extension_management.cc (right): https://codereview.chromium.org/2499493004/diff/60001/chrome/browser/extensions/extension_management.cc#newcode241 chrome/browser/extensions/extension_management.cc:241: const Extension* extension) const { On 2017/02/06 07:05:29, dcheng ...
3 years, 10 months ago (2017-02-06 22:53:16 UTC) #39
dcheng
https://codereview.chromium.org/2499493004/diff/60001/chrome/browser/extensions/extension_management.cc File chrome/browser/extensions/extension_management.cc (right): https://codereview.chromium.org/2499493004/diff/60001/chrome/browser/extensions/extension_management.cc#newcode241 chrome/browser/extensions/extension_management.cc:241: const Extension* extension) const { On 2017/02/06 22:53:15, nrpeter ...
3 years, 10 months ago (2017-02-07 07:47:12 UTC) #40
Devlin
https://codereview.chromium.org/2499493004/diff/80001/chrome/browser/extensions/content_script_apitest.cc File chrome/browser/extensions/content_script_apitest.cc (right): https://codereview.chromium.org/2499493004/diff/80001/chrome/browser/extensions/content_script_apitest.cc#newcode680 chrome/browser/extensions/content_script_apitest.cc:680: // Test that optional permissions blocked by enterprise policy ...
3 years, 10 months ago (2017-02-14 23:17:11 UTC) #42
nrpeter
https://codereview.chromium.org/2499493004/diff/60001/extensions/common/permissions/permissions_data.cc File extensions/common/permissions/permissions_data.cc (right): https://codereview.chromium.org/2499493004/diff/60001/extensions/common/permissions/permissions_data.cc#newcode200 extensions/common/permissions/permissions_data.cc:200: new URLPatternSet(default_runtime_blocked_hosts); On 2017/02/07 07:47:12, dcheng wrote: > On ...
3 years, 9 months ago (2017-03-22 23:47:40 UTC) #43
Devlin
https://codereview.chromium.org/2499493004/diff/80001/chrome/browser/extensions/permissions_updater.cc File chrome/browser/extensions/permissions_updater.cc (right): https://codereview.chromium.org/2499493004/diff/80001/chrome/browser/extensions/permissions_updater.cc#newcode302 chrome/browser/extensions/permissions_updater.cc:302: content::NotificationService::current()->Notify( On 2017/03/22 23:47:39, nrpeter wrote: > On 2017/02/14 ...
3 years, 8 months ago (2017-03-29 21:36:50 UTC) #44
nrpeter
https://codereview.chromium.org/2499493004/diff/80001/chrome/browser/extensions/permissions_updater.cc File chrome/browser/extensions/permissions_updater.cc (right): https://codereview.chromium.org/2499493004/diff/80001/chrome/browser/extensions/permissions_updater.cc#newcode302 chrome/browser/extensions/permissions_updater.cc:302: content::NotificationService::current()->Notify( On 2017/03/29 21:36:49, Devlin wrote: > On 2017/03/22 ...
3 years, 8 months ago (2017-03-30 00:06:06 UTC) #45
Devlin
(just responding, will take another look tomorrow) https://codereview.chromium.org/2499493004/diff/80001/chrome/browser/extensions/permissions_updater.cc File chrome/browser/extensions/permissions_updater.cc (right): https://codereview.chromium.org/2499493004/diff/80001/chrome/browser/extensions/permissions_updater.cc#newcode302 chrome/browser/extensions/permissions_updater.cc:302: content::NotificationService::current()->Notify( On ...
3 years, 8 months ago (2017-03-30 00:33:53 UTC) #46
Devlin
It'd also be good to add a few simple unittests to permissions data and permissions ...
3 years, 8 months ago (2017-03-30 21:07:27 UTC) #47
nrpeter
https://codereview.chromium.org/2499493004/diff/80001/chrome/browser/extensions/permissions_updater.cc File chrome/browser/extensions/permissions_updater.cc (right): https://codereview.chromium.org/2499493004/diff/80001/chrome/browser/extensions/permissions_updater.cc#newcode302 chrome/browser/extensions/permissions_updater.cc:302: content::NotificationService::current()->Notify( On 2017/03/30 00:33:52, Devlin wrote: > On 2017/03/30 ...
3 years, 8 months ago (2017-03-31 21:43:35 UTC) #48
dcheng
ipc lg but a few questions that I had when I was trying to understand ...
3 years, 8 months ago (2017-03-31 23:48:06 UTC) #49
nrpeter
https://codereview.chromium.org/2499493004/diff/160001/chrome/browser/extensions/content_script_apitest.cc File chrome/browser/extensions/content_script_apitest.cc (right): https://codereview.chromium.org/2499493004/diff/160001/chrome/browser/extensions/content_script_apitest.cc#newcode28 chrome/browser/extensions/content_script_apitest.cc:28: #include "components/policy/core/common/mock_configuration_policy_provider.h" On 2017/03/31 23:48:05, dcheng wrote: > Ditto ...
3 years, 8 months ago (2017-04-01 00:19:02 UTC) #50
dcheng
https://codereview.chromium.org/2499493004/diff/160001/chrome/browser/extensions/permissions_updater.cc File chrome/browser/extensions/permissions_updater.cc (right): https://codereview.chromium.org/2499493004/diff/160001/chrome/browser/extensions/permissions_updater.cc#newcode325 chrome/browser/extensions/permissions_updater.cc:325: extension->permissions_data()->policy_allowed_hosts(); On 2017/04/01 00:19:02, nrpeter wrote: > On 2017/03/31 ...
3 years, 8 months ago (2017-04-01 00:24:07 UTC) #51
nrpeter
https://codereview.chromium.org/2499493004/diff/160001/chrome/browser/extensions/permissions_updater.h File chrome/browser/extensions/permissions_updater.h (right): https://codereview.chromium.org/2499493004/diff/160001/chrome/browser/extensions/permissions_updater.h#newcode81 chrome/browser/extensions/permissions_updater.h:81: bool uses_default_restrictions); On 2017/03/31 23:48:06, dcheng wrote: > Out ...
3 years, 8 months ago (2017-04-01 00:28:28 UTC) #52
dcheng
On 2017/04/01 00:28:28, nrpeter wrote: > https://codereview.chromium.org/2499493004/diff/160001/chrome/browser/extensions/permissions_updater.h > File chrome/browser/extensions/permissions_updater.h (right): > > https://codereview.chromium.org/2499493004/diff/160001/chrome/browser/extensions/permissions_updater.h#newcode81 > ...
3 years, 8 months ago (2017-04-01 00:30:55 UTC) #53
Devlin
https://codereview.chromium.org/2499493004/diff/180001/chrome/browser/extensions/content_script_apitest.cc File chrome/browser/extensions/content_script_apitest.cc (left): https://codereview.chromium.org/2499493004/diff/180001/chrome/browser/extensions/content_script_apitest.cc#oldcode473 chrome/browser/extensions/content_script_apitest.cc:473: extensions::PermissionsRequestFunction::SetAutoConfirmForTests(true); This will break this test... https://codereview.chromium.org/2499493004/diff/180001/chrome/browser/extensions/extension_service.cc File chrome/browser/extensions/extension_service.cc ...
3 years, 8 months ago (2017-04-03 15:52:23 UTC) #54
Devlin
https://codereview.chromium.org/2499493004/diff/100001/chrome/browser/extensions/extension_with_management_policy_apitest.cc File chrome/browser/extensions/extension_with_management_policy_apitest.cc (right): https://codereview.chromium.org/2499493004/diff/100001/chrome/browser/extensions/extension_with_management_policy_apitest.cc#newcode14 chrome/browser/extensions/extension_with_management_policy_apitest.cc:14: void ExtensionApiTestWithManagementPolicy::SetUpInProcessBrowserTestFixture() { On 2017/03/31 21:43:35, nrpeter wrote: > ...
3 years, 8 months ago (2017-04-03 15:58:21 UTC) #55
nrpeter
On 2017/04/03 15:58:21, Devlin wrote: > https://codereview.chromium.org/2499493004/diff/100001/chrome/browser/extensions/extension_with_management_policy_apitest.cc > File chrome/browser/extensions/extension_with_management_policy_apitest.cc > (right): > > https://codereview.chromium.org/2499493004/diff/100001/chrome/browser/extensions/extension_with_management_policy_apitest.cc#newcode14 ...
3 years, 8 months ago (2017-04-03 21:42:28 UTC) #56
nrpeter
On 2017/04/01 00:24:07, dcheng wrote: > https://codereview.chromium.org/2499493004/diff/160001/chrome/browser/extensions/permissions_updater.cc > File chrome/browser/extensions/permissions_updater.cc (right): > > https://codereview.chromium.org/2499493004/diff/160001/chrome/browser/extensions/permissions_updater.cc#newcode325 > ...
3 years, 8 months ago (2017-04-03 22:01:47 UTC) #57
nrpeter
https://codereview.chromium.org/2499493004/diff/100001/chrome/browser/extensions/extension_with_management_policy_apitest.cc File chrome/browser/extensions/extension_with_management_policy_apitest.cc (right): https://codereview.chromium.org/2499493004/diff/100001/chrome/browser/extensions/extension_with_management_policy_apitest.cc#newcode14 chrome/browser/extensions/extension_with_management_policy_apitest.cc:14: void ExtensionApiTestWithManagementPolicy::SetUpInProcessBrowserTestFixture() { On 2017/04/03 15:58:21, Devlin wrote: > ...
3 years, 8 months ago (2017-04-03 22:35:49 UTC) #58
Devlin
Hey Nick, I made it part way through another round of reviews here, but it ...
3 years, 8 months ago (2017-04-04 16:29:11 UTC) #59
nrpeter
Wasn't sure where to put the error message, so I put it in constants. If ...
3 years, 8 months ago (2017-04-05 23:13:27 UTC) #60
Devlin
Nice! A bunch of nits, but most of these are pretty easy to resolve. Thanks ...
3 years, 8 months ago (2017-04-07 00:40:28 UTC) #61
dcheng
the ipc bits largely look fine. one comment wrt thread-safety and making it more obvious ...
3 years, 8 months ago (2017-04-07 06:57:20 UTC) #62
nrpeter
https://codereview.chromium.org/2499493004/diff/160001/extensions/common/permissions/permissions_data.cc File extensions/common/permissions/permissions_data.cc (right): https://codereview.chromium.org/2499493004/diff/160001/extensions/common/permissions/permissions_data.cc#newcode190 extensions/common/permissions/permissions_data.cc:190: policy_blocked_hosts_unsafe_ = runtime_blocked_hosts; On 2017/04/07 06:57:19, dcheng wrote: > ...
3 years, 8 months ago (2017-04-12 23:35:45 UTC) #63
dcheng
IPC still lgtm (and thanks for adding the locking assertions) https://codereview.chromium.org/2499493004/diff/280001/chrome/browser/extensions/permissions_updater.cc File chrome/browser/extensions/permissions_updater.cc (right): https://codereview.chromium.org/2499493004/diff/280001/chrome/browser/extensions/permissions_updater.cc#newcode297 ...
3 years, 8 months ago (2017-04-13 22:07:41 UTC) #64
Devlin
I think this is good. Can you do a dry-run through the CQ and see ...
3 years, 8 months ago (2017-04-13 22:56:27 UTC) #65
nrpeter
https://codereview.chromium.org/2499493004/diff/280001/chrome/browser/extensions/permissions_updater.cc File chrome/browser/extensions/permissions_updater.cc (right): https://codereview.chromium.org/2499493004/diff/280001/chrome/browser/extensions/permissions_updater.cc#newcode297 chrome/browser/extensions/permissions_updater.cc:297: CHECK_EQ(POLICY, event_type); On 2017/04/13 22:07:40, dcheng wrote: > Unrelated ...
3 years, 8 months ago (2017-04-13 23:05:31 UTC) #66
nrpeter
All tests pass on CQ dry run. Are we good for LGTM?
3 years, 8 months ago (2017-04-14 23:40:40 UTC) #111
Devlin
lgtm https://codereview.chromium.org/2499493004/diff/480001/chrome/browser/extensions/permissions_updater.cc File chrome/browser/extensions/permissions_updater.cc (left): https://codereview.chromium.org/2499493004/diff/480001/chrome/browser/extensions/permissions_updater.cc#oldcode259 chrome/browser/extensions/permissions_updater.cc:259: DCHECK_EQ(0, init_flag_ & INIT_FLAG_TRANSIENT); this shouldn't change. https://codereview.chromium.org/2499493004/diff/480001/chrome/browser/extensions/permissions_updater.cc ...
3 years, 8 months ago (2017-04-17 16:29:38 UTC) #112
Devlin
One other thing: your commit message is the description of the CL, so be sure ...
3 years, 8 months ago (2017-04-17 16:30:51 UTC) #113
nrpeter
https://codereview.chromium.org/2499493004/diff/480001/chrome/browser/extensions/permissions_updater.cc File chrome/browser/extensions/permissions_updater.cc (left): https://codereview.chromium.org/2499493004/diff/480001/chrome/browser/extensions/permissions_updater.cc#oldcode259 chrome/browser/extensions/permissions_updater.cc:259: DCHECK_EQ(0, init_flag_ & INIT_FLAG_TRANSIENT); On 2017/04/17 16:29:38, Devlin wrote: ...
3 years, 8 months ago (2017-04-17 17:17:59 UTC) #118
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/2499493004/500001
3 years, 8 months ago (2017-04-17 17:18:14 UTC) #119
commit-bot: I haz the power
Committed patchset #19 (id:500001) as https://chromium.googlesource.com/chromium/src/+/c2f02148125c69bdce012802d9a467d725965a93
3 years, 8 months ago (2017-04-17 18:25:23 UTC) #122
vabr (Chromium)
https://codereview.chromium.org/2499493004/diff/500001/extensions/common/extension_messages.h File extensions/common/extension_messages.h (right): https://codereview.chromium.org/2499493004/diff/500001/extensions/common/extension_messages.h#newcode298 extensions/common/extension_messages.h:298: bool uses_default_policy_host_restrictions; Do the POD fields like uses_default_policy_host_restrictions and ...
3 years, 8 months ago (2017-04-18 14:17:48 UTC) #124
vabr (Chromium)
A revert of this CL (patchset #19 id:500001) has been created in https://codereview.chromium.org/2820333003/ by vabr@chromium.org. ...
3 years, 8 months ago (2017-04-18 14:25:08 UTC) #125
nrpeter
https://codereview.chromium.org/2499493004/diff/500001/extensions/common/extension_messages.h File extensions/common/extension_messages.h (right): https://codereview.chromium.org/2499493004/diff/500001/extensions/common/extension_messages.h#newcode298 extensions/common/extension_messages.h:298: bool uses_default_policy_host_restrictions; On 2017/04/18 14:17:48, vabr (Chromium) wrote: > ...
3 years, 8 months ago (2017-04-18 15:30:40 UTC) #126
Devlin
3 years, 8 months ago (2017-04-18 15:34:34 UTC) #127
Message was sent while issue was closed.
On 2017/04/18 15:30:40, nrpeter wrote:
>
https://codereview.chromium.org/2499493004/diff/500001/extensions/common/exte...
> File extensions/common/extension_messages.h (right):
> 
>
https://codereview.chromium.org/2499493004/diff/500001/extensions/common/exte...
> extensions/common/extension_messages.h:298: bool
> uses_default_policy_host_restrictions;
> On 2017/04/18 14:17:48, vabr (Chromium) wrote:
> > Do the POD fields like uses_default_policy_host_restrictions and
> > uses_default_policy_blocked_allowed_hosts below need an initial value,
either
> > here or in all constructors?
> > 
> > Is that what MSan is complaining about in https://crbug.com/712641
> 
> I think msan is complaining about the policy_blocked_hosts and
> policy_allowed_hosts. I only initialize those when
> use_default_policy_host_restrictions is true. On the receiving end, we also
look
> at the boolean to see whether we will use the URLPatternSets. The issue is
that
> policy_blocked_hosts and policy_allowed_hosts get written to the message
> regardless.
> 
> I'll either have to conditionally write them to the message (yuck) or send
empty
> URLPatternSet objects (wasteful). Maybe Devlin has another idea about how to
do
> this efficiently.

To me, it looks like it's complaining about the
uses_default_policy_blocked_allowed_hosts, which is only set in one constructor.
It needs to be set in all (or initialized to a default value in the struct
definition).

Powered by Google App Engine
This is Rietveld 408576698