Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(411)

Unified Diff: ios/web/active_state_manager_impl.mm

Issue 2480203002: ui: Cleanup class/struct forward declarations (Closed)
Patch Set: Sync CL to position 430550 Created 4 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ios/chrome/test/ios_chrome_unit_test_suite.mm ('k') | ios/web/web_state/ui/crw_web_controller.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 0fa3cda373ee5e2c486ed4548286bf19b52b6b25..8dc052d89d95f1b61b072b27538a0df95439ec1c 100644
--- a/ios/web/active_state_manager_impl.mm
+++ b/ios/web/active_state_manager_impl.mm
@@ -14,12 +14,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);
@@ -38,12 +32,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) {
« no previous file with comments | « ios/chrome/test/ios_chrome_unit_test_suite.mm ('k') | ios/web/web_state/ui/crw_web_controller.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698