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

Unified Diff: content/browser/devtools/devtools_http_handler_impl.cc

Issue 59993002: DevTools: Include Android package name into json/version response. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 7 years, 1 month 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 | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/devtools/devtools_http_handler_impl.cc
diff --git a/content/browser/devtools/devtools_http_handler_impl.cc b/content/browser/devtools/devtools_http_handler_impl.cc
index cd6cf8f2f0c1428a1ed7478e006a30c4ab5d5535..1d0fca1e2824f007b7d5856b5be6e696d113b25c 100644
--- a/content/browser/devtools/devtools_http_handler_impl.cc
+++ b/content/browser/devtools/devtools_http_handler_impl.cc
@@ -40,6 +40,10 @@
#include "webkit/common/user_agent/user_agent.h"
#include "webkit/common/user_agent/user_agent_util.h"
+#if defined(OS_ANDROID)
+#include "base/android/build_info.h"
+#endif
+
namespace content {
namespace {
@@ -453,6 +457,10 @@ void DevToolsHttpHandlerImpl::OnJsonRequestUI(
version.SetString("Browser", content::GetContentClient()->GetProduct());
version.SetString("User-Agent",
webkit_glue::GetUserAgent(GURL(kAboutBlankURL)));
+#if defined(OS_ANDROID)
+ version.SetString("Android-Package",
+ base::android::BuildInfo::GetInstance()->package_name());
+#endif
SendJson(connection_id, net::HTTP_OK, &version, std::string());
return;
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698