Commit 5b7f1bb0 authored by bauerb's avatar bauerb Committed by Commit bot

Check that only a single delegate for the Android PolicyProvider exists.

BUG=484997

Review URL: https://codereview.chromium.org/1129323005

Cr-Commit-Position: refs/heads/master@{#329378}
parent e13e3de6
...@@ -32,6 +32,7 @@ void PolicyProviderAndroid::SetShouldWaitForPolicy( ...@@ -32,6 +32,7 @@ void PolicyProviderAndroid::SetShouldWaitForPolicy(
void PolicyProviderAndroid::SetDelegate( void PolicyProviderAndroid::SetDelegate(
PolicyProviderAndroidDelegate* delegate) { PolicyProviderAndroidDelegate* delegate) {
DCHECK(!delegate || !delegate_);
delegate_ = delegate; delegate_ = delegate;
} }
......
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