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

Unified Diff: Source/core/dom/ExecutionContext.cpp

Issue 722423004: Remove WindowFocusAllowedIndicator and associated code. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@window_focus
Patch Set: rebase Created 5 years, 8 months 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 | « Source/core/core.gypi ('k') | Source/core/page/WindowFocusAllowedIndicator.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/dom/ExecutionContext.cpp
diff --git a/Source/core/dom/ExecutionContext.cpp b/Source/core/dom/ExecutionContext.cpp
index bdd22fda3c3a3a2abf16bce2367baf1f370dbfb2..a559d1c459d0b23cf46a16752ff19ece544d013a 100644
--- a/Source/core/dom/ExecutionContext.cpp
+++ b/Source/core/dom/ExecutionContext.cpp
@@ -35,7 +35,6 @@
#include "core/html/PublicURLManager.h"
#include "core/inspector/InspectorInstrumentation.h"
#include "core/inspector/ScriptCallStack.h"
-#include "core/page/WindowFocusAllowedIndicator.h"
#include "core/workers/WorkerGlobalScope.h"
#include "core/workers/WorkerThread.h"
#include "wtf/MainThread.h"
@@ -246,10 +245,7 @@ void ExecutionContext::consumeWindowInteraction()
bool ExecutionContext::isWindowInteractionAllowed() const
{
- // FIXME: WindowFocusAllowedIndicator::windowFocusAllowed() is temporary,
- // it will be removed as soon as WebScopedWindowFocusAllowedIndicator will
- // be updated to not use WindowFocusAllowedIndicator.
- return m_windowInteractionTokens > 0 || WindowFocusAllowedIndicator::windowFocusAllowed();
+ return m_windowInteractionTokens > 0;
}
void ExecutionContext::removeURLFromMemoryCache(const KURL& url)
« no previous file with comments | « Source/core/core.gypi ('k') | Source/core/page/WindowFocusAllowedIndicator.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698