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

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

Issue 11876007: Connecting webrtc-internals WebUI frontend with the backend (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@main
Patch Set: Created 7 years, 11 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/webrtc_internals_ui.h ('k') | chrome/chrome_browser.gypi » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/webui/webrtc_internals_ui.cc
diff --git a/chrome/browser/ui/webui/webrtc_internals_ui.cc b/chrome/browser/ui/webui/webrtc_internals_ui.cc
deleted file mode 100644
index 9a61072458506a923012273bc441efde9d924325..0000000000000000000000000000000000000000
--- a/chrome/browser/ui/webui/webrtc_internals_ui.cc
+++ /dev/null
@@ -1,41 +0,0 @@
-// Copyright (c) 2013 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#include "chrome/browser/ui/webui/webrtc_internals_ui.h"
-
-#include "chrome/browser/profiles/profile.h"
-#include "chrome/browser/ui/webui/chrome_url_data_manager.h"
-#include "chrome/browser/ui/webui/chrome_web_ui_data_source.h"
-#include "chrome/common/url_constants.h"
-#include "content/public/browser/web_ui.h"
-#include "grit/browser_resources.h"
-
-using content::WebContents;
-
-namespace {
-
-content::WebUIDataSource* CreateWebRTCInternalsHTMLSource() {
- content::WebUIDataSource* source =
- ChromeWebUIDataSource::Create(chrome::kChromeUIWebRTCInternalsHost);
-
- source->SetJsonPath("strings.js");
- source->AddResourcePath("webrtc_internals.js", IDR_WEBRTC_INTERNALS_JS);
- source->SetDefaultResource(IDR_WEBRTC_INTERNALS_HTML);
- return source;
-}
-
-} // namespace
-
-////////////////////////////////////////////////////////////////////////////////
-//
-// WebRTCInternalsUI
-//
-////////////////////////////////////////////////////////////////////////////////
-
-WebRTCInternalsUI::WebRTCInternalsUI(content::WebUI* web_ui)
- : WebUIController(web_ui) {
- Profile* profile = Profile::FromWebUI(web_ui);
- ChromeURLDataManager::AddWebUIDataSource(profile,
- CreateWebRTCInternalsHTMLSource());
-}
« no previous file with comments | « chrome/browser/ui/webui/webrtc_internals_ui.h ('k') | chrome/chrome_browser.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698