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

Issue 2946393002: MD Settings: Amend SiteSettingsHandlerTest.Origins to test "Site Details" code. (Closed)

Created:
3 years, 6 months ago by Patti Lor
Modified:
3 years, 5 months ago
Reviewers:
dschuyler, raymes
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.

Description

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/+/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. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+35 lines, -17 lines) Patch
M chrome/browser/ui/webui/settings/site_settings_handler_unittest.cc View 1 2 3 4 5 6 7 8 9 4 chunks +35 lines, -17 lines 0 comments Download

Messages

Total messages: 60 (49 generated)
Patti Lor
Hey Raymes, did you want to take a look at this first? These were the ...
3 years, 6 months ago (2017-06-22 08:06:47 UTC) #6
raymes
lgtm https://codereview.chromium.org/2946393002/diff/1/chrome/browser/ui/webui/settings/site_settings_handler_unittest.cc File chrome/browser/ui/webui/settings/site_settings_handler_unittest.cc (right): https://codereview.chromium.org/2946393002/diff/1/chrome/browser/ui/webui/settings/site_settings_handler_unittest.cc#newcode109 chrome/browser/ui/webui/settings/site_settings_handler_unittest.cc:109: data.arg3()->GetAsDictionary(&exception); Could you add a comment describing these ...
3 years, 6 months ago (2017-06-26 04:12:28 UTC) #7
Patti Lor
Hi dschuyler, here are some more tests to go with the changes in https://codereview.chromium.org/2936003003/ - ...
3 years, 5 months ago (2017-06-26 08:10:54 UTC) #11
dschuyler
On 2017/06/26 08:10:54, Patti Lor wrote: > Hi dschuyler, here are some more tests to ...
3 years, 5 months ago (2017-06-28 23:57:39 UTC) #14
Patti Lor
On 2017/06/28 23:57:39, dschuyler wrote: > On 2017/06/26 08:10:54, Patti Lor wrote: > > Hi ...
3 years, 5 months ago (2017-06-29 00:59:48 UTC) #15
Patti Lor
Hi dschuyler, PTAL - I've rebased back onto TOT and updated the CL description as ...
3 years, 5 months ago (2017-07-03 07:52:30 UTC) #38
dschuyler
https://codereview.chromium.org/2946393002/diff/140001/chrome/browser/resources/settings/site_settings/site_settings_prefs_browser_proxy.js File chrome/browser/resources/settings/site_settings/site_settings_prefs_browser_proxy.js (right): https://codereview.chromium.org/2946393002/diff/140001/chrome/browser/resources/settings/site_settings/site_settings_prefs_browser_proxy.js#newcode161 chrome/browser/resources/settings/site_settings/site_settings_prefs_browser_proxy.js:161: getOriginPermissions(origin, contentTypes) {} It looks like this is being ...
3 years, 5 months ago (2017-07-05 18:30:19 UTC) #46
dschuyler
Aside from a suggestion and a nit, LGTM. https://codereview.chromium.org/2946393002/diff/140001/chrome/browser/ui/webui/settings/site_settings_handler_unittest.cc File chrome/browser/ui/webui/settings/site_settings_handler_unittest.cc (right): https://codereview.chromium.org/2946393002/diff/140001/chrome/browser/ui/webui/settings/site_settings_handler_unittest.cc#newcode317 chrome/browser/ui/webui/settings/site_settings_handler_unittest.cc:317: // ...
3 years, 5 months ago (2017-07-06 01:17:06 UTC) #49
Patti Lor
Thanks for the review! https://codereview.chromium.org/2946393002/diff/140001/chrome/browser/resources/settings/site_settings/site_settings_prefs_browser_proxy.js File chrome/browser/resources/settings/site_settings/site_settings_prefs_browser_proxy.js (right): https://codereview.chromium.org/2946393002/diff/140001/chrome/browser/resources/settings/site_settings/site_settings_prefs_browser_proxy.js#newcode161 chrome/browser/resources/settings/site_settings/site_settings_prefs_browser_proxy.js:161: getOriginPermissions(origin, contentTypes) {} On 2017/07/05 ...
3 years, 5 months ago (2017-07-06 04:23:40 UTC) #54
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/2946393002/180001
3 years, 5 months ago (2017-07-06 04:23:59 UTC) #57
commit-bot: I haz the power
3 years, 5 months ago (2017-07-06 04:27:55 UTC) #60
Message was sent while issue was closed.
Committed patchset #10 (id:180001) as
https://chromium.googlesource.com/chromium/src/+/d265af292d6342a1205dc206c7d1...

Powered by Google App Engine
This is Rietveld 408576698