Commit f690d472 authored by Kevin McNee's avatar Kevin McNee Committed by Commit Bot

Use static_cast instead of reinterpret_cast for downcasting

static_cast is better suited for downcasting since it can check that the
types are related.

/chrome/browser/ui/views/extensions
This CL was uploaded by git cl split.

R=rdevlin.cronin@chromium.org

Change-Id: I5300e111b30d94c6571f090128a32ad638f0f2b8
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2435980
Auto-Submit: Kevin McNee <mcnee@chromium.org>
Reviewed-by: default avatarDevlin <rdevlin.cronin@chromium.org>
Commit-Queue: Devlin <rdevlin.cronin@chromium.org>
Cr-Commit-Position: refs/heads/master@{#811400}
parent a258c342
...@@ -273,7 +273,7 @@ ExtensionUninstallDialogDelegateView::~ExtensionUninstallDialogDelegateView() { ...@@ -273,7 +273,7 @@ ExtensionUninstallDialogDelegateView::~ExtensionUninstallDialogDelegateView() {
// can go away during dialog's lifetime (especially when uninstalling). // can go away during dialog's lifetime (especially when uninstalling).
views::View* anchor_view = GetAnchorView(); views::View* anchor_view = GetAnchorView();
if (anchor_view) { if (anchor_view) {
reinterpret_cast<ToolbarActionView*>(anchor_view) static_cast<ToolbarActionView*>(anchor_view)
->AnimateInkDrop(views::InkDropState::DEACTIVATED, nullptr); ->AnimateInkDrop(views::InkDropState::DEACTIVATED, nullptr);
} }
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment