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

Unified Diff: content/browser/devtools/protocol/browser_handler.cc

Issue 2408133004: [DevTools] Implement Target.setDiscoverTargets method. (Closed)
Patch Set: new fancy range-based iteration in observer list! Created 4 years, 2 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/browser/devtools/protocol/browser_handler.cc
diff --git a/content/browser/devtools/protocol/browser_handler.cc b/content/browser/devtools/protocol/browser_handler.cc
index aabbf40c43126a6ddce4210659bfabe497548df7..72981ee9fe36502369c2809997c29183346f11d6 100644
--- a/content/browser/devtools/protocol/browser_handler.cc
+++ b/content/browser/devtools/protocol/browser_handler.cc
@@ -51,12 +51,12 @@ Response BrowserHandler::CreateTarget(const std::string& url,
const int* height,
const std::string* context_id,
std::string* out_target_id) {
- DevToolsManagerDelegate* delegate =
- DevToolsManager::GetInstance()->delegate();
- if (!delegate)
+ DevToolsManagerDelegate* manager_delegate =
+ DevToolsManager::GetInstance()->GetDelegate();
+ if (!manager_delegate)
return Response::ServerError("Not supported");
scoped_refptr<content::DevToolsAgentHost> agent_host =
- delegate->CreateNewTarget(GURL(url));
+ manager_delegate->CreateNewTarget(GURL(url));
if (!agent_host)
return Response::ServerError("Not supported");
*out_target_id = agent_host->GetId();

Powered by Google App Engine
This is Rietveld 408576698