summaryrefslogtreecommitdiffstats
path: root/android_webview/native
diff options
context:
space:
mode:
authorkbr@chromium.org <kbr@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2014-06-04 22:27:20 +0000
committerkbr@chromium.org <kbr@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2014-06-04 22:27:20 +0000
commit0e60fce0f20f6b7cfadf52fb80cef888f007a2fe (patch)
treedd8a1bf349aac96d10904bf3854e46037bb0db95 /android_webview/native
parent9de395e4b2e4c7aed021813373544e219271b8f1 (diff)
downloadchromium_src-0e60fce0f20f6b7cfadf52fb80cef888f007a2fe.zip
chromium_src-0e60fce0f20f6b7cfadf52fb80cef888f007a2fe.tar.gz
chromium_src-0e60fce0f20f6b7cfadf52fb80cef888f007a2fe.tar.bz2
Support ephemeral ports in DevTools and Telemetry.
In DevTools, if port 0 is requested, query the HttpServer for the port actually used, and write the port to a well-known location: the file "DevToolsActivePort" in the user's profile directory. Currently this handshaking protocol is only implemented for Chromium, not content_shell, but this is the only scenario in which flakiness has been observed. Add a hidden command-line argument to Telemetry's desktop browser backend which uses this new code path. The bots will specify this argument. Telemetry must support browsers two releases back, so once Chrome 37 goes to the Stable channel, the old initialization path will be removed. Issue 379980 has been filed to remove the old code. Tested with and without the new --use-devtools-active-port command line argument with -v. Verified the new code path is taken. Once these changes are committed, the bots will begin verifying this new code. BUG=372560 NOTRY=true Review URL: https://codereview.chromium.org/315503002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@274935 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'android_webview/native')
-rw-r--r--android_webview/native/aw_dev_tools_server.cc4
1 files changed, 3 insertions, 1 deletions
diff --git a/android_webview/native/aw_dev_tools_server.cc b/android_webview/native/aw_dev_tools_server.cc
index 35b6455..6890655 100644
--- a/android_webview/native/aw_dev_tools_server.cc
+++ b/android_webview/native/aw_dev_tools_server.cc
@@ -6,6 +6,7 @@
#include "android_webview/native/aw_contents.h"
#include "base/bind.h"
+#include "base/files/file_path.h"
#include "base/json/json_writer.h"
#include "base/strings/stringprintf.h"
#include "base/strings/utf_string_conversions.h"
@@ -180,7 +181,8 @@ void AwDevToolsServer::Start() {
"",
base::Bind(&content::CanUserConnectToDevTools)),
base::StringPrintf(kFrontEndURL, content::GetWebKitRevision().c_str()),
- new AwDevToolsServerDelegate());
+ new AwDevToolsServerDelegate(),
+ base::FilePath());
}
void AwDevToolsServer::Stop() {