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

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

Issue 2295623002: DevTools: simplify http handler delegate as it is moving into content. (Closed)
Patch Set: lcean 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
« no previous file with comments | « components/devtools_http_handler/devtools_http_handler_unittest.cc ('k') | content/content_browser.gypi » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/devtools/render_frame_devtools_agent_host.cc
diff --git a/content/browser/devtools/render_frame_devtools_agent_host.cc b/content/browser/devtools/render_frame_devtools_agent_host.cc
index fd05028a561ca3ce7da2207ec4ddaaff173f290e..04cede818c6fe7e20c52fd67dc8f8a3c969f8a2e 100644
--- a/content/browser/devtools/render_frame_devtools_agent_host.cc
+++ b/content/browser/devtools/render_frame_devtools_agent_host.cc
@@ -920,6 +920,12 @@ GURL RenderFrameDevToolsAgentHost::GetURL() {
}
GURL RenderFrameDevToolsAgentHost::GetFaviconURL() {
+ WebContents* wc = web_contents();
+ if (!wc)
+ return GURL();
+ NavigationEntry* entry = wc->GetController().GetLastCommittedEntry();
+ if (entry)
+ return entry->GetFavicon().url;
return GURL();
}
« no previous file with comments | « components/devtools_http_handler/devtools_http_handler_unittest.cc ('k') | content/content_browser.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698