|
|
Created:
3 years, 6 months ago by Patti Lor Modified:
3 years, 5 months ago CC:
chromium-reviews, michaelpg+watch-md-settings_chromium.org, dbeam+watch-settings_chromium.org, stevenjb+watch-md-settings_chromium.org, chrome-apps-syd-reviews_chromium.org Target Ref:
refs/heads/master Project:
chromium Visibility:
Public. |
DescriptionMD Settings: Amend SiteSettingsHandlerTest.Origins to test "Site Details" code.
r483614 introduced SiteSettingsHandler::HandleGetOriginPermissions(), which
retrieves the content setting value for a list of ContentSettingsTypes for a
given origin via the PermissionManager. It only adds Javascript test coverage
for the new code, so add test coverage for the C++ side in this patch.
BUG=656758
CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.linux:closure_compilation
Review-Url: https://codereview.chromium.org/2946393002
Cr-Commit-Position: refs/heads/master@{#484465}
Committed: https://chromium.googlesource.com/chromium/src/+/d265af292d6342a1205dc206c7d1f9e87f0a2ce1
Patch Set 1 #
Total comments: 2
Patch Set 2 : Add comment to explain ValidateOrigin() list/dictionary checking. #Patch Set 3 : Rebase & fix tests. #Patch Set 4 : Rebase & fix tests. #Patch Set 5 : Update comments and naming. #Patch Set 6 : Rebase #Patch Set 7 : Rebase again. #Patch Set 8 : Remove camels. #
Total comments: 4
Patch Set 9 : Fix double getOriginPermissions declaration. #Patch Set 10 : Fix comment. #Messages
Total messages: 60 (49 generated)
The CQ bit was checked by patricialor@chromium.org to run a CQ dry run
Dry run: CQ is trying da patch. Follow status at: https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
The CQ bit was unchecked by commit-bot@chromium.org
Dry run: This issue passed the CQ dry run.
patricialor@chromium.org changed reviewers: + raymes@chromium.org
Hey Raymes, did you want to take a look at this first? These were the C++ test changes I made to go with https://codereview.chromium.org/2936003003/.
lgtm https://codereview.chromium.org/2946393002/diff/1/chrome/browser/ui/webui/set... File chrome/browser/ui/webui/settings/site_settings_handler_unittest.cc (right): https://codereview.chromium.org/2946393002/diff/1/chrome/browser/ui/webui/set... chrome/browser/ui/webui/settings/site_settings_handler_unittest.cc:109: data.arg3()->GetAsDictionary(&exception); Could you add a comment describing these 2 cases? It's quite subtle - I think it's basically handling the 2 cases for the exception list and getCategoryPermissionListForOrigin (unpacking the values of some structure in the page in each case)?
The CQ bit was checked by patricialor@chromium.org to run a CQ dry run
Dry run: CQ is trying da patch. Follow status at: https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
patricialor@chromium.org changed reviewers: + dschuyler@chromium.org
Hi dschuyler, here are some more tests to go with the changes in https://codereview.chromium.org/2936003003/ - sorry for the noise. Thanks Raymes! https://codereview.chromium.org/2946393002/diff/1/chrome/browser/ui/webui/set... File chrome/browser/ui/webui/settings/site_settings_handler_unittest.cc (right): https://codereview.chromium.org/2946393002/diff/1/chrome/browser/ui/webui/set... chrome/browser/ui/webui/settings/site_settings_handler_unittest.cc:109: data.arg3()->GetAsDictionary(&exception); On 2017/06/26 04:12:27, raymes wrote: > Could you add a comment describing these 2 cases? It's quite subtle - I think > it's basically handling the 2 cases for the exception list and > getCategoryPermissionListForOrigin (unpacking the values of some structure in > the page in each case)? Done.
The CQ bit was unchecked by commit-bot@chromium.org
Dry run: This issue passed the CQ dry run.
On 2017/06/26 08:10:54, Patti Lor wrote: > Hi dschuyler, here are some more tests to go with the changes in > https://codereview.chromium.org/2936003003/ - sorry for the noise. > > Thanks Raymes! > > https://codereview.chromium.org/2946393002/diff/1/chrome/browser/ui/webui/set... > File chrome/browser/ui/webui/settings/site_settings_handler_unittest.cc (right): > > https://codereview.chromium.org/2946393002/diff/1/chrome/browser/ui/webui/set... > chrome/browser/ui/webui/settings/site_settings_handler_unittest.cc:109: > data.arg3()->GetAsDictionary(&exception); > On 2017/06/26 04:12:27, raymes wrote: > > Could you add a comment describing these 2 cases? It's quite subtle - I think > > it's basically handling the 2 cases for the exception list and > > getCategoryPermissionListForOrigin (unpacking the values of some structure in > > the page in each case)? > > Done. I'm guessing this CL will need to change based on changes in https://codereview.chromium.org/2936003003/ (is that correct?).
On 2017/06/28 23:57:39, dschuyler wrote: > On 2017/06/26 08:10:54, Patti Lor wrote: > > Hi dschuyler, here are some more tests to go with the changes in > > https://codereview.chromium.org/2936003003/ - sorry for the noise. > > > > Thanks Raymes! > > > > > https://codereview.chromium.org/2946393002/diff/1/chrome/browser/ui/webui/set... > > File chrome/browser/ui/webui/settings/site_settings_handler_unittest.cc > (right): > > > > > https://codereview.chromium.org/2946393002/diff/1/chrome/browser/ui/webui/set... > > chrome/browser/ui/webui/settings/site_settings_handler_unittest.cc:109: > > data.arg3()->GetAsDictionary(&exception); > > On 2017/06/26 04:12:27, raymes wrote: > > > Could you add a comment describing these 2 cases? It's quite subtle - I > think > > > it's basically handling the 2 cases for the exception list and > > > getCategoryPermissionListForOrigin (unpacking the values of some structure > in > > > the page in each case)? > > > > Done. > > I'm guessing this CL will need to change based on changes in > https://codereview.chromium.org/2936003003/ (is that correct?). Yes - sorry, I should have messaged to say this wasn't ready after the changes in 2936003003, I'll ping this CL again when it's ready.
Description was changed from ========== MD Settings: Amend SiteSettingsHandlerTest.Origins to test "Site Details" code. https://crrev.com/2936003003 introduced SiteSettingsHandler::HandleGetCategoryPermissionForOrigin(), which retrieves the content setting value for a ContentSettingsType for a given origin via the PermissionManager. It only adds Javascript test coverage for the new code, so add test coverage for the C++ side in this patch. BUG=656758 ========== to ========== MD Settings: Amend SiteSettingsHandlerTest.Origins to test "Site Details" code. https://crrev.com/2936003003 introduced SiteSettingsHandler::HandleGetCategoryPermissionForOrigin(), which retrieves the content setting value for a ContentSettingsType for a given origin via the PermissionManager. It only adds Javascript test coverage for the new code, so add test coverage for the C++ side in this patch. BUG=656758 CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.linux:closure_compilation ==========
The CQ bit was checked by patricialor@chromium.org to run a CQ dry run
Dry run: CQ is trying da patch. Follow status at: https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
The CQ bit was unchecked by commit-bot@chromium.org
Dry run: Try jobs failed on following builders: ios-simulator on master.tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/ios-simulator/bui...) mac_chromium_compile_dbg_ng on master.tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/mac_chromium_comp...)
The CQ bit was checked by patricialor@chromium.org to run a CQ dry run
Dry run: CQ is trying da patch. Follow status at: https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
The CQ bit was unchecked by commit-bot@chromium.org
Dry run: Try jobs failed on following builders: ios-simulator on master.tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/ios-simulator/bui...)
The CQ bit was checked by patricialor@chromium.org to run a CQ dry run
Dry run: CQ is trying da patch. Follow status at: https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
The CQ bit was unchecked by commit-bot@chromium.org
Dry run: Try jobs failed on following builders: win_chromium_compile_dbg_ng on master.tryserver.chromium.win (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.win/builders/win_chromium_comp...)
The CQ bit was checked by patricialor@chromium.org to run a CQ dry run
Dry run: CQ is trying da patch. Follow status at: https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
The CQ bit was unchecked by commit-bot@chromium.org
Dry run: This issue passed the CQ dry run.
Description was changed from ========== MD Settings: Amend SiteSettingsHandlerTest.Origins to test "Site Details" code. https://crrev.com/2936003003 introduced SiteSettingsHandler::HandleGetCategoryPermissionForOrigin(), which retrieves the content setting value for a ContentSettingsType for a given origin via the PermissionManager. It only adds Javascript test coverage for the new code, so add test coverage for the C++ side in this patch. BUG=656758 CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.linux:closure_compilation ========== to ========== MD Settings: Amend SiteSettingsHandlerTest.Origins to test "Site Details" code. r483614 introduced SiteSettingsHandler::HandleGetOriginPermissions(), which retrieves the content setting value for a list of ContentSettingsTypes for a given origin via the PermissionManager. It only adds Javascript test coverage for the new code, so add test coverage for the C++ side in this patch. BUG=656758 CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.linux:closure_compilation ==========
The CQ bit was checked by patricialor@chromium.org to run a CQ dry run
Dry run: CQ is trying da patch. Follow status at: https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
The CQ bit was unchecked by commit-bot@chromium.org
Dry run: Try jobs failed on following builders: linux_chromium_chromeos_ozone_rel_ng on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_...)
Hi dschuyler, PTAL - I've rebased back onto TOT and updated the CL description as well.
The CQ bit was checked by patricialor@chromium.org to run a CQ dry run
Dry run: CQ is trying da patch. Follow status at: https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
The CQ bit was checked by patricialor@chromium.org to run a CQ dry run
The CQ bit was checked by patricialor@chromium.org to run a CQ dry run
Dry run: CQ is trying da patch. Follow status at: https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
The CQ bit was unchecked by commit-bot@chromium.org
Dry run: Try jobs failed on following builders: android_arm64_dbg_recipe on master.tryserver.chromium.android (JOB_FAILED, https://build.chromium.org/p/tryserver.chromium.android/builders/android_arm6...)
https://codereview.chromium.org/2946393002/diff/140001/chrome/browser/resourc... File chrome/browser/resources/settings/site_settings/site_settings_prefs_browser_proxy.js (right): https://codereview.chromium.org/2946393002/diff/140001/chrome/browser/resourc... chrome/browser/resources/settings/site_settings/site_settings_prefs_browser_proxy.js:161: getOriginPermissions(origin, contentTypes) {} It looks like this is being added a second time (maybe a merge whoops).
The CQ bit was checked by patricialor@chromium.org to run a CQ dry run
Dry run: CQ is trying da patch. Follow status at: https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
Aside from a suggestion and a nit, LGTM. https://codereview.chromium.org/2946393002/diff/140001/chrome/browser/ui/webu... File chrome/browser/ui/webui/settings/site_settings_handler_unittest.cc (right): https://codereview.chromium.org/2946393002/diff/140001/chrome/browser/ui/webu... chrome/browser/ui/webui/settings/site_settings_handler_unittest.cc:317: // Ask is the current built-in Chrome default for notifications. Just a thought, but I had to read this a couple times to 'get-it'. It may help a future reader highlight "Ask" and Notifications a bit: // "Ask" is the default value for Notifications.
The CQ bit was checked by patricialor@chromium.org to run a CQ dry run
Dry run: CQ is trying da patch. Follow status at: https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
The CQ bit was unchecked by commit-bot@chromium.org
Dry run: This issue passed the CQ dry run.
Thanks for the review! https://codereview.chromium.org/2946393002/diff/140001/chrome/browser/resourc... File chrome/browser/resources/settings/site_settings/site_settings_prefs_browser_proxy.js (right): https://codereview.chromium.org/2946393002/diff/140001/chrome/browser/resourc... chrome/browser/resources/settings/site_settings/site_settings_prefs_browser_proxy.js:161: getOriginPermissions(origin, contentTypes) {} On 2017/07/05 18:30:18, dschuyler wrote: > It looks like this is being added a second time (maybe a merge whoops). Oops, thanks for picking this up! Fixed. https://codereview.chromium.org/2946393002/diff/140001/chrome/browser/ui/webu... File chrome/browser/ui/webui/settings/site_settings_handler_unittest.cc (right): https://codereview.chromium.org/2946393002/diff/140001/chrome/browser/ui/webu... chrome/browser/ui/webui/settings/site_settings_handler_unittest.cc:317: // Ask is the current built-in Chrome default for notifications. On 2017/07/06 01:17:06, dschuyler wrote: > Just a thought, but I had to read this a couple times to 'get-it'. It may help a > future reader highlight "Ask" and Notifications a bit: > > // "Ask" is the default value for Notifications. Done, thanks!
The CQ bit was checked by patricialor@chromium.org
The patchset sent to the CQ was uploaded after l-g-t-m from raymes@chromium.org, dschuyler@chromium.org Link to the patchset: https://codereview.chromium.org/2946393002/#ps180001 (title: "Fix comment.")
CQ is trying da patch. Follow status at: https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
CQ is committing da patch. Bot data: {"patchset_id": 180001, "attempt_start_ts": 1499315026962950, "parent_rev": "a0091532daf279a05f878bf9e53bd3fad1f0dbb6", "commit_rev": "d265af292d6342a1205dc206c7d1f9e87f0a2ce1"}
Message was sent while issue was closed.
Description was changed from ========== MD Settings: Amend SiteSettingsHandlerTest.Origins to test "Site Details" code. r483614 introduced SiteSettingsHandler::HandleGetOriginPermissions(), which retrieves the content setting value for a list of ContentSettingsTypes for a given origin via the PermissionManager. It only adds Javascript test coverage for the new code, so add test coverage for the C++ side in this patch. BUG=656758 CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.linux:closure_compilation ========== to ========== MD Settings: Amend SiteSettingsHandlerTest.Origins to test "Site Details" code. r483614 introduced SiteSettingsHandler::HandleGetOriginPermissions(), which retrieves the content setting value for a list of ContentSettingsTypes for a given origin via the PermissionManager. It only adds Javascript test coverage for the new code, so add test coverage for the C++ side in this patch. BUG=656758 CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.linux:closure_compilation Review-Url: https://codereview.chromium.org/2946393002 Cr-Commit-Position: refs/heads/master@{#484465} Committed: https://chromium.googlesource.com/chromium/src/+/d265af292d6342a1205dc206c7d1... ==========
Message was sent while issue was closed.
Committed patchset #10 (id:180001) as https://chromium.googlesource.com/chromium/src/+/d265af292d6342a1205dc206c7d1... |