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

Issue 1974413003: Whitelist hangouts.google.com further to allow video effects plugin access. (Closed)

Created:
4 years, 7 months ago by AlexZ
Modified:
4 years, 7 months ago
CC:
chromium-reviews
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Urgent: whitelist hangouts.google.com further (should've been done in issue 1552383002 from Dec 2015, but...) to allow video effects plugin access; tag on meet.google.com for a similar purpose; tax: refactor whitelist checks into separate thing. R=noahric@chromium.org,sky@chromium.org,jschuh@chromium.org,tommi@chromium.org,tsepez@chromium.org BUG=614062 Committed: https://crrev.com/81dcbd6123178d58c5edc53d1453e03f9afa31ca Cr-Commit-Position: refs/heads/master@{#395172}

Patch Set 1 #

Total comments: 4

Patch Set 2 : Moving to single domain check #

Total comments: 4

Patch Set 3 : Inlining url.host() #

Patch Set 4 : Define string constant only when it'll be used somewhere #

Patch Set 5 : Fix 'unreachable code' error #

Total comments: 4

Patch Set 6 : Move whitelisting logic and most of the tests out into a separate thing #

Patch Set 7 : Include the added files #

Patch Set 8 : Swapping comments #

Total comments: 17

Patch Set 9 : Addressing misc review comments #

Total comments: 6

Patch Set 10 : Use static methods instead of namespace #

Unified diffs Side-by-side diffs Delta from patch set Stats (+262 lines, -123 lines) Patch
M chrome/chrome_renderer.gypi View 1 2 3 4 5 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/chrome_tests_unit.gypi View 1 2 3 4 5 1 chunk +1 line, -0 lines 0 comments Download
M chrome/renderer/OWNERS View 1 2 3 4 5 6 7 8 1 chunk +5 lines, -0 lines 0 comments Download
A chrome/renderer/app_categorizer.h View 1 2 3 4 5 6 7 8 9 1 chunk +16 lines, -0 lines 0 comments Download
A chrome/renderer/app_categorizer.cc View 1 2 3 4 5 6 7 8 9 1 chunk +80 lines, -0 lines 0 comments Download
A chrome/renderer/app_categorizer_unittest.cc View 1 2 3 4 5 6 7 8 9 1 chunk +125 lines, -0 lines 0 comments Download
M chrome/renderer/chrome_content_renderer_client.cc View 1 2 3 4 5 6 7 8 9 4 chunks +10 lines, -53 lines 0 comments Download
M chrome/renderer/chrome_content_renderer_client_unittest.cc View 1 2 3 4 5 6 chunks +23 lines, -70 lines 0 comments Download

Messages

Total messages: 86 (31 generated)
AlexZ
4 years, 7 months ago (2016-05-13 20:41:47 UTC) #1
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1974413003/1 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1974413003/1
4 years, 7 months ago (2016-05-13 20:47:35 UTC) #3
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 7 months ago (2016-05-13 22:02:38 UTC) #5
sky
+jschuh All of these checks should be structured in its own file so their can ...
4 years, 7 months ago (2016-05-13 23:13:26 UTC) #6
AlexZ
On 2016/05/13 23:13:26, sky wrote: > +jschuh > All of these checks should be structured ...
4 years, 7 months ago (2016-05-14 00:08:34 UTC) #7
AlexZ
On 2016/05/14 00:08:34, AlexZ wrote: > On 2016/05/13 23:13:26, sky wrote: > > +jschuh > ...
4 years, 7 months ago (2016-05-14 00:10:43 UTC) #8
tommi (sloooow) - chröme
drive-by and adding jschuh to the reviewer list. https://codereview.chromium.org/1974413003/diff/1/chrome/renderer/chrome_content_renderer_client.cc File chrome/renderer/chrome_content_renderer_client.cc (right): https://codereview.chromium.org/1974413003/diff/1/chrome/renderer/chrome_content_renderer_client.cc#newcode931 chrome/renderer/chrome_content_renderer_client.cc:931: (base::EndsWith(app_url_host, ...
4 years, 7 months ago (2016-05-16 19:51:56 UTC) #10
AlexZ
Why do we need a list anyways? Why can't we just test against ".google.com"? What's ...
4 years, 7 months ago (2016-05-17 15:56:23 UTC) #11
tommi (sloooow) - chröme
On 2016/05/17 15:56:23, AlexZ wrote: > Why do we need a list anyways? Why can't ...
4 years, 7 months ago (2016-05-17 16:04:02 UTC) #12
AlexZ
ptal https://codereview.chromium.org/1974413003/diff/1/chrome/renderer/chrome_content_renderer_client.cc File chrome/renderer/chrome_content_renderer_client.cc (right): https://codereview.chromium.org/1974413003/diff/1/chrome/renderer/chrome_content_renderer_client.cc#newcode931 chrome/renderer/chrome_content_renderer_client.cc:931: (base::EndsWith(app_url_host, "hangouts.google.com", On 2016/05/16 19:51:56, tommi-chrömium wrote: > ...
4 years, 7 months ago (2016-05-17 16:43:56 UTC) #13
AlexZ
Sorry I'm having problems committing / uploading my change... Wrestling with git.
4 years, 7 months ago (2016-05-17 16:55:01 UTC) #14
AlexZ
Ok now it's ready for review. Thanks.
4 years, 7 months ago (2016-05-17 16:58:38 UTC) #15
tommi (sloooow) - chröme
On 2016/05/17 16:55:01, AlexZ wrote: > Sorry I'm having problems committing / uploading my change... ...
4 years, 7 months ago (2016-05-17 17:01:36 UTC) #17
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1974413003/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1974413003/20001
4 years, 7 months ago (2016-05-17 17:01:43 UTC) #18
AlexZ
Updated description. Thanks.
4 years, 7 months ago (2016-05-17 17:04:35 UTC) #20
tommi (sloooow) - chröme
lgtm https://codereview.chromium.org/1974413003/diff/20001/chrome/renderer/chrome_content_renderer_client.cc File chrome/renderer/chrome_content_renderer_client.cc (right): https://codereview.chromium.org/1974413003/diff/20001/chrome/renderer/chrome_content_renderer_client.cc#newcode1233 chrome/renderer/chrome_content_renderer_client.cc:1233: std::string url_host = url.host(); I don't think you ...
4 years, 7 months ago (2016-05-17 17:10:44 UTC) #21
AlexZ
https://codereview.chromium.org/1974413003/diff/20001/chrome/renderer/chrome_content_renderer_client.cc File chrome/renderer/chrome_content_renderer_client.cc (right): https://codereview.chromium.org/1974413003/diff/20001/chrome/renderer/chrome_content_renderer_client.cc#newcode1233 chrome/renderer/chrome_content_renderer_client.cc:1233: std::string url_host = url.host(); On 2016/05/17 17:10:44, tommi-chrömium wrote: ...
4 years, 7 months ago (2016-05-17 17:20:25 UTC) #22
tommi (sloooow) - chröme
https://codereview.chromium.org/1974413003/diff/20001/chrome/renderer/chrome_content_renderer_client.cc File chrome/renderer/chrome_content_renderer_client.cc (right): https://codereview.chromium.org/1974413003/diff/20001/chrome/renderer/chrome_content_renderer_client.cc#newcode1233 chrome/renderer/chrome_content_renderer_client.cc:1233: std::string url_host = url.host(); On 2016/05/17 17:20:24, AlexZ wrote: ...
4 years, 7 months ago (2016-05-17 17:25:38 UTC) #23
AlexZ
Thanks. https://codereview.chromium.org/1974413003/diff/20001/chrome/renderer/chrome_content_renderer_client.cc File chrome/renderer/chrome_content_renderer_client.cc (right): https://codereview.chromium.org/1974413003/diff/20001/chrome/renderer/chrome_content_renderer_client.cc#newcode1233 chrome/renderer/chrome_content_renderer_client.cc:1233: std::string url_host = url.host(); On 2016/05/17 17:25:38, tommi-chrömium ...
4 years, 7 months ago (2016-05-17 17:33:56 UTC) #24
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1974413003/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1974413003/40001
4 years, 7 months ago (2016-05-17 17:35:22 UTC) #26
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: win_chromium_x64_rel_ng on tryserver.chromium.win (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.win/builders/win_chromium_x64_rel_ng/builds/214946)
4 years, 7 months ago (2016-05-17 18:14:59 UTC) #28
AlexZ
Updated: Define string constant only when it'll be used somewhere
4 years, 7 months ago (2016-05-17 18:31:08 UTC) #29
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1974413003/60001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1974413003/60001
4 years, 7 months ago (2016-05-17 18:31:45 UTC) #31
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: win_chromium_compile_dbg_ng on tryserver.chromium.win (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.win/builders/win_chromium_compile_dbg_ng/builds/191646)
4 years, 7 months ago (2016-05-17 19:19:44 UTC) #33
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1974413003/80001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1974413003/80001
4 years, 7 months ago (2016-05-17 19:24:11 UTC) #35
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 7 months ago (2016-05-17 20:48:06 UTC) #37
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1974413003/80001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1974413003/80001
4 years, 7 months ago (2016-05-17 20:50:46 UTC) #40
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/184796)
4 years, 7 months ago (2016-05-17 21:00:17 UTC) #42
AlexZ
Need owner's approval. Thanks.
4 years, 7 months ago (2016-05-17 21:04:31 UTC) #43
sky
On 2016/05/14 00:08:34, AlexZ wrote: > On 2016/05/13 23:13:26, sky wrote: > > +jschuh > ...
4 years, 7 months ago (2016-05-17 22:47:00 UTC) #44
AlexZ
On 2016/05/17 22:47:00, sky wrote: > On 2016/05/14 00:08:34, AlexZ wrote: > > On 2016/05/13 ...
4 years, 7 months ago (2016-05-17 22:57:53 UTC) #45
sky
I hope you can appreciate that changes to 'relax' security checks requires extra scrutiny. I'm ...
4 years, 7 months ago (2016-05-17 23:14:21 UTC) #47
Tom Sepez
https://codereview.chromium.org/1974413003/diff/80001/chrome/renderer/chrome_content_renderer_client.cc File chrome/renderer/chrome_content_renderer_client.cc (left): https://codereview.chromium.org/1974413003/diff/80001/chrome/renderer/chrome_content_renderer_client.cc#oldcode915 chrome/renderer/chrome_content_renderer_client.cc:915: (base::EndsWith(app_url_host, "plus.google.com", Pre-existing: EndsWith isn't ideal for these kinds ...
4 years, 7 months ago (2016-05-17 23:23:17 UTC) #48
Tom Sepez
(In case it isn't obvious, the reason we don't want to whitelist all of google ...
4 years, 7 months ago (2016-05-17 23:33:09 UTC) #49
sky
And now I'm going require you to move the checks to a new file that ...
4 years, 7 months ago (2016-05-17 23:35:56 UTC) #50
AlexZ
On 2016/05/17 23:14:21, sky wrote: > I hope you can appreciate that changes to 'relax' ...
4 years, 7 months ago (2016-05-17 23:37:39 UTC) #51
chromium-reviews
What would be a good place? Do you have an example? Thanks. On Tue, May ...
4 years, 7 months ago (2016-05-18 00:26:19 UTC) #52
sky
How about naming the file app_categorizer in the same directory with the functions, IsPhotosApp(const GURL&) ...
4 years, 7 months ago (2016-05-18 15:51:47 UTC) #53
AlexZ
PTAL. Thanks. https://codereview.chromium.org/1974413003/diff/80001/chrome/renderer/chrome_content_renderer_client.cc File chrome/renderer/chrome_content_renderer_client.cc (left): https://codereview.chromium.org/1974413003/diff/80001/chrome/renderer/chrome_content_renderer_client.cc#oldcode915 chrome/renderer/chrome_content_renderer_client.cc:915: (base::EndsWith(app_url_host, "plus.google.com", This should actually be an ...
4 years, 7 months ago (2016-05-18 23:05:23 UTC) #57
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1974413003/140001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1974413003/140001
4 years, 7 months ago (2016-05-18 23:08:48 UTC) #60
Tom Sepez
https://codereview.chromium.org/1974413003/diff/140001/chrome/renderer/OWNERS File chrome/renderer/OWNERS (right): https://codereview.chromium.org/1974413003/diff/140001/chrome/renderer/OWNERS#newcode6 chrome/renderer/OWNERS:6: per-file app_categorizer*=tsepez@chromium.org add per-file app_categorizer*=set noparent per-file app_categorizer*=jschuh@chromium.org per-file ...
4 years, 7 months ago (2016-05-18 23:42:19 UTC) #61
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 7 months ago (2016-05-19 00:14:06 UTC) #63
sky
https://codereview.chromium.org/1974413003/diff/140001/chrome/renderer/app_categorizer.h File chrome/renderer/app_categorizer.h (right): https://codereview.chromium.org/1974413003/diff/140001/chrome/renderer/app_categorizer.h#newcode1 chrome/renderer/app_categorizer.h:1: // Copyright (c) 2016 The Chromium Authors. All rights ...
4 years, 7 months ago (2016-05-19 15:43:10 UTC) #64
AlexZ
PTAL. Thanks. https://codereview.chromium.org/1974413003/diff/140001/chrome/renderer/OWNERS File chrome/renderer/OWNERS (right): https://codereview.chromium.org/1974413003/diff/140001/chrome/renderer/OWNERS#newcode6 chrome/renderer/OWNERS:6: per-file app_categorizer*=tsepez@chromium.org On 2016/05/18 23:42:19, Tom Sepez ...
4 years, 7 months ago (2016-05-19 16:18:52 UTC) #66
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1974413003/160001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1974413003/160001
4 years, 7 months ago (2016-05-19 16:18:56 UTC) #67
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 7 months ago (2016-05-19 16:59:41 UTC) #69
Tom Sepez
lgtm https://codereview.chromium.org/1974413003/diff/140001/chrome/renderer/app_categorizer.cc File chrome/renderer/app_categorizer.cc (right): https://codereview.chromium.org/1974413003/diff/140001/chrome/renderer/app_categorizer.cc#newcode43 chrome/renderer/app_categorizer.cc:43: bool IsHangoutsUrl(const GURL& url) { On 2016/05/19 16:18:51, ...
4 years, 7 months ago (2016-05-20 16:35:09 UTC) #70
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1974413003/160001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1974413003/160001
4 years, 7 months ago (2016-05-20 17:15:19 UTC) #73
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/187454)
4 years, 7 months ago (2016-05-20 17:22:13 UTC) #75
AlexZ
Still need owner's approval. Thanks.
4 years, 7 months ago (2016-05-20 17:27:09 UTC) #76
sky
LGTM with the following changes https://codereview.chromium.org/1974413003/diff/160001/chrome/renderer/app_categorizer.cc File chrome/renderer/app_categorizer.cc (right): https://codereview.chromium.org/1974413003/diff/160001/chrome/renderer/app_categorizer.cc#newcode28 chrome/renderer/app_categorizer.cc:28: bool isInWhitelistedDomain( is->Is https://codereview.chromium.org/1974413003/diff/160001/chrome/renderer/app_categorizer.cc#newcode29 ...
4 years, 7 months ago (2016-05-20 19:21:42 UTC) #77
AlexZ
https://codereview.chromium.org/1974413003/diff/160001/chrome/renderer/app_categorizer.cc File chrome/renderer/app_categorizer.cc (right): https://codereview.chromium.org/1974413003/diff/160001/chrome/renderer/app_categorizer.cc#newcode28 chrome/renderer/app_categorizer.cc:28: bool isInWhitelistedDomain( On 2016/05/20 19:21:42, sky wrote: > is->Is ...
4 years, 7 months ago (2016-05-20 20:30:54 UTC) #78
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1974413003/180001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1974413003/180001
4 years, 7 months ago (2016-05-20 20:31:29 UTC) #81
commit-bot: I haz the power
Committed patchset #10 (id:180001)
4 years, 7 months ago (2016-05-20 21:36:27 UTC) #83
commit-bot: I haz the power
4 years, 7 months ago (2016-05-20 21:37:35 UTC) #85
Message was sent while issue was closed.
Patchset 10 (id:??) landed as
https://crrev.com/81dcbd6123178d58c5edc53d1453e03f9afa31ca
Cr-Commit-Position: refs/heads/master@{#395172}

Powered by Google App Engine
This is Rietveld 408576698