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

Unified Diff: content/shell/browser/shell_devtools_frontend.cc

Issue 2755973003: DevTools: android shouldn't depend on devtools frontend (Closed)
Patch Set: fix Created 3 years, 9 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
Index: content/shell/browser/shell_devtools_frontend.cc
diff --git a/content/shell/browser/shell_devtools_frontend.cc b/content/shell/browser/shell_devtools_frontend.cc
index 0bab673f8edd3befd24d4300abcde6cb965df3ed..4c4eedcfe5f5e395bc52cc8363c8591eee534326 100644
--- a/content/shell/browser/shell_devtools_frontend.cc
+++ b/content/shell/browser/shell_devtools_frontend.cc
@@ -31,6 +31,10 @@
#include "net/url_request/url_fetcher.h"
#include "net/url_request/url_fetcher_response_writer.h"
+#if !defined(OS_ANDROID)
+#include "content/public/browser/devtools_frontend_host.h"
+#endif
+
namespace content {
namespace {
@@ -164,6 +168,7 @@ ShellDevToolsFrontend::~ShellDevToolsFrontend() {
delete pair.first;
}
+#if !defined(OS_ANDROID)
void ShellDevToolsFrontend::RenderViewCreated(
RenderViewHost* render_view_host) {
if (!frontend_host_) {
@@ -173,6 +178,14 @@ void ShellDevToolsFrontend::RenderViewCreated(
base::Unretained(this))));
}
}
+#endif
+
+#if defined(OS_ANDROID)
+void ShellDevToolsFrontend::RenderViewCreated(
+ RenderViewHost* render_view_host) {
+ // No devtools frontend for android
+}
+#endif
void ShellDevToolsFrontend::DocumentAvailableInMainFrame() {
agent_host_ = DevToolsAgentHost::GetOrCreateFor(inspected_contents_);
« no previous file with comments | « content/shell/browser/shell_devtools_frontend.h ('k') | content/shell/browser/shell_devtools_manager_delegate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698