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

Side by Side Diff: chrome/browser/ui/webui/net_internals/net_internals_ui.cc

Issue 13932041: Remove the local help content for about:net-internals. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: entaro adun tassadar Created 7 years, 8 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « chrome/browser/resources/net_internals_resources.grd ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "chrome/browser/ui/webui/net_internals/net_internals_ui.h" 5 #include "chrome/browser/ui/webui/net_internals/net_internals_ui.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 #include <list> 8 #include <list>
9 #include <string> 9 #include <string>
10 #include <utility> 10 #include <utility>
(...skipping 204 matching lines...) Expand 10 before | Expand all | Expand 10 after
215 ConnectionTester::HostResolverExperimentDescription( 215 ConnectionTester::HostResolverExperimentDescription(
216 experiment.host_resolver_experiment)); 216 experiment.host_resolver_experiment));
217 return dict; 217 return dict;
218 } 218 }
219 219
220 content::WebUIDataSource* CreateNetInternalsHTMLSource() { 220 content::WebUIDataSource* CreateNetInternalsHTMLSource() {
221 content::WebUIDataSource* source = 221 content::WebUIDataSource* source =
222 content::WebUIDataSource::Create(chrome::kChromeUINetInternalsHost); 222 content::WebUIDataSource::Create(chrome::kChromeUINetInternalsHost);
223 223
224 source->SetDefaultResource(IDR_NET_INTERNALS_INDEX_HTML); 224 source->SetDefaultResource(IDR_NET_INTERNALS_INDEX_HTML);
225 source->AddResourcePath("help.html", IDR_NET_INTERNALS_HELP_HTML);
226 source->AddResourcePath("help.js", IDR_NET_INTERNALS_HELP_JS);
227 source->AddResourcePath("index.js", IDR_NET_INTERNALS_INDEX_JS); 225 source->AddResourcePath("index.js", IDR_NET_INTERNALS_INDEX_JS);
228 source->SetJsonPath("strings.js"); 226 source->SetJsonPath("strings.js");
229 return source; 227 return source;
230 } 228 }
231 229
232 #if defined(OS_CHROMEOS) 230 #if defined(OS_CHROMEOS)
233 // Small helper class used to create temporary log file and pass its 231 // Small helper class used to create temporary log file and pass its
234 // handle and error status to callback. 232 // handle and error status to callback.
235 // Use case: 233 // Use case:
236 // DebugLogFileHelper* helper = new DebugLogFileHelper(); 234 // DebugLogFileHelper* helper = new DebugLogFileHelper();
(...skipping 1701 matching lines...) Expand 10 before | Expand all | Expand 10 after
1938 } 1936 }
1939 1937
1940 NetInternalsUI::NetInternalsUI(content::WebUI* web_ui) 1938 NetInternalsUI::NetInternalsUI(content::WebUI* web_ui)
1941 : WebUIController(web_ui) { 1939 : WebUIController(web_ui) {
1942 web_ui->AddMessageHandler(new NetInternalsMessageHandler()); 1940 web_ui->AddMessageHandler(new NetInternalsMessageHandler());
1943 1941
1944 // Set up the chrome://net-internals/ source. 1942 // Set up the chrome://net-internals/ source.
1945 Profile* profile = Profile::FromWebUI(web_ui); 1943 Profile* profile = Profile::FromWebUI(web_ui);
1946 content::WebUIDataSource::Add(profile, CreateNetInternalsHTMLSource()); 1944 content::WebUIDataSource::Add(profile, CreateNetInternalsHTMLSource());
1947 } 1945 }
OLDNEW
« no previous file with comments | « chrome/browser/resources/net_internals_resources.grd ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698