Index: third_party/WebKit/Source/core/frame/LocalDOMWindow.cpp |
diff --git a/third_party/WebKit/Source/core/frame/LocalDOMWindow.cpp b/third_party/WebKit/Source/core/frame/LocalDOMWindow.cpp |
index effbefbb46f186b7f95c195705259317585868d5..572c4e7c1e01476aa58d200e8b3e5e3cb613e8c5 100644 |
--- a/third_party/WebKit/Source/core/frame/LocalDOMWindow.cpp |
+++ b/third_party/WebKit/Source/core/frame/LocalDOMWindow.cpp |
@@ -1440,10 +1440,6 @@ void LocalDOMWindow::AddedEventListener( |
AddUnloadEventListener(this); |
} else if (event_type == EventTypeNames::beforeunload) { |
UseCounter::Count(document(), UseCounter::kDocumentBeforeUnloadRegistered); |
- // This is confusingly named. It doesn't actually add the listener. It |
- // just increments a count so that we know we have listeners registered |
- // for the purposes of determining if we can fast terminate the renderer |
- // process. |
AddBeforeUnloadEventListener(this); |
if (GetFrame() && !GetFrame()->IsMainFrame()) |
UseCounter::Count(document(), |