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

Issue 380893005: Add an option page for searching and managing resources and permissions. (Closed)

Created:
6 years, 5 months ago by Daniel Nishi
Modified:
6 years, 3 months ago
CC:
scheib, chromium-reviews, dbeam+watch-options_chromium.org, markusheintz_, arv+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Project:
chromium
Visibility:
Public.

Description

Add an option page for searching and managing resources and permissions by origin. Add a command line flag for activating this option page. Design doc and mocks: https://docs.google.com/a/chromium.org/document/d/1oQwmj3AU4QYhTyGrYEGr6zaZhHUfx-wqUgEcQGbUU-U/edit BUG=372607 TEST=Enable chrome://flags/#enable-website-settings and go to chrome://settings and click the the "Manage sites..." button under the "Web content" category (click Show advanced settings...). Verify that the list of sites are those granted for a given permission and that the list is searchable. Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=283388

Patch Set 1 : #

Total comments: 99

Patch Set 2 : Addressing comments. #

Total comments: 20

Patch Set 3 : Addressing comments. #

Total comments: 8

Patch Set 4 : Last pass. #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+468 lines, -0 lines) Patch
M chrome/app/generated_resources.grd View 2 chunks +16 lines, -0 lines 0 comments Download
M chrome/browser/about_flags.cc View 1 2 3 1 chunk +7 lines, -0 lines 0 comments Download
M chrome/browser/content_settings/content_settings_utils.h View 1 1 chunk +3 lines, -0 lines 0 comments Download
M chrome/browser/content_settings/content_settings_utils.cc View 1 1 chunk +11 lines, -0 lines 0 comments Download
M chrome/browser/content_settings/host_content_settings_map.cc View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/resources/options/browser_options.html View 1 chunk +4 lines, -0 lines 0 comments Download
M chrome/browser/resources/options/browser_options.js View 1 chunk +8 lines, -0 lines 0 comments Download
M chrome/browser/resources/options/options.html View 2 chunks +2 lines, -0 lines 0 comments Download
M chrome/browser/resources/options/options.js View 2 chunks +4 lines, -0 lines 0 comments Download
M chrome/browser/resources/options/options_bundle.js View 1 2 chunks +2 lines, -0 lines 0 comments Download
A chrome/browser/resources/options/origin_resources_list.js View 1 2 3 1 chunk +52 lines, -0 lines 0 comments Download
A chrome/browser/resources/options/website_settings.css View 1 2 1 chunk +22 lines, -0 lines 0 comments Download
A chrome/browser/resources/options/website_settings.html View 1 2 1 chunk +27 lines, -0 lines 0 comments Download
A chrome/browser/resources/options/website_settings.js View 1 2 3 1 chunk +114 lines, -0 lines 1 comment Download
M chrome/browser/ui/webui/options/browser_options_handler.cc View 1 chunk +4 lines, -0 lines 0 comments Download
M chrome/browser/ui/webui/options/options_ui.cc View 1 2 2 chunks +2 lines, -0 lines 0 comments Download
A chrome/browser/ui/webui/options/website_settings_browsertest.js View 1 chunk +24 lines, -0 lines 0 comments Download
A chrome/browser/ui/webui/options/website_settings_handler.h View 1 1 chunk +49 lines, -0 lines 0 comments Download
A chrome/browser/ui/webui/options/website_settings_handler.cc View 1 2 1 chunk +109 lines, -0 lines 0 comments Download
M chrome/chrome_browser_ui.gypi View 1 2 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/chrome_tests.gypi View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M chrome/common/chrome_switches.h View 1 1 chunk +1 line, -0 lines 0 comments Download
M chrome/common/chrome_switches.cc View 1 2 1 chunk +3 lines, -0 lines 0 comments Download

Messages

Total messages: 22 (1 generated)
Daniel Nishi
dbeam: Please review c/b/resources/options/* c/b/ui/webui/options/* and the corresponding file and flag additions in: chrome/chrome_browser_ui.gypi chrome/chrome_tests.gypi ...
6 years, 5 months ago (2014-07-09 22:52:06 UTC) #1
Dan Beam
overall, looking pretty good https://codereview.chromium.org/380893005/diff/20001/chrome/browser/resources/options/options_bundle.js File chrome/browser/resources/options/options_bundle.js (right): https://codereview.chromium.org/380893005/diff/20001/chrome/browser/resources/options/options_bundle.js#newcode80 chrome/browser/resources/options/options_bundle.js:80: <include src="origin_resources_list.js"></include> why here? this ...
6 years, 5 months ago (2014-07-10 02:57:25 UTC) #2
Bernhard Bauer
https://codereview.chromium.org/380893005/diff/20001/chrome/browser/content_settings/content_settings_utils.cc File chrome/browser/content_settings/content_settings_utils.cc (right): https://codereview.chromium.org/380893005/diff/20001/chrome/browser/content_settings/content_settings_utils.cc#newcode69 chrome/browser/content_settings/content_settings_utils.cc:69: if (name == std::string(GetTypeName(ContentSettingsType(type)))) { If you want to ...
6 years, 5 months ago (2014-07-10 08:47:43 UTC) #3
Daniel Nishi
PTAL. https://codereview.chromium.org/380893005/diff/20001/chrome/browser/content_settings/content_settings_utils.cc File chrome/browser/content_settings/content_settings_utils.cc (right): https://codereview.chromium.org/380893005/diff/20001/chrome/browser/content_settings/content_settings_utils.cc#newcode69 chrome/browser/content_settings/content_settings_utils.cc:69: if (name == std::string(GetTypeName(ContentSettingsType(type)))) { On 2014/07/10 08:47:42, ...
6 years, 5 months ago (2014-07-10 19:00:10 UTC) #4
Daniel Nishi
Ping.
6 years, 5 months ago (2014-07-14 22:26:51 UTC) #5
Dan Beam
super close https://codereview.chromium.org/380893005/diff/20001/chrome/browser/ui/webui/options/website_settings_handler.cc File chrome/browser/ui/webui/options/website_settings_handler.cc (right): https://codereview.chromium.org/380893005/diff/20001/chrome/browser/ui/webui/options/website_settings_handler.cc#newcode13 chrome/browser/ui/webui/options/website_settings_handler.cc:13: const char* kPreferencesSource = "preference"; On 2014/07/10 ...
6 years, 5 months ago (2014-07-15 03:39:16 UTC) #6
Bernhard Bauer
https://codereview.chromium.org/380893005/diff/20001/chrome/browser/resources/options/website_settings.js File chrome/browser/resources/options/website_settings.js (right): https://codereview.chromium.org/380893005/diff/20001/chrome/browser/resources/options/website_settings.js#newcode39 chrome/browser/resources/options/website_settings.js:39: this.pageDiv.querySelector('.website-settings-overlay-confirm').onclick = On 2014/07/10 19:00:09, Daniel Nishi wrote: > ...
6 years, 5 months ago (2014-07-15 08:32:49 UTC) #7
hosseinbehzady62
6 years, 5 months ago (2014-07-15 16:44:08 UTC) #8
hosseinbehzady62
lgtm
6 years, 5 months ago (2014-07-15 17:05:21 UTC) #9
hosseinbehzady62
On 2014/07/15 17:05:21, hosseinbehzady62 wrote: > lgtm
6 years, 5 months ago (2014-07-15 17:06:50 UTC) #10
Daniel Nishi
https://codereview.chromium.org/380893005/diff/20001/chrome/browser/ui/webui/options/website_settings_handler.cc File chrome/browser/ui/webui/options/website_settings_handler.cc (right): https://codereview.chromium.org/380893005/diff/20001/chrome/browser/ui/webui/options/website_settings_handler.cc#newcode13 chrome/browser/ui/webui/options/website_settings_handler.cc:13: const char* kPreferencesSource = "preference"; On 2014/07/15 08:32:49, Bernhard ...
6 years, 5 months ago (2014-07-15 17:12:55 UTC) #11
Dan Beam
lgtm https://codereview.chromium.org/380893005/diff/80001/chrome/browser/resources/options/origin_resources_list.js File chrome/browser/resources/options/origin_resources_list.js (right): https://codereview.chromium.org/380893005/diff/80001/chrome/browser/resources/options/origin_resources_list.js#newcode12 chrome/browser/resources/options/origin_resources_list.js:12: OriginListItem.decorate(el); if OriginListItem.decorate() is only called once, just ...
6 years, 5 months ago (2014-07-15 21:46:19 UTC) #12
Bernhard Bauer
lgtm
6 years, 5 months ago (2014-07-15 21:52:17 UTC) #13
Daniel Nishi
https://codereview.chromium.org/380893005/diff/80001/chrome/browser/resources/options/origin_resources_list.js File chrome/browser/resources/options/origin_resources_list.js (right): https://codereview.chromium.org/380893005/diff/80001/chrome/browser/resources/options/origin_resources_list.js#newcode12 chrome/browser/resources/options/origin_resources_list.js:12: OriginListItem.decorate(el); On 2014/07/15 21:46:19, Dan Beam wrote: > if ...
6 years, 5 months ago (2014-07-15 22:18:24 UTC) #14
Daniel Nishi
The CQ bit was checked by dhnishi@chromium.org
6 years, 5 months ago (2014-07-15 22:46:59 UTC) #15
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/dhnishi@chromium.org/380893005/120001
6 years, 5 months ago (2014-07-15 22:50:20 UTC) #16
commit-bot: I haz the power
Change committed as 283388
6 years, 5 months ago (2014-07-16 07:47:24 UTC) #17
Vitaly Pavlenko
https://codereview.chromium.org/380893005/diff/120001/chrome/browser/resources/options/website_settings.js File chrome/browser/resources/options/website_settings.js (right): https://codereview.chromium.org/380893005/diff/120001/chrome/browser/resources/options/website_settings.js#newcode42 chrome/browser/resources/options/website_settings.js:42: var target = event.target; I don't understand why |event| ...
6 years, 3 months ago (2014-09-07 05:14:33 UTC) #19
Daniel Nishi
On 2014/09/07 05:14:33, Vitaly Pavlenko wrote: > https://codereview.chromium.org/380893005/diff/120001/chrome/browser/resources/options/website_settings.js > File chrome/browser/resources/options/website_settings.js (right): > > https://codereview.chromium.org/380893005/diff/120001/chrome/browser/resources/options/website_settings.js#newcode42 ...
6 years, 3 months ago (2014-09-08 15:27:49 UTC) #20
Daniel Nishi
On 2014/09/08 15:27:49, Daniel Nishi wrote: > On 2014/09/07 05:14:33, Vitaly Pavlenko wrote: > > ...
6 years, 3 months ago (2014-09-08 15:35:16 UTC) #21
Dan Beam
6 years, 3 months ago (2014-09-08 22:57:52 UTC) #22
Message was sent while issue was closed.
On 2014/09/08 15:35:16, Daniel Nishi wrote:
> On 2014/09/08 15:27:49, Daniel Nishi wrote:
> > On 2014/09/07 05:14:33, Vitaly Pavlenko wrote:
> > >
> >
>
https://codereview.chromium.org/380893005/diff/120001/chrome/browser/resource...
> > > File chrome/browser/resources/options/website_settings.js (right):
> > > 
> > >
> >
>
https://codereview.chromium.org/380893005/diff/120001/chrome/browser/resource...
> > > chrome/browser/resources/options/website_settings.js:42: var target =
> > > event.target;
> > > I don't understand why |event| is defined at this point. Could you
explain,
> > > please?
> > 
> > In JS, I think you can still access function parameters even if they were
not
> > explicitly declared. |event| is still getting passed to onchange() and is
> > accessible within the function, but it isn't in the function header.
> > 
> > Forgetting the parameter was a mistake on my part, I'll have a patch up to
add
> > the parameter in explicitly!
> 
> Whoops. After doing a bit more research, I think my previous statement was
> incorrect. I think it's actually accessing the scope where the call originated
> and that the event is also called event there.
> 
> Regardless, I'll have a patch up to address it.

if I had to guess: window.event is provided while inside event handlers for
backward-compatibility for IE-specific code.

http://msdn.microsoft.com/en-us/library/ie/ms535863(v=vs.85).aspx

Powered by Google App Engine
This is Rietveld 408576698