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

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

Issue 2115823004: Avoid using BrowserThread and ContentBrowserClient in NetLogObserver. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix leak Created 4 years, 5 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 | « no previous file | content/browser/loader/netlog_observer.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/devtools/devtools_manager.cc
diff --git a/content/browser/devtools/devtools_manager.cc b/content/browser/devtools/devtools_manager.cc
index f3004a3e7e721fa1ddd3cb0083219b31272b5a49..d4889002d9f3f70d038c46c921f289f7647d99d6 100644
--- a/content/browser/devtools/devtools_manager.cc
+++ b/content/browser/devtools/devtools_manager.cc
@@ -34,7 +34,8 @@ void DevToolsManager::AgentHostStateChanged(
BrowserThread::PostTask(
BrowserThread::IO,
FROM_HERE,
- base::Bind(&NetLogObserver::Attach));
+ base::Bind(&NetLogObserver::Attach,
+ GetContentClient()->browser()->GetNetLog()));
}
++attached_hosts_count_;
} else {
« no previous file with comments | « no previous file | content/browser/loader/netlog_observer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698