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

Unified Diff: chrome/browser/ui/webui/inspect_ui.cc

Issue 2361613002: DevTools: untangle device discovery request from the devtools android bridge. (Closed)
Patch Set: make device hosts profile-independent, plump browser context for inspect. Created 4 years, 3 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/ui/webui/inspect_ui.cc
diff --git a/chrome/browser/ui/webui/inspect_ui.cc b/chrome/browser/ui/webui/inspect_ui.cc
index 8dfead13ca7b10850a7717663b521395b5003965..cfb19bbdcaddd32298c7246614aba04070631067 100644
--- a/chrome/browser/ui/webui/inspect_ui.cc
+++ b/chrome/browser/ui/webui/inspect_ui.cc
@@ -303,7 +303,7 @@ void InspectUI::Inspect(const std::string& source_id,
scoped_refptr<DevToolsAgentHost> target = FindTarget(source_id, target_id);
if (target) {
const std::string target_type = target->GetType();
- target->Inspect();
+ target->Inspect(web_ui()->GetWebContents()->GetBrowserContext());
ForceUpdateIfNeeded(source_id, target_type);
}
}

Powered by Google App Engine
This is Rietveld 408576698