| Index: Source/core/inspector/InjectedScriptManager.cpp
|
| diff --git a/Source/core/inspector/InjectedScriptManager.cpp b/Source/core/inspector/InjectedScriptManager.cpp
|
| index a2e7ecc483e956c9dfacd285698f62305b1df0c0..5d1e19bb12020bb1da9c362fcd72226e3d0c5339 100644
|
| --- a/Source/core/inspector/InjectedScriptManager.cpp
|
| +++ b/Source/core/inspector/InjectedScriptManager.cpp
|
| @@ -32,11 +32,12 @@
|
| #include "core/inspector/InjectedScriptManager.h"
|
|
|
| #include "bindings/core/v8/ScriptValue.h"
|
| -#include "core/InjectedScriptSource.h"
|
| #include "core/inspector/InjectedScript.h"
|
| #include "core/inspector/InjectedScriptHost.h"
|
| #include "core/inspector/JSONParser.h"
|
| #include "platform/JSONValues.h"
|
| +#include "public/platform/Platform.h"
|
| +#include "public/platform/WebData.h"
|
| #include "wtf/PassOwnPtr.h"
|
|
|
| namespace blink {
|
| @@ -157,7 +158,8 @@ void InjectedScriptManager::releaseObjectGroup(const String& objectGroup)
|
|
|
| String InjectedScriptManager::injectedScriptSource()
|
| {
|
| - return String(reinterpret_cast<const char*>(InjectedScriptSource_js), sizeof(InjectedScriptSource_js));
|
| + const blink::WebData& injectedScriptSourceResource = blink::Platform::current()->loadResource("InjectedScriptSource.js");
|
| + return String(injectedScriptSourceResource.data(), injectedScriptSourceResource.size());
|
| }
|
|
|
| InjectedScript InjectedScriptManager::injectedScriptFor(ScriptState* inspectedScriptState)
|
|
|