summaryrefslogtreecommitdiffstats
path: root/chrome/renderer/render_thread.cc
diff options
context:
space:
mode:
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());