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

Unified Diff: third_party/WebKit/Source/platform/v8_inspector/InspectedContext.cpp

Issue 2179683002: [DevTools] Cleanup v8_inspector API part 2. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: breakDetails Created 4 years, 5 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
Index: third_party/WebKit/Source/platform/v8_inspector/InspectedContext.cpp
diff --git a/third_party/WebKit/Source/platform/v8_inspector/InspectedContext.cpp b/third_party/WebKit/Source/platform/v8_inspector/InspectedContext.cpp
index 5b52e015a5436383989cf30a72017f8e324ca449..bf418196b7a958c93b0ee8e3d05527a8ea80eb93 100644
--- a/third_party/WebKit/Source/platform/v8_inspector/InspectedContext.cpp
+++ b/third_party/WebKit/Source/platform/v8_inspector/InspectedContext.cpp
@@ -72,11 +72,6 @@ v8::Isolate* InspectedContext::isolate() const
void InspectedContext::createInjectedScript()
{
DCHECK(!m_injectedScript);
- v8::HandleScope handles(isolate());
- v8::Local<v8::Context> localContext = context();
- v8::Local<v8::Context> callingContext = isolate()->GetCallingContext();
- if (!callingContext.IsEmpty() && !m_debugger->client()->callingContextCanAccessContext(callingContext, localContext))
- return;
m_injectedScript = InjectedScript::create(this);
}

Powered by Google App Engine
This is Rietveld 408576698