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

Unified Diff: Source/WebKit/chromium/src/WebViewImpl.cpp

Issue 14188004: Remove UserScript support, which is not used by Chromium (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Remove one more test Created 7 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
Index: Source/WebKit/chromium/src/WebViewImpl.cpp
diff --git a/Source/WebKit/chromium/src/WebViewImpl.cpp b/Source/WebKit/chromium/src/WebViewImpl.cpp
index ab40ce580fc4c427ea870288d472384bcf160b4c..b37364dbe13f1093d87a0949125ab841c2609d3c 100644
--- a/Source/WebKit/chromium/src/WebViewImpl.cpp
+++ b/Source/WebKit/chromium/src/WebViewImpl.cpp
@@ -3592,22 +3592,6 @@ void WebViewImpl::setSelectionColors(unsigned activeBackgroundColor,
#endif
}
-void WebView::addUserScript(const WebString& sourceCode,
- const WebVector<WebString>& patternsIn,
- WebView::UserScriptInjectAt injectAt,
- WebView::UserContentInjectIn injectIn)
-{
- Vector<String> patterns;
- for (size_t i = 0; i < patternsIn.size(); ++i)
- patterns.append(patternsIn[i]);
-
- PageGroup* pageGroup = PageGroup::pageGroup(pageGroupName);
- RefPtr<DOMWrapperWorld> world(DOMWrapperWorld::createUninitializedWorld());
- pageGroup->addUserScriptToWorld(world.get(), sourceCode, WebURL(), patterns, Vector<String>(),
- static_cast<UserScriptInjectionTime>(injectAt),
- static_cast<UserContentInjectedFrames>(injectIn));
-}
-
void WebView::addUserStyleSheet(const WebString& sourceCode,
const WebVector<WebString>& patternsIn,
WebView::UserContentInjectIn injectIn,
« no previous file with comments | « Source/WebKit/chromium/src/AssertMatchingEnums.cpp ('k') | Tools/DumpRenderTree/chromium/TestRunner/src/TestRunner.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698