| Index: ios/web/active_state_manager_impl.mm
|
| diff --git a/ios/web/active_state_manager_impl.mm b/ios/web/active_state_manager_impl.mm
|
| index ca0fadc24b01a9be54c7211805a5eb39c24b7982..2f6b88671bd45484ce54e737ac347d386e9d26f3 100644
|
| --- a/ios/web/active_state_manager_impl.mm
|
| +++ b/ios/web/active_state_manager_impl.mm
|
| @@ -10,12 +10,6 @@
|
|
|
| namespace web {
|
|
|
| -namespace {
|
| -// The number of ActiveStateManagers that are currently in active state.
|
| -// At most one ActiveStateManager can be active at any given time.
|
| -int g_active_state_manager_active_count = 0;
|
| -} // namespace
|
| -
|
| ActiveStateManagerImpl::ActiveStateManagerImpl(BrowserState* browser_state)
|
| : browser_state_(browser_state), active_(false) {
|
| DCHECK_CURRENTLY_ON(WebThread::UI);
|
| @@ -33,12 +27,6 @@ void ActiveStateManagerImpl::SetActive(bool active) {
|
| if (active == active_) {
|
| return;
|
| }
|
| - if (active) {
|
| - ++g_active_state_manager_active_count;
|
| - } else {
|
| - --g_active_state_manager_active_count;
|
| - }
|
| - DCHECK_GE(1, g_active_state_manager_active_count);
|
| active_ = active;
|
|
|
| if (active) {
|
|
|