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

Issue 1447813002: Add USB devices to the content settings page. (Closed)

Created:
5 years, 1 month ago by Reilly Grant (use Gerrit)
Modified:
5 years ago
CC:
chromium-reviews, dbeam+watch-options_chromium.org, michaelpg+watch-options_chromium.org, arv+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@get_all_objects
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Add USB devices to the content settings page. This patch adds infrastructure for displaying chooser-style permissions such as USB devices selected by the user on the content settings page. These permissions are used by the WebUSB API. This infrastructure will be used for per-device WebBluetooth permissions as well. BUG=424667, 529950 Committed: https://crrev.com/92e28e54832687afef1c6e9968fcd4608be05db9 Cr-Commit-Position: refs/heads/master@{#362290}

Patch Set 1 #

Total comments: 18

Patch Set 2 : Addressed bauerb@'s comments. #

Patch Set 3 : NodeList.prototype does not include forEach. #

Total comments: 4

Patch Set 4 : Addressed more of bauerb@'s comments. #

Total comments: 1

Patch Set 5 : Rebased. #

Total comments: 5
Unified diffs Side-by-side diffs Delta from patch set Stats (+335 lines, -60 lines) Patch
M chrome/app/generated_resources.grd View 1 2 3 4 2 chunks +10 lines, -0 lines 0 comments Download
M chrome/browser/resources/options/content_settings.html View 1 chunk +10 lines, -0 lines 0 comments Download
M chrome/browser/resources/options/content_settings_exceptions_area.html View 2 chunks +12 lines, -0 lines 0 comments Download
M chrome/browser/resources/options/content_settings_exceptions_area.js View 1 2 5 chunks +52 lines, -10 lines 5 comments Download
M chrome/browser/ui/webui/options/content_settings_handler.h View 1 2 3 4 chunks +18 lines, -1 line 0 comments Download
M chrome/browser/ui/webui/options/content_settings_handler.cc View 1 2 3 4 22 chunks +233 lines, -49 lines 0 comments Download

Messages

Total messages: 18 (8 generated)
Reilly Grant (use Gerrit)
Please take a look. go/chrome-chooser-design for more details on this series patches.
5 years, 1 month ago (2015-11-14 00:01:10 UTC) #2
Bernhard Bauer
https://codereview.chromium.org/1447813002/diff/1/chrome/browser/resources/options/content_settings_exceptions_area.js File chrome/browser/resources/options/content_settings_exceptions_area.js (right): https://codereview.chromium.org/1447813002/diff/1/chrome/browser/resources/options/content_settings_exceptions_area.js#newcode40 chrome/browser/resources/options/content_settings_exceptions_area.js:40: else if (contentType == 'zoomlevels') Else is not necessary ...
5 years, 1 month ago (2015-11-16 12:53:31 UTC) #4
Reilly Grant (use Gerrit)
https://codereview.chromium.org/1447813002/diff/1/chrome/browser/resources/options/content_settings_exceptions_area.js File chrome/browser/resources/options/content_settings_exceptions_area.js (right): https://codereview.chromium.org/1447813002/diff/1/chrome/browser/resources/options/content_settings_exceptions_area.js#newcode40 chrome/browser/resources/options/content_settings_exceptions_area.js:40: else if (contentType == 'zoomlevels') On 2015/11/16 12:53:30, Bernhard ...
5 years, 1 month ago (2015-11-16 22:18:27 UTC) #5
Bernhard Bauer
https://codereview.chromium.org/1447813002/diff/1/chrome/browser/ui/webui/options/content_settings_handler.cc File chrome/browser/ui/webui/options/content_settings_handler.cc (right): https://codereview.chromium.org/1447813002/diff/1/chrome/browser/ui/webui/options/content_settings_handler.cc#newcode75 chrome/browser/ui/webui/options/content_settings_handler.cc:75: struct ChooserTypeNameEntry { On 2015/11/16 22:18:27, Reilly Grant wrote: ...
5 years, 1 month ago (2015-11-17 13:36:54 UTC) #6
Reilly Grant (use Gerrit)
https://codereview.chromium.org/1447813002/diff/1/chrome/browser/ui/webui/options/content_settings_handler.cc File chrome/browser/ui/webui/options/content_settings_handler.cc (right): https://codereview.chromium.org/1447813002/diff/1/chrome/browser/ui/webui/options/content_settings_handler.cc#newcode75 chrome/browser/ui/webui/options/content_settings_handler.cc:75: struct ChooserTypeNameEntry { On 2015/11/17 13:36:53, Bernhard Bauer wrote: ...
5 years, 1 month ago (2015-11-18 00:30:09 UTC) #7
Bernhard Bauer
lgtm https://codereview.chromium.org/1447813002/diff/80001/chrome/browser/ui/webui/options/content_settings_handler.h File chrome/browser/ui/webui/options/content_settings_handler.h (right): https://codereview.chromium.org/1447813002/diff/80001/chrome/browser/ui/webui/options/content_settings_handler.h#newcode34 chrome/browser/ui/webui/options/content_settings_handler.h:34: struct ChooserTypeNameEntry; This can't be in the private ...
5 years, 1 month ago (2015-11-18 14:11:06 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1447813002/100001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1447813002/100001
5 years ago (2015-11-30 22:48:21 UTC) #12
commit-bot: I haz the power
Committed patchset #5 (id:100001)
5 years ago (2015-12-01 00:42:24 UTC) #14
commit-bot: I haz the power
Patchset 5 (id:??) landed as https://crrev.com/92e28e54832687afef1c6e9968fcd4608be05db9 Cr-Commit-Position: refs/heads/master@{#362290}
5 years ago (2015-12-01 00:46:07 UTC) #16
Dan Beam
5 years ago (2015-12-02 04:09:50 UTC) #18
Message was sent while issue was closed.
https://codereview.chromium.org/1447813002/diff/100001/chrome/browser/resourc...
File chrome/browser/resources/options/content_settings_exceptions_area.js
(right):

https://codereview.chromium.org/1447813002/diff/100001/chrome/browser/resourc...
chrome/browser/resources/options/content_settings_exceptions_area.js:17:
function IsEditableType(contentType) {
ah, this shouldn't be capitalized either. bummer

https://codereview.chromium.org/1447813002/diff/100001/chrome/browser/resourc...
chrome/browser/resources/options/content_settings_exceptions_area.js:33:
function IsChosenObjectType(contentType) {
should be isChosenObjectType

https://codereview.chromium.org/1447813002/diff/100001/chrome/browser/resourc...
chrome/browser/resources/options/content_settings_exceptions_area.js:37:
function ValueColumnForContentType(contentType) {
valueColumnForContentType

https://codereview.chromium.org/1447813002/diff/100001/chrome/browser/resourc...
chrome/browser/resources/options/content_settings_exceptions_area.js:163:
objectLabel.textContent = this.dataItem.objectName;
^ this broke the closure compile for some reason...

https://codereview.chromium.org/1447813002/diff/100001/chrome/browser/resourc...
chrome/browser/resources/options/content_settings_exceptions_area.js:582: var
dataItem = listItem.dataItem;
var params = [
  listItem.contentType,
  listItem.mode,
  dataItem.origin,
  dataItem.embeddingOrigin,
];

if (isChosenObjectType(this.contentType))
  params.push(dataItem.object);

chrome.send('removeException', params);

Powered by Google App Engine
This is Rietveld 408576698