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

Side by Side Diff: chrome/browser/browser_about_handler.cc

Issue 7193003: Revert 89298 - Update BuiltinProvider to provide chrome:// URLs. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 9 years, 6 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/autocomplete/builtin_provider_unittest.cc ('k') | chrome/chrome_tests.gypi » ('j') | 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) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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/browser_about_handler.h" 5 #include "chrome/browser/browser_about_handler.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after
99 void AboutTcmallocRendererCallback(base::ProcessId pid, 99 void AboutTcmallocRendererCallback(base::ProcessId pid,
100 const std::string& output) { 100 const std::string& output) {
101 AboutTcmallocOutputs::GetInstance()->RendererCallback(pid, output); 101 AboutTcmallocOutputs::GetInstance()->RendererCallback(pid, output);
102 } 102 }
103 #endif 103 #endif
104 104
105 namespace { 105 namespace {
106 106
107 // Add paths here to be included in chrome://chrome-urls/. 107 // Add paths here to be included in chrome://chrome-urls/.
108 // These paths will also be suggested by BuiltinProvider. 108 // These paths will also be suggested by BuiltinProvider.
109 const char* kChromePaths[] = { 109 const char *kChromePaths[] = {
110 chrome::kChromeUIAppCacheInternalsHost, 110 chrome::kChromeUIAppCacheInternalsHost,
111 chrome::kChromeUIBlobInternalsHost, 111 chrome::kChromeUIBlobInternalsHost,
112 chrome::kChromeUIChromeURLsHost, 112 chrome::kChromeUIChromeURLsHost,
113 chrome::kChromeUICrashesHost,
114 chrome::kChromeUICreditsHost, 113 chrome::kChromeUICreditsHost,
115 chrome::kChromeUIDNSHost, 114 chrome::kChromeUIDNSHost,
116 chrome::kChromeUIFlagsHost, 115 chrome::kChromeUIFlagsHost,
117 chrome::kChromeUIFlashHost, 116 chrome::kChromeUIFlashHost,
118 chrome::kChromeUIGpuInternalsHost, 117 chrome::kChromeUIGpuInternalsHost,
119 chrome::kChromeUIHistogramsHost, 118 chrome::kChromeUIHistogramsHost,
120 chrome::kChromeUIMemoryHost, 119 chrome::kChromeUIMemoryHost,
121 chrome::kChromeUINetInternalsHost, 120 chrome::kChromeUINetInternalsHost,
122 chrome::kChromeUINetworkViewCacheHost, 121 chrome::kChromeUINetworkViewCacheHost,
123 chrome::kChromeUIPluginsHost, 122 chrome::kChromeUIPluginsHost,
124 chrome::kChromeUISettingsHost,
125 chrome::kChromeUIStatsHost, 123 chrome::kChromeUIStatsHost,
126 chrome::kChromeUISyncInternalsHost, 124 chrome::kChromeUISyncInternalsHost,
127 chrome::kChromeUITCMallocHost, 125 chrome::kChromeUITCMallocHost,
128 chrome::kChromeUITermsHost, 126 chrome::kChromeUITermsHost,
129 chrome::kChromeUIVersionHost, 127 chrome::kChromeUIVersionHost,
130 #ifdef TRACK_ALL_TASK_OBJECTS 128 #ifdef TRACK_ALL_TASK_OBJECTS
131 chrome::kChromeUITasksHost, 129 chrome::kChromeUITasksHost,
132 #endif 130 #endif
133 #if defined(OS_WIN) 131 #if defined(OS_WIN)
134 chrome::kChromeUIConflictsHost, 132 chrome::kChromeUIConflictsHost,
135 #endif 133 #endif
136 #if defined(OS_LINUX) 134 #if defined(OS_LINUX)
137 chrome::kChromeUISandboxHost, 135 chrome::kChromeUISandboxHost,
138 #endif 136 #endif
139 #if defined(OS_CHROMEOS) 137 #if defined(OS_CHROMEOS)
140 chrome::kChromeUINetworkHost, 138 chrome::kChromeUINetworkHost,
141 chrome::kChromeUICryptohomeHost, 139 chrome::kChromeUICryptohomeHost,
142 chrome::kChromeUIOSCreditsHost, 140 chrome::kChromeUIOSCreditsHost,
143 #endif 141 #endif
144 }; 142 };
145 143
146 // Debug paths, presented without links in chrome://about. 144 // Debug paths, presented without links in chrome://about.
147 // These paths will not be suggested by BuiltinProvider. 145 // These paths will not be suggested by BuiltinProvider.
148 const char* kDebugChromePaths[] = { 146 const char *kDebugChromePaths[] = {
149 chrome::kChromeUICrashHost, 147 chrome::kChromeUICrashHost,
150 chrome::kChromeUIKillHost, 148 chrome::kChromeUIKillHost,
151 chrome::kChromeUIHangHost, 149 chrome::kChromeUIHangHost,
152 chrome::kChromeUIShorthangHost, 150 chrome::kChromeUIShorthangHost,
153 chrome::kChromeUIGpuCleanHost, 151 chrome::kChromeUIGpuCleanHost,
154 chrome::kChromeUIGpuCrashHost, 152 chrome::kChromeUIGpuCrashHost,
155 chrome::kChromeUIGpuHangHost 153 chrome::kChromeUIGpuHangHost
156 }; 154 };
157 155
158 // AboutSource handles these chrome:// paths. 156 // AboutSource handles these chrome:// paths.
(...skipping 1237 matching lines...) Expand 10 before | Expand all | Expand 10 after
1396 return false; 1394 return false;
1397 } 1395 }
1398 1396
1399 std::vector<std::string> ChromePaths() { 1397 std::vector<std::string> ChromePaths() {
1400 std::vector<std::string> paths; 1398 std::vector<std::string> paths;
1401 paths.reserve(arraysize(kChromePaths)); 1399 paths.reserve(arraysize(kChromePaths));
1402 for (size_t i = 0; i < arraysize(kChromePaths); i++) 1400 for (size_t i = 0; i < arraysize(kChromePaths); i++)
1403 paths.push_back(kChromePaths[i]); 1401 paths.push_back(kChromePaths[i]);
1404 return paths; 1402 return paths;
1405 } 1403 }
OLDNEW
« no previous file with comments | « chrome/browser/autocomplete/builtin_provider_unittest.cc ('k') | chrome/chrome_tests.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698