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

Issue 7003098: Start refractoring extension permissions into ExtensionPermissionSet. (Closed)

Created:
9 years, 6 months ago by jstritar
Modified:
9 years, 6 months ago
CC:
chromium-reviews, Erik does not do reviews, Paweł Hajdan Jr., kkania, Aaron Boodman, darin-cc_chromium.org, brettw-cc_chromium.org
Visibility:
Public.

Description

Start refractoring extension permissions into ExtensionPermissionSet. BUG=84507 TEST=*Extension* Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=90244

Patch Set 1 #

Patch Set 2 : fix a bad merge #

Total comments: 5

Patch Set 3 : Use enums rather than const refs + other cleanup #

Patch Set 4 : Cleanup and update ExtensionPermissionSet data model. #

Total comments: 72

Patch Set 5 : Address Matt's feedback. #

Patch Set 6 : Rebase + small cleanup #

Total comments: 2

Patch Set 7 : Fix ui_tests. Make sure explicit hosts have paths set to /*. #

Patch Set 8 : Remove comment that no longer applies. #

Patch Set 9 : Fixing a couple tests.. #

Patch Set 10 : Fix a couple errors on Windows. #

Patch Set 11 : See if rebasing fixes the tests... #

Unified diffs Side-by-side diffs Delta from patch set Stats (+2722 lines, -1531 lines) Patch
M chrome/browser/automation/automation_provider.cc View 1 2 3 4 5 6 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/browser/automation/testing_automation_provider.cc View 1 2 3 4 5 6 7 8 9 10 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/browser/background/background_application_list_model.cc View 1 2 3 4 2 chunks +1 line, -6 lines 0 comments Download
M chrome/browser/chrome_content_browser_client.cc View 1 2 3 4 5 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/browser/extensions/convert_web_app_browsertest.cc View 1 2 3 4 1 chunk +5 lines, -5 lines 0 comments Download
M chrome/browser/extensions/convert_web_app_unittest.cc View 1 2 3 4 2 chunks +4 lines, -4 lines 0 comments Download
M chrome/browser/extensions/crx_installer.cc View 1 2 3 4 1 chunk +7 lines, -0 lines 0 comments Download
M chrome/browser/extensions/extension_function_dispatcher.cc View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/extensions/extension_info_map_unittest.cc View 1 2 3 4 1 chunk +5 lines, -5 lines 0 comments Download
M chrome/browser/extensions/extension_management_api.cc View 1 2 3 2 chunks +4 lines, -2 lines 0 comments Download
M chrome/browser/extensions/extension_management_browsertest.cc View 1 2 3 4 2 chunks +14 lines, -1 line 0 comments Download
M chrome/browser/extensions/extension_preference_api.cc View 1 2 3 4 11 chunks +24 lines, -21 lines 0 comments Download
M chrome/browser/extensions/extension_prefs.h View 1 2 3 3 chunks +25 lines, -31 lines 0 comments Download
M chrome/browser/extensions/extension_prefs.cc View 1 2 3 4 5 6 7 8 7 chunks +141 lines, -80 lines 0 comments Download
M chrome/browser/extensions/extension_prefs_unittest.cc View 1 2 3 4 3 chunks +115 lines, -79 lines 0 comments Download
M chrome/browser/extensions/extension_service.cc View 1 2 3 4 6 chunks +15 lines, -29 lines 0 comments Download
M chrome/browser/extensions/extension_service_unittest.cc View 1 2 3 4 5 6 7 8 9 13 chunks +62 lines, -97 lines 0 comments Download
M chrome/browser/extensions/extension_special_storage_policy.cc View 1 2 3 4 2 chunks +12 lines, -8 lines 0 comments Download
M chrome/browser/extensions/extension_tabs_module.cc View 1 2 3 4 1 chunk +2 lines, -2 lines 0 comments Download
M chrome/browser/geolocation/chrome_geolocation_permission_context.cc View 1 2 3 4 5 6 7 8 9 10 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/profiles/profile.cc View 1 2 3 4 1 chunk +2 lines, -1 line 0 comments Download
M chrome/browser/profiles/profile_impl.cc View 1 2 3 4 5 6 7 8 9 10 2 chunks +3 lines, -1 line 0 comments Download
M chrome/browser/renderer_host/chrome_render_message_filter.cc View 1 2 3 4 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/chrome_common.gypi View 1 2 3 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/chrome_tests.gypi View 1 2 3 4 5 6 7 8 9 10 1 chunk +1 line, -0 lines 0 comments Download
M chrome/common/extensions/extension.h View 1 2 3 4 5 6 7 8 9 10 11 chunks +12 lines, -198 lines 0 comments Download
M chrome/common/extensions/extension.cc View 1 2 3 4 5 6 7 8 9 10 22 chunks +55 lines, -543 lines 0 comments Download
M chrome/common/extensions/extension_manifests_unittest.cc View 1 2 3 4 2 chunks +9 lines, -5 lines 0 comments Download
A chrome/common/extensions/extension_permission_set.h View 1 2 3 4 5 6 7 1 chunk +389 lines, -0 lines 0 comments Download
A chrome/common/extensions/extension_permission_set.cc View 1 2 3 4 5 6 7 8 1 chunk +778 lines, -0 lines 0 comments Download
A chrome/common/extensions/extension_permission_set_unittest.cc View 1 2 3 4 5 6 7 8 9 1 chunk +941 lines, -0 lines 0 comments Download
M chrome/common/extensions/extension_unittest.cc View 1 2 3 4 5 chunks +5 lines, -402 lines 0 comments Download
M chrome/common/extensions/url_pattern_set.h View 1 2 3 4 5 1 chunk +6 lines, -0 lines 0 comments Download
M chrome/common/extensions/url_pattern_set.cc View 1 2 3 4 1 chunk +16 lines, -0 lines 0 comments Download
M chrome/common/extensions/url_pattern_set_unittest.cc View 1 2 3 4 2 chunks +53 lines, -0 lines 0 comments Download
M chrome/renderer/extensions/bindings_utils.cc View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M chrome/renderer/extensions/extension_dispatcher.cc View 1 2 3 4 5 2 chunks +3 lines, -2 lines 0 comments Download

Messages

Total messages: 13 (0 generated)
jstritar
I've started to refractor extension permissions into their own set, to make it easy to ...
9 years, 6 months ago (2011-06-09 21:12:57 UTC) #1
Matt Perry
I can take a look.
9 years, 6 months ago (2011-06-09 21:35:14 UTC) #2
Matt Perry
http://codereview.chromium.org/7003098/diff/2001/chrome/browser/extensions/extension_preference_api.cc File chrome/browser/extensions/extension_preference_api.cc (right): http://codereview.chromium.org/7003098/diff/2001/chrome/browser/extensions/extension_preference_api.cc#newcode50 chrome/browser/extensions/extension_preference_api.cc:50: ExtensionAPIPermission::ContentSettings() this is against the style guide (only POD ...
9 years, 6 months ago (2011-06-09 22:28:42 UTC) #3
jstritar
On 2011/06/09 22:28:42, Matt Perry wrote: > http://codereview.chromium.org/7003098/diff/2001/chrome/browser/extensions/extension_preference_api.cc > File chrome/browser/extensions/extension_preference_api.cc (right): > > http://codereview.chromium.org/7003098/diff/2001/chrome/browser/extensions/extension_preference_api.cc#newcode50 ...
9 years, 6 months ago (2011-06-09 23:00:20 UTC) #4
Matt Perry
On 2011/06/09 23:00:20, jstritar wrote: > On 2011/06/09 22:28:42, Matt Perry wrote: > > > ...
9 years, 6 months ago (2011-06-09 23:15:48 UTC) #5
jstritar
On 2011/06/09 23:15:48, Matt Perry wrote: > On 2011/06/09 23:00:20, jstritar wrote: > > On ...
9 years, 6 months ago (2011-06-13 19:17:35 UTC) #6
jstritar
I uploaded new code that uses enums instead of the const refs on Wed.... definitely ...
9 years, 6 months ago (2011-06-17 21:39:51 UTC) #7
jstritar
I think this is ready for another round. I made a pretty big change to ...
9 years, 6 months ago (2011-06-20 22:52:51 UTC) #8
Matt Perry
http://codereview.chromium.org/7003098/diff/15001/chrome/browser/extensions/extension_prefs.cc File chrome/browser/extensions/extension_prefs.cc (right): http://codereview.chromium.org/7003098/diff/15001/chrome/browser/extensions/extension_prefs.cc#newcode102 chrome/browser/extensions/extension_prefs.cc:102: // We explicity keep track of these so that ...
9 years, 6 months ago (2011-06-21 00:43:10 UTC) #9
jstritar
http://codereview.chromium.org/7003098/diff/15001/chrome/browser/extensions/extension_prefs.cc File chrome/browser/extensions/extension_prefs.cc (right): http://codereview.chromium.org/7003098/diff/15001/chrome/browser/extensions/extension_prefs.cc#newcode102 chrome/browser/extensions/extension_prefs.cc:102: // We explicity keep track of these so that ...
9 years, 6 months ago (2011-06-21 23:12:16 UTC) #10
Matt Perry
LGTM http://codereview.chromium.org/7003098/diff/15001/chrome/common/extensions/extension_permission_set.h File chrome/common/extensions/extension_permission_set.h (right): http://codereview.chromium.org/7003098/diff/15001/chrome/common/extensions/extension_permission_set.h#newcode339 chrome/common/extensions/extension_permission_set.h:339: bool HasExplicitAccessToOrigin(const GURL& origin) const; On 2011/06/21 23:12:16, ...
9 years, 6 months ago (2011-06-22 00:01:22 UTC) #11
jstritar
Thanks for the review! http://codereview.chromium.org/7003098/diff/15001/chrome/common/extensions/extension_permission_set.h File chrome/common/extensions/extension_permission_set.h (right): http://codereview.chromium.org/7003098/diff/15001/chrome/common/extensions/extension_permission_set.h#newcode339 chrome/common/extensions/extension_permission_set.h:339: bool HasExplicitAccessToOrigin(const GURL& origin) const; ...
9 years, 6 months ago (2011-06-22 15:44:47 UTC) #12
commit-bot: I haz the power
9 years, 6 months ago (2011-06-23 19:02:57 UTC) #13
Change committed as 90244

Powered by Google App Engine
This is Rietveld 408576698