From 14bd3b14f60343740a21e2ce5ae1f35644f7f4ac Mon Sep 17 00:00:00 2001 From: "yurys@chromium.org" Date: Sun, 31 Jan 2010 08:31:08 +0000 Subject: Revert "DevTools: load injected script using WebKit API" TBR=pfeldman Review URL: http://codereview.chromium.org/558064 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@37660 0039d316-1c4b-4281-b951-d872f2087c98 --- chrome/renderer/devtools_agent.cc | 15 --------------- 1 file changed, 15 deletions(-) (limited to 'chrome/renderer/devtools_agent.cc') diff --git a/chrome/renderer/devtools_agent.cc b/chrome/renderer/devtools_agent.cc index 57c2f20..5d5373a 100644 --- a/chrome/renderer/devtools_agent.cc +++ b/chrome/renderer/devtools_agent.cc @@ -8,18 +8,15 @@ #include "chrome/common/render_messages.h" #include "chrome/renderer/devtools_agent_filter.h" #include "chrome/renderer/render_view.h" -#include "grit/webkit_resources.h" #include "third_party/WebKit/WebKit/chromium/public/WebDevToolsAgent.h" #include "third_party/WebKit/WebKit/chromium/public/WebDevToolsMessageData.h" #include "third_party/WebKit/WebKit/chromium/public/WebPoint.h" #include "third_party/WebKit/WebKit/chromium/public/WebString.h" #include "webkit/glue/devtools/devtools_message_data.h" -#include "webkit/glue/webkit_glue.h" using WebKit::WebDevToolsAgent; using WebKit::WebPoint; using WebKit::WebString; -using WebKit::WebCString; using WebKit::WebVector; using WebKit::WebView; @@ -82,18 +79,6 @@ void DevToolsAgent::runtimeFeatureStateChanged(const WebKit::WebString& feature, enabled)); } -WebCString DevToolsAgent::injectedScriptSource() { - base::StringPiece injectjsWebkit = - webkit_glue::GetDataResource(IDR_DEVTOOLS_INJECT_WEBKIT_JS); - return WebCString(injectjsWebkit.as_string().c_str()); -} - -WebCString DevToolsAgent::injectedScriptDispatcherSource() { - base::StringPiece injectDispatchjs = - webkit_glue::GetDataResource(IDR_DEVTOOLS_INJECT_DISPATCH_JS); - return WebCString(injectDispatchjs.as_string().c_str()); -} - // static DevToolsAgent* DevToolsAgent::FromHostId(int host_id) { std::map::iterator it = -- cgit v1.1