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

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

Issue 594243002: DevTools: Removed references to serviceworker-internals in inspect_ui (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 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 | « chrome/browser/ui/webui/inspect_ui.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 2564a05da8a3b24f6468bea2bc3a921ed7f2bacb..0070d76c08d02ea1385ceb63021b6d1da84e5417 100644
--- a/chrome/browser/ui/webui/inspect_ui.cc
+++ b/chrome/browser/ui/webui/inspect_ui.cc
@@ -430,34 +430,9 @@ content::WebUIDataSource* InspectUI::CreateInspectUIHTMLSource() {
source->AddResourcePath("inspect.css", IDR_INSPECT_CSS);
source->AddResourcePath("inspect.js", IDR_INSPECT_JS);
source->SetDefaultResource(IDR_INSPECT_HTML);
- source->OverrideContentSecurityPolicyFrameSrc(
- "frame-src chrome://serviceworker-internals;");
- serviceworker_webui_.reset(web_ui()->GetWebContents()->CreateWebUI(
- GURL(content::kChromeUIServiceWorkerInternalsURL)));
- serviceworker_webui_->OverrideJavaScriptFrame(
- content::kChromeUIServiceWorkerInternalsHost);
return source;
}
-void InspectUI::RenderViewCreated(content::RenderViewHost* render_view_host) {
- serviceworker_webui_->GetController()->RenderViewCreated(render_view_host);
-}
-
-void InspectUI::RenderViewReused(content::RenderViewHost* render_view_host) {
- serviceworker_webui_->GetController()->RenderViewReused(render_view_host);
-}
-
-bool InspectUI::OverrideHandleWebUIMessage(const GURL& source_url,
- const std::string& message,
- const base::ListValue& args) {
- if (source_url.SchemeIs(content::kChromeUIScheme) &&
- source_url.host() == content::kChromeUIServiceWorkerInternalsHost) {
- serviceworker_webui_->ProcessWebUIMessage(source_url, message, args);
- return true;
- }
- return false;
-}
-
void InspectUI::UpdateDiscoverUsbDevicesEnabled() {
web_ui()->CallJavascriptFunction(
"updateDiscoverUsbDevicesEnabled",
« no previous file with comments | « chrome/browser/ui/webui/inspect_ui.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698