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

Unified Diff: chrome/browser/android/tab_android.cc

Issue 2833213002: DevTools: retain DTAH in all the targets to match their life time. (Closed)
Patch Set: for landing Created 3 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
Index: chrome/browser/android/tab_android.cc
diff --git a/chrome/browser/android/tab_android.cc b/chrome/browser/android/tab_android.cc
index 45f18987aa13cd35cd78968a8a37d2c2116ee9b2..66f74523fd23c7eb6de113ece9f9959b009f2e94 100644
--- a/chrome/browser/android/tab_android.cc
+++ b/chrome/browser/android/tab_android.cc
@@ -65,6 +65,7 @@
#include "components/url_formatter/url_fixer.h"
#include "content/public/browser/android/compositor.h"
#include "content/public/browser/browser_thread.h"
+#include "content/public/browser/devtools_agent_host.h"
#include "content/public/browser/interstitial_page.h"
#include "content/public/browser/navigation_entry.h"
#include "content/public/browser/notification_service.h"
@@ -797,6 +798,15 @@ void TabAndroid::AttachToTabContentManager(
tab_content_manager_->AttachLiveLayer(GetAndroidId(), GetContentLayer());
}
+scoped_refptr<content::DevToolsAgentHost> TabAndroid::GetDevToolsAgentHost() {
+ return devtools_host_;
+}
+
+void TabAndroid::SetDevToolsAgentHost(
+ scoped_refptr<content::DevToolsAgentHost> host) {
+ devtools_host_ = host;
Bernhard Bauer 2017/04/24 12:16:57 std::move(host)?
+}
+
static void Init(JNIEnv* env, const JavaParamRef<jobject>& obj) {
TRACE_EVENT0("native", "TabAndroid::Init");
// This will automatically bind to the Java object and pass ownership there.

Powered by Google App Engine
This is Rietveld 408576698