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

Unified Diff: chrome/browser/automation/automation_provider.cc

Issue 7648053: [chromedriver] Add chrome.detach option for configuring Chrome not to quit (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: use switch and rebase Created 9 years, 4 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
« no previous file with comments | « no previous file | chrome/common/chrome_switches.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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, "");
}
« no previous file with comments | « no previous file | chrome/common/chrome_switches.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698