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

Unified Diff: Source/core/inspector/WorkerRuntimeAgent.cpp

Issue 300393002: Merge DevTools Refactor CL to Blink36 (Closed) Base URL: svn://svn.chromium.org/blink/branches/dart/1985
Patch Set: Created 6 years, 7 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: Source/core/inspector/WorkerRuntimeAgent.cpp
diff --git a/Source/core/inspector/WorkerRuntimeAgent.cpp b/Source/core/inspector/WorkerRuntimeAgent.cpp
index d1f8aef9f6e0d1e45e7eec23a406a75f74202fdc..5ace7a75ee7440b30e122ff1788ca80b33c1e01b 100644
--- a/Source/core/inspector/WorkerRuntimeAgent.cpp
+++ b/Source/core/inspector/WorkerRuntimeAgent.cpp
@@ -68,12 +68,12 @@ void WorkerRuntimeAgent::enable(ErrorString* errorString)
addExecutionContextToFrontend(m_workerGlobalScope->script()->scriptState(), true, m_workerGlobalScope->url(), "");
}
-InjectedScript WorkerRuntimeAgent::injectedScriptForEval(ErrorString* error, const int* executionContextId)
+InjectedScript& WorkerRuntimeAgent::injectedScriptForEval(ErrorString* error, const int* executionContextId)
{
if (!executionContextId)
return injectedScriptManager()->injectedScriptFor(m_workerGlobalScope->script()->scriptState());
- InjectedScript injectedScript = injectedScriptManager()->injectedScriptForId(*executionContextId);
+ InjectedScript& injectedScript = injectedScriptManager()->injectedScriptForId(*executionContextId);
if (injectedScript.isEmpty())
*error = "Execution context with given id not found.";
return injectedScript;

Powered by Google App Engine
This is Rietveld 408576698