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

Issue 1515293003: Fix invalid cast in AutofillDialogControllerTest. (Closed)

Created:
5 years ago by krasin
Modified:
5 years ago
CC:
chromium-reviews, rouslan+autofill_chromium.org, bondd+autofillwatch_chromium.org, jdonnelly+autofillwatch_chromium.org, vabr+watchlistautofill_chromium.org, estade+watch_chromium.org, kcc, pcc
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Fix invalid cast in AutofillDialogControllerTest. An instance of autofill::AutofillDialogControllerImpl was converted to its base class, TestAutofillDialogController to bypass protected modifier on view(). This invalid case was found by CFI check: https://www.chromium.org/developers/testing/control-flow-integrity BUG=569102 Committed: https://crrev.com/26049f31cc0fcd73bfaa9b0bc4e4493b32951e79 Cr-Commit-Position: refs/heads/master@{#364872}

Patch Set 1 #

Total comments: 6

Patch Set 2 : remove casts #

Unified diffs Side-by-side diffs Delta from patch set Stats (+18 lines, -11 lines) Patch
M chrome/browser/ui/autofill/autofill_dialog_controller_browsertest.cc View 1 6 chunks +6 lines, -11 lines 0 comments Download
M chrome/browser/ui/autofill/autofill_dialog_controller_impl.h View 1 chunk +12 lines, -0 lines 0 comments Download

Messages

Total messages: 16 (6 generated)
krasin
5 years ago (2015-12-11 22:22:57 UTC) #2
krasin
5 years ago (2015-12-11 22:45:00 UTC) #4
Evan Stade
https://codereview.chromium.org/1515293003/diff/1/chrome/browser/ui/autofill/autofill_dialog_controller_browsertest.cc File chrome/browser/ui/autofill/autofill_dialog_controller_browsertest.cc (right): https://codereview.chromium.org/1515293003/diff/1/chrome/browser/ui/autofill/autofill_dialog_controller_browsertest.cc#newcode526 chrome/browser/ui/autofill/autofill_dialog_controller_browsertest.cc:526: static_cast<AutofillDialogControllerImpl*>(controller())->view()); you can just remove this cast https://codereview.chromium.org/1515293003/diff/1/chrome/browser/ui/autofill/autofill_dialog_controller_browsertest.cc#newcode890 chrome/browser/ui/autofill/autofill_dialog_controller_browsertest.cc:890: ...
5 years ago (2015-12-11 23:17:40 UTC) #5
krasin
Done. Very nice catch again, thx! https://codereview.chromium.org/1515293003/diff/1/chrome/browser/ui/autofill/autofill_dialog_controller_browsertest.cc File chrome/browser/ui/autofill/autofill_dialog_controller_browsertest.cc (right): https://codereview.chromium.org/1515293003/diff/1/chrome/browser/ui/autofill/autofill_dialog_controller_browsertest.cc#newcode526 chrome/browser/ui/autofill/autofill_dialog_controller_browsertest.cc:526: static_cast<AutofillDialogControllerImpl*>(controller())->view()); On 2015/12/11 ...
5 years ago (2015-12-11 23:23:50 UTC) #6
Evan Stade
lgtm
5 years ago (2015-12-11 23:26:49 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1515293003/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1515293003/20001
5 years ago (2015-12-11 23:29:14 UTC) #9
commit-bot: I haz the power
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/144159)
5 years ago (2015-12-12 00:55:05 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1515293003/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1515293003/20001
5 years ago (2015-12-12 00:58:55 UTC) #13
commit-bot: I haz the power
Committed patchset #2 (id:20001)
5 years ago (2015-12-12 02:23:55 UTC) #14
commit-bot: I haz the power
5 years ago (2015-12-12 02:25:23 UTC) #16
Message was sent while issue was closed.
Patchset 2 (id:??) landed as
https://crrev.com/26049f31cc0fcd73bfaa9b0bc4e4493b32951e79
Cr-Commit-Position: refs/heads/master@{#364872}

Powered by Google App Engine
This is Rietveld 408576698