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

Issue 12328030: Magnifier: add validation of root window. (Closed)

Created:
7 years, 10 months ago by yoshiki
Modified:
7 years, 9 months ago
Reviewers:
oshima
CC:
chromium-reviews, sadrul, ben+watch_chromium.org
Visibility:
Public.

Description

Magnifier: add validation of root window. Changes: - Adds null check where root_window_ is used because |root_window_| became nullable. - Adds validation if the root window is valid on public methods. If the root window is invalid, uses the primary root window. If by chance there are no root window, the method returns immediately. - Fixes a bug in OnMouseEvent(), changing the order of assigning to |point_of_interest_|. BUG=176335 TEST=none

Patch Set 1 #

Patch Set 2 : review fix #

Total comments: 10

Patch Set 3 : review fix #

Patch Set 4 : fix crash #

Patch Set 5 : add comment. #

Total comments: 1

Patch Set 6 : review fix #

Patch Set 7 : review fix #

Total comments: 8
Unified diffs Side-by-side diffs Delta from patch set Stats (+59 lines, -8 lines) Patch
M ash/magnifier/magnification_controller.cc View 1 2 3 4 5 6 13 chunks +59 lines, -8 lines 8 comments Download

Messages

Total messages: 13 (0 generated)
yoshiki
@oshima: Could you take a look? Thanks,
7 years, 10 months ago (2013-02-21 04:20:21 UTC) #1
oshima
On 2013/02/21 04:20:21, yoshiki wrote: > @oshima: Could you take a look? Thanks, Can you ...
7 years, 10 months ago (2013-02-21 04:32:42 UTC) #2
yoshiki
On 2013/02/21 04:32:42, oshima wrote: > On 2013/02/21 04:20:21, yoshiki wrote: > > @oshima: Could ...
7 years, 10 months ago (2013-02-21 11:43:03 UTC) #3
oshima
https://codereview.chromium.org/12328030/diff/4002/ash/magnifier/magnification_controller.cc File ash/magnifier/magnification_controller.cc (right): https://codereview.chromium.org/12328030/diff/4002/ash/magnifier/magnification_controller.cc#newcode53 ash/magnifier/magnification_controller.cc:53: } Just return std::find(...) != root_windows.end(); https://codereview.chromium.org/12328030/diff/4002/ash/magnifier/magnification_controller.cc#newcode458 ash/magnifier/magnification_controller.cc:458: root_window_ ...
7 years, 10 months ago (2013-02-21 16:45:06 UTC) #4
yoshiki
@oshima: PTAL https://codereview.chromium.org/12328030/diff/4002/ash/magnifier/magnification_controller.cc File ash/magnifier/magnification_controller.cc (right): https://codereview.chromium.org/12328030/diff/4002/ash/magnifier/magnification_controller.cc#newcode53 ash/magnifier/magnification_controller.cc:53: } On 2013/02/21 16:45:06, oshima wrote: > ...
7 years, 10 months ago (2013-02-25 12:32:44 UTC) #5
bshe
On 2013/02/25 12:32:44, yoshiki wrote: > @oshima: PTAL > > https://codereview.chromium.org/12328030/diff/4002/ash/magnifier/magnification_controller.cc > File ash/magnifier/magnification_controller.cc (right): ...
7 years, 10 months ago (2013-02-25 18:46:54 UTC) #6
yoshiki
On 2013/02/25 18:46:54, bshe wrote: > On 2013/02/25 12:32:44, yoshiki wrote: > > @oshima: PTAL ...
7 years, 10 months ago (2013-02-26 12:39:17 UTC) #7
oshima
https://codereview.chromium.org/12328030/diff/13006/ash/magnifier/magnification_controller.cc File ash/magnifier/magnification_controller.cc (right): https://codereview.chromium.org/12328030/diff/13006/ash/magnifier/magnification_controller.cc#newcode141 ash/magnifier/magnification_controller.cc:141: // at shutdown. can't you destroy this object before ...
7 years, 10 months ago (2013-02-26 18:57:38 UTC) #8
yoshiki
On 2013/02/26 18:57:38, oshima wrote: > https://codereview.chromium.org/12328030/diff/13006/ash/magnifier/magnification_controller.cc > File ash/magnifier/magnification_controller.cc (right): > > https://codereview.chromium.org/12328030/diff/13006/ash/magnifier/magnification_controller.cc#newcode141 > ...
7 years, 9 months ago (2013-02-27 14:44:49 UTC) #9
oshima
Sorry if my comment wasn't clear. You should delete this *before* all root windows are ...
7 years, 9 months ago (2013-02-27 17:21:43 UTC) #10
oshima
I looked at the code and this instance is indeed deleted *before* root windows are ...
7 years, 9 months ago (2013-02-27 19:07:04 UTC) #11
oshima
On 2013/02/27 19:07:04, oshima wrote: > I looked at the code and this instance is ...
7 years, 9 months ago (2013-02-27 19:18:52 UTC) #12
yoshiki
7 years, 9 months ago (2013-02-28 01:47:19 UTC) #13
Ok, closing this.

Powered by Google App Engine
This is Rietveld 408576698