Commit 64804879 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.

/content/browser/renderer_host/render_widget_host_view_aura_browsertest.cc
This CL was uploaded by git cl split.

R=sadrul@chromium.org

Change-Id: If9ab935e6aa1dbd305c21edc4826e734c3084b42
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2435883
Auto-Submit: Kevin McNee <mcnee@chromium.org>
Reviewed-by: default avatarSadrul Chowdhury <sadrul@chromium.org>
Commit-Queue: Sadrul Chowdhury <sadrul@chromium.org>
Cr-Commit-Position: refs/heads/master@{#811365}
parent 6197ec27
......@@ -208,13 +208,13 @@ class RenderWidgetHostViewAuraDevtoolsBrowserTest
protected:
aura::Window* window() {
return reinterpret_cast<content::RenderWidgetHostViewAura*>(
return static_cast<content::RenderWidgetHostViewAura*>(
shell()->web_contents()->GetRenderWidgetHostView())
->window();
}
bool HasChildPopup() const {
return reinterpret_cast<content::RenderWidgetHostViewAura*>(
return static_cast<content::RenderWidgetHostViewAura*>(
shell()->web_contents()->GetRenderWidgetHostView())
->popup_child_host_view_;
}
......
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