Commit 847e0cad 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/chromeos/crostini
This CL was uploaded by git cl split.

R=hollingum@google.com

Change-Id: I5fa53d165710036fd346b5d864251502ce57cbc0
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2435979
Auto-Submit: Kevin McNee <mcnee@chromium.org>
Reviewed-by: default avatarNic Hollingum <hollingum@google.com>
Commit-Queue: Nic Hollingum <hollingum@google.com>
Cr-Commit-Position: refs/heads/master@{#811414}
parent 1d26d408
...@@ -60,7 +60,7 @@ class CrostiniUpgradeAvailableNotificationTest ...@@ -60,7 +60,7 @@ class CrostiniUpgradeAvailableNotificationTest
chromeos::CrostiniUpgraderDialog* GetCrostiniUpgraderDialog() { chromeos::CrostiniUpgraderDialog* GetCrostiniUpgraderDialog() {
auto url = GURL{chrome::kChromeUICrostiniUpgraderUrl}; auto url = GURL{chrome::kChromeUICrostiniUpgraderUrl};
return reinterpret_cast<chromeos::CrostiniUpgraderDialog*>( return static_cast<chromeos::CrostiniUpgraderDialog*>(
chromeos::SystemWebDialogDelegate::FindInstance(url.spec())); chromeos::SystemWebDialogDelegate::FindInstance(url.spec()));
} }
......
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