Chromium Code Reviews| Index: chrome/browser/automation/automation_provider.cc |
| diff --git a/chrome/browser/automation/automation_provider.cc b/chrome/browser/automation/automation_provider.cc |
| index 1dae958aaa5d51edb814fa3d44a10cbdb7282d21..ff36700b1729dd49271110befd48bb06c935f855 100644 |
| --- a/chrome/browser/automation/automation_provider.cc |
| +++ b/chrome/browser/automation/automation_provider.cc |
| @@ -7,6 +7,7 @@ |
| #include <set> |
| #include "base/callback.h" |
| +#include "base/command_line.h" |
| #include "base/debug/trace_event.h" |
| #include "base/file_path.h" |
| #include "base/json/json_reader.h" |
| @@ -123,6 +124,10 @@ AutomationProvider::AutomationProvider(Profile* profile) |
| new ExtensionTestResultNotificationObserver(this)); |
| g_browser_process->AddRefModule(); |
| + if (CommandLine::ForCurrentProcess()->HasSwitch( |
|
Paweł Hajdan Jr.
2011/08/18 22:35:42
Rather: reinitialize_on_channel_error_(CommandLine
|
| + switches::kAutomationReinitializeOnChannelError)) |
| + reinitialize_on_channel_error_ = true; |
| + |
| TRACE_EVENT_END_ETW("AutomationProvider::AutomationProvider", 0, ""); |
| } |