Commit 57676566 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/policy
This CL was uploaded by git cl split.

R=rsorokin@chromium.org

Change-Id: I5c0f9ac978d5e6c7ed3b71690ea29a734e7e1fc7
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2435819
Auto-Submit: Kevin McNee <mcnee@chromium.org>
Reviewed-by: default avatarRoman Sorokin [CET] <rsorokin@chromium.org>
Commit-Queue: Roman Sorokin [CET] <rsorokin@chromium.org>
Cr-Commit-Position: refs/heads/master@{#811763}
parent c07d9667
...@@ -1352,8 +1352,9 @@ IN_PROC_BROWSER_TEST_F(DeviceLocalAccountTest, ExternalData) { ...@@ -1352,8 +1352,9 @@ IN_PROC_BROWSER_TEST_F(DeviceLocalAccountTest, ExternalData) {
// verify that the underlying policy subsystem will start a fetch // verify that the underlying policy subsystem will start a fetch
// without this request as well, the user_manager::UserManager must be // without this request as well, the user_manager::UserManager must be
// prevented from seeing the policy change. // prevented from seeing the policy change.
reinterpret_cast<chromeos::ChromeUserManagerImpl*>( static_cast<chromeos::ChromeUserManagerImpl*>(
user_manager::UserManager::Get())->StopPolicyObserverForTesting(); user_manager::UserManager::Get())
->StopPolicyObserverForTesting();
UploadDeviceLocalAccountPolicy(); UploadDeviceLocalAccountPolicy();
AddPublicSessionToDevicePolicy(kAccountId1); AddPublicSessionToDevicePolicy(kAccountId1);
......
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