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

Unified Diff: third_party/WebKit/Source/bindings/core/v8/V8DOMActivityLogger.cpp

Issue 2827763002: Remove context checks in CurrentActivityLogger and CurrentActivityLoggerIfIsolatedWorld (Closed)
Patch Set: Remove toLocalDOMWindow checks Created 3 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/bindings/core/v8/V8DOMActivityLogger.cpp
diff --git a/third_party/WebKit/Source/bindings/core/v8/V8DOMActivityLogger.cpp b/third_party/WebKit/Source/bindings/core/v8/V8DOMActivityLogger.cpp
index c36709a21b6ad726b24564caf94de9499c60cf2c..91de205309997fee81e673e97be07f71b62189ef 100644
--- a/third_party/WebKit/Source/bindings/core/v8/V8DOMActivityLogger.cpp
+++ b/third_party/WebKit/Source/bindings/core/v8/V8DOMActivityLogger.cpp
@@ -83,8 +83,6 @@ V8DOMActivityLogger* V8DOMActivityLogger::CurrentActivityLogger() {
v8::HandleScope handle_scope(isolate);
v8::Local<v8::Context> context = isolate->GetCurrentContext();
- if (context.IsEmpty() || !ToLocalDOMWindow(context))
- return 0;
V8PerContextData* context_data = ScriptState::From(context)->PerContextData();
if (!context_data)
@@ -101,8 +99,6 @@ V8DOMActivityLogger::CurrentActivityLoggerIfIsolatedWorld() {
v8::HandleScope handle_scope(isolate);
v8::Local<v8::Context> context = isolate->GetCurrentContext();
- if (context.IsEmpty() || !ToLocalDOMWindow(context))
- return 0;
ScriptState* script_state = ScriptState::From(context);
if (!script_state->World().IsIsolatedWorld())
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698