chore: remove UnresponsiveSuppressor altogether (#35507)

* chore: drop unresponsive suppressor for menu_mac

* also for views

* header

* chore: remove UnresponsiveSuppressor altogether
This commit is contained in:
Jeremy Rose 2022-09-08 15:49:33 -07:00 committed by GitHub
parent a0c20fef96
commit a0dbae72c8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
8 changed files with 1 additions and 66 deletions

View file

@ -14,7 +14,6 @@
#include "shell/browser/api/electron_api_web_contents_view.h"
#include "shell/browser/browser.h"
#include "shell/browser/native_browser_view.h"
#include "shell/browser/unresponsive_suppressor.h"
#include "shell/browser/web_contents_preferences.h"
#include "shell/browser/window_list.h"
#include "shell/common/color_util.h"
@ -506,8 +505,7 @@ void BrowserWindow::ScheduleUnresponsiveEvent(int ms) {
void BrowserWindow::NotifyWindowUnresponsive() {
window_unresponsive_closure_.Cancel();
if (!window_->IsClosed() && window_->IsEnabled() &&
!IsUnresponsiveEventSuppressed()) {
if (!window_->IsClosed() && window_->IsEnabled()) {
Emit("unresponsive");
}
}