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

Issue 2702423004: Validate incoming window properties. (Closed)

Created:
3 years, 10 months ago by Elliot Glaysher
Modified:
3 years, 10 months ago
Reviewers:
Tom Sepez, msw, sky
CC:
chromium-reviews, kalyank, sadrul, tfarina
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

aura-mus: Validate incoming window properties. This adds a validator function to the integral type version of PropertyConverter::RegisterProperty() and rejects changes if the incoming value, passed to the validator, returns false. BUG=654924 Review-Url: https://codereview.chromium.org/2702423004 Cr-Commit-Position: refs/heads/master@{#452990} Committed: https://chromium.googlesource.com/chromium/src/+/19e1e20024109653910be72bd7ccbcc866a47c26

Patch Set 1 #

Patch Set 2 : Fix compile of unit tests #

Patch Set 3 : maybe fix windows dependencies #

Patch Set 4 : Add missing file. #

Patch Set 5 : Another attempt at fixing windows #

Patch Set 6 : Add unit test. #

Patch Set 7 : rebase to tot #

Total comments: 8

Patch Set 8 : sky comments #

Total comments: 19

Patch Set 9 : msw comments #

Total comments: 2

Patch Set 10 : Missed this one. #

Total comments: 2

Patch Set 11 : sky comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+165 lines, -20 lines) Patch
M ash/mus/window_manager.cc View 1 2 3 4 5 6 7 2 chunks +9 lines, -4 lines 0 comments Download
M ash/public/cpp/BUILD.gn View 1 chunk +1 line, -0 lines 0 comments Download
M ash/public/cpp/shelf_types.h View 1 2 3 4 5 6 7 8 9 2 chunks +7 lines, -0 lines 0 comments Download
A ash/public/cpp/shelf_types.cc View 1 2 3 4 5 6 7 8 1 chunk +15 lines, -0 lines 0 comments Download
M chrome/browser/ui/views/ash/chrome_browser_main_extra_parts_ash.cc View 1 2 3 4 5 6 7 1 chunk +5 lines, -2 lines 0 comments Download
M ui/aura/mus/property_converter.h View 1 2 3 4 5 6 7 8 4 chunks +20 lines, -4 lines 0 comments Download
M ui/aura/mus/property_converter.cc View 1 2 3 4 5 6 7 8 9 10 3 chunks +56 lines, -5 lines 0 comments Download
M ui/aura/mus/property_converter_unittest.cc View 1 2 3 4 5 6 7 3 chunks +30 lines, -1 line 0 comments Download
M ui/aura/mus/window_tree_client_unittest.cc View 1 2 3 4 5 6 7 8 9 10 1 chunk +9 lines, -3 lines 0 comments Download
M ui/views/mus/mus_client.cc View 1 2 3 4 5 6 7 1 chunk +2 lines, -1 line 0 comments Download
M ui/wm/core/shadow_types.h View 1 2 3 4 5 6 7 8 1 chunk +3 lines, -0 lines 0 comments Download
M ui/wm/core/shadow_types.cc View 1 2 3 4 5 6 7 8 1 chunk +8 lines, -0 lines 0 comments Download

Messages

Total messages: 59 (46 generated)
Elliot Glaysher
This validates those enums and rejects bad values, but it doesn't close the pipe on ...
3 years, 10 months ago (2017-02-23 18:51:20 UTC) #25
Tom Sepez
lgtm
3 years, 10 months ago (2017-02-23 18:52:52 UTC) #26
sky
+msw as he has worked on PropertyConverter. https://codereview.chromium.org/2702423004/diff/120001/ash/public/cpp/shelf_types.h File ash/public/cpp/shelf_types.h (right): https://codereview.chromium.org/2702423004/diff/120001/ash/public/cpp/shelf_types.h#newcode124 ash/public/cpp/shelf_types.h:124: ASH_PUBLIC_EXPORT base::RepeatingCallback<bool(int32_t)> ...
3 years, 10 months ago (2017-02-23 21:02:25 UTC) #30
Elliot Glaysher
https://codereview.chromium.org/2702423004/diff/120001/ash/public/cpp/shelf_types.h File ash/public/cpp/shelf_types.h (right): https://codereview.chromium.org/2702423004/diff/120001/ash/public/cpp/shelf_types.h#newcode124 ash/public/cpp/shelf_types.h:124: ASH_PUBLIC_EXPORT base::RepeatingCallback<bool(int32_t)> On 2017/02/23 21:02:25, sky wrote: > Why ...
3 years, 10 months ago (2017-02-23 22:12:43 UTC) #33
msw
Thanks for working on this; I have some minor comments. https://codereview.chromium.org/2702423004/diff/140001/ash/public/cpp/shelf_types.h File ash/public/cpp/shelf_types.h (right): https://codereview.chromium.org/2702423004/diff/140001/ash/public/cpp/shelf_types.h#newcode122 ...
3 years, 10 months ago (2017-02-23 22:35:12 UTC) #34
Elliot Glaysher
https://codereview.chromium.org/2702423004/diff/140001/ash/public/cpp/shelf_types.h File ash/public/cpp/shelf_types.h (right): https://codereview.chromium.org/2702423004/diff/140001/ash/public/cpp/shelf_types.h#newcode122 ash/public/cpp/shelf_types.h:122: ASH_PUBLIC_EXPORT bool IsValidShelfItemType(int64_t i); On 2017/02/23 22:35:11, msw wrote: ...
3 years, 10 months ago (2017-02-23 22:57:35 UTC) #36
msw
lgtm with a comment nit https://codereview.chromium.org/2702423004/diff/140001/ui/aura/mus/property_converter.cc File ui/aura/mus/property_converter.cc (right): https://codereview.chromium.org/2702423004/diff/140001/ui/aura/mus/property_converter.cc#newcode69 ui/aura/mus/property_converter.cc:69: CreateAcceptAnyValueCallback()); On 2017/02/23 22:57:35, ...
3 years, 10 months ago (2017-02-23 23:22:35 UTC) #38
Elliot Glaysher
https://codereview.chromium.org/2702423004/diff/160001/ash/public/cpp/shelf_types.h File ash/public/cpp/shelf_types.h (right): https://codereview.chromium.org/2702423004/diff/160001/ash/public/cpp/shelf_types.h#newcode121 ash/public/cpp/shelf_types.h:121: // Returns true if |i| is a valid ShelfItemType. ...
3 years, 10 months ago (2017-02-23 23:26:21 UTC) #40
sky
https://codereview.chromium.org/2702423004/diff/180001/ui/aura/mus/property_converter.cc File ui/aura/mus/property_converter.cc (right): https://codereview.chromium.org/2702423004/diff/180001/ui/aura/mus/property_converter.cc#newcode289 ui/aura/mus/property_converter.cc:289: *value = mojo::ConvertTo<PrimitiveType>(transport_data); Isn't this line the same as ...
3 years, 10 months ago (2017-02-24 04:09:42 UTC) #44
Elliot Glaysher
https://codereview.chromium.org/2702423004/diff/180001/ui/aura/mus/property_converter.cc File ui/aura/mus/property_converter.cc (right): https://codereview.chromium.org/2702423004/diff/180001/ui/aura/mus/property_converter.cc#newcode289 ui/aura/mus/property_converter.cc:289: *value = mojo::ConvertTo<PrimitiveType>(transport_data); On 2017/02/24 04:09:42, sky wrote: > ...
3 years, 10 months ago (2017-02-24 20:50:43 UTC) #51
sky
LGTM
3 years, 10 months ago (2017-02-24 21:27:44 UTC) #52
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/2702423004/200001
3 years, 10 months ago (2017-02-24 21:29:16 UTC) #56
commit-bot: I haz the power
3 years, 10 months ago (2017-02-24 23:24:54 UTC) #59
Message was sent while issue was closed.
Committed patchset #11 (id:200001) as
https://chromium.googlesource.com/chromium/src/+/19e1e20024109653910be72bd7cc...

Powered by Google App Engine
This is Rietveld 408576698