Index: chrome/renderer/chrome_content_renderer_client.cc |
diff --git a/chrome/renderer/chrome_content_renderer_client.cc b/chrome/renderer/chrome_content_renderer_client.cc |
index ebdfd13e42e5b4dc4114f4aee9eb769b110e54ce..b9c4e5ce3f005960b51aac0a07d0f297856ffc3c 100644 |
--- a/chrome/renderer/chrome_content_renderer_client.cc |
+++ b/chrome/renderer/chrome_content_renderer_client.cc |
@@ -34,7 +34,6 @@ |
#include "chrome/renderer/autofill/autofill_agent.h" |
#include "chrome/renderer/autofill/password_autofill_manager.h" |
#include "chrome/renderer/autofill/password_generation_manager.h" |
-#include "chrome/renderer/automation/automation_renderer_helper.h" |
#include "chrome/renderer/benchmarking_extension.h" |
#include "chrome/renderer/chrome_render_process_observer.h" |
#include "chrome/renderer/chrome_render_view_observer.h" |
@@ -96,6 +95,10 @@ |
#include "webkit/plugins/ppapi/plugin_module.h" |
#include "webkit/plugins/ppapi/ppapi_interface_factory.h" |
+#if defined(ENABLE_AUTOMATION) |
+#include "chrome/renderer/automation/automation_renderer_helper.h" |
+#endif |
+ |
using autofill::AutofillAgent; |
using autofill::PasswordAutofillManager; |
using autofill::PasswordGenerationManager; |
@@ -321,11 +324,13 @@ void ChromeContentRendererClient::RenderViewCreated( |
new PepperHelper(render_view); |
#endif |
+#if defined(ENABLE_AUTOMATION) |
// Used only for testing/automation. |
if (CommandLine::ForCurrentProcess()->HasSwitch( |
switches::kDomAutomationController)) { |
new AutomationRendererHelper(render_view); |
} |
+#endif |
} |
void ChromeContentRendererClient::SetNumberOfViews(int number_of_views) { |