Index: ash/common/shelf/wm_shelf.cc |
diff --git a/ash/common/shelf/wm_shelf.cc b/ash/common/shelf/wm_shelf.cc |
index 75bf105b16d6c289849621ce533d11f0d35e9c35..72de8ab0b6881a0695e5444e13adaa419ebd8b68 100644 |
--- a/ash/common/shelf/wm_shelf.cc |
+++ b/ash/common/shelf/wm_shelf.cc |
@@ -58,7 +58,7 @@ class WmShelf::AutoHideEventHandler : public ui::EventHandler { |
// WmShelf --------------------------------------------------------------------- |
-WmShelf::WmShelf() : time_last_auto_hide_change_(base::TimeTicks::Now()) {} |
+WmShelf::WmShelf() {} |
WmShelf::~WmShelf() {} |
@@ -213,19 +213,6 @@ void WmShelf::SetAutoHideBehavior(ShelfAutoHideBehavior auto_hide_behavior) { |
if (auto_hide_behavior_ == auto_hide_behavior) |
return; |
- // Force a stack dump when this method is invoked too frequently. |
- // This block is here temporary to help investigate http://crbug.com/665093 . |
- constexpr int kAutoHideRepeatInterval = 1000; |
- constexpr int kMaxAutoHideChanges = 20; |
- if ((base::TimeTicks::Now() - time_last_auto_hide_change_).InMilliseconds() < |
- kAutoHideRepeatInterval) { |
- if (++count_auto_hide_changes_ > kMaxAutoHideChanges) |
- CHECK(false); |
- } else { |
- count_auto_hide_changes_ = 0; |
- } |
- time_last_auto_hide_change_ = base::TimeTicks::Now(); |
- |
auto_hide_behavior_ = auto_hide_behavior; |
WmShell::Get()->shelf_controller()->NotifyShelfAutoHideBehaviorChanged(this); |
WmShell::Get()->NotifyShelfAutoHideBehaviorChanged( |