summaryrefslogtreecommitdiffstats
path: root/chrome/renderer/render_thread.cc
diff options
context:
space:
mode:
authorkkania@chromium.org <kkania@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-03-17 00:19:32 +0000
committerkkania@chromium.org <kkania@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-03-17 00:19:32 +0000
commitc158a6699a9f5e5f56d913c0b06e0d83e8358591 (patch)
tree727e3eb0a5aac10658e35d2e389b057faed103bf /chrome/renderer/render_thread.cc
parentc7eca5b2c6f9a527d18d00486d2d7cd7dca9c7b1 (diff)
downloadchromium_src-c158a6699a9f5e5f56d913c0b06e0d83e8358591.zip
chromium_src-c158a6699a9f5e5f56d913c0b06e0d83e8358591.tar.gz
chromium_src-c158a6699a9f5e5f56d913c0b06e0d83e8358591.tar.bz2
Add support for DOM interaction in browser tests via C++.
BUG=none TEST=none Review URL: http://codereview.chromium.org/660046 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@41789 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/renderer/render_thread.cc')
-rw-r--r--chrome/renderer/render_thread.cc5
1 files changed, 5 insertions, 0 deletions
diff --git a/chrome/renderer/render_thread.cc b/chrome/renderer/render_thread.cc
index bc9a2a5..25ce100 100644
--- a/chrome/renderer/render_thread.cc
+++ b/chrome/renderer/render_thread.cc
@@ -42,6 +42,7 @@
#include "base/scoped_handle.h"
#include "chrome/plugin/plugin_channel_base.h"
#endif
+#include "chrome/renderer/automation/dom_automation_v8_extension.h"
#include "chrome/renderer/cookie_message_filter.h"
#include "chrome/renderer/devtools_agent_filter.h"
#include "chrome/renderer/extension_groups.h"
@@ -789,6 +790,10 @@ void RenderThread::EnsureWebKitInitialized() {
extensions_v8::PlaybackExtension::Get());
}
+ if (command_line.HasSwitch(switches::kDomAutomationController)) {
+ WebScriptController::registerExtension(DomAutomationV8Extension::Get());
+ }
+
WebRuntimeFeatures::enableMediaPlayer(
RenderProcess::current()->HasInitializedMediaLibrary());