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

Unified Diff: android_webview/browser/aw_dev_tools_discovery_provider.cc

Issue 1099243004: [DevTools] Migrate android to devtools_discovery. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 5 years, 8 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 | « android_webview/browser/aw_dev_tools_discovery_provider.h ('k') | chrome/browser/BUILD.gn » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: android_webview/browser/aw_dev_tools_discovery_provider.cc
diff --git a/android_webview/browser/aw_dev_tools_discovery_provider.cc b/android_webview/browser/aw_dev_tools_discovery_provider.cc
index c38189d0cd83466a8cd5ed8cb48f5be38ced744c..4117358f3c14cfa042ab67250c798b9adb2e2267 100644
--- a/android_webview/browser/aw_dev_tools_discovery_provider.cc
+++ b/android_webview/browser/aw_dev_tools_discovery_provider.cc
@@ -48,6 +48,8 @@ class TargetDescriptor : public devtools_discovery::BasicTargetDescriptor {
private:
std::string description_;
+
+ DISALLOW_COPY_AND_ASSIGN(TargetDescriptor);
};
TargetDescriptor::TargetDescriptor(scoped_refptr<DevToolsAgentHost> agent_host)
@@ -60,6 +62,14 @@ TargetDescriptor::TargetDescriptor(scoped_refptr<DevToolsAgentHost> agent_host)
namespace android_webview {
+// static
+void AwDevToolsDiscoveryProvider::Install() {
+ devtools_discovery::DevToolsDiscoveryManager* discovery_manager =
+ devtools_discovery::DevToolsDiscoveryManager::GetInstance();
+ discovery_manager->AddProvider(
+ make_scoped_ptr(new AwDevToolsDiscoveryProvider()));
+}
+
AwDevToolsDiscoveryProvider::AwDevToolsDiscoveryProvider() {
}
« no previous file with comments | « android_webview/browser/aw_dev_tools_discovery_provider.h ('k') | chrome/browser/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698