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

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

Issue 7149030: Revert 89073 - 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 87 matching lines...) Expand 10 before | Expand all | Expand 10 after
98 void AboutTcmallocRendererCallback(base::ProcessId pid, 98 void AboutTcmallocRendererCallback(base::ProcessId pid,
99 const std::string& output) { 99 const std::string& output) {
100 AboutTcmallocOutputs::GetInstance()->RendererCallback(pid, output); 100 AboutTcmallocOutputs::GetInstance()->RendererCallback(pid, output);
101 } 101 }
102 #endif 102 #endif
103 103
104 namespace { 104 namespace {
105 105
106 // Add paths here to be included in chrome://chrome-urls/. 106 // Add paths here to be included in chrome://chrome-urls/.
107 // These paths will also be suggested by BuiltinProvider. 107 // These paths will also be suggested by BuiltinProvider.
108 const char* kChromePaths[] = { 108 const char *kChromePaths[] = {
109 chrome::kChromeUIAppCacheInternalsHost, 109 chrome::kChromeUIAppCacheInternalsHost,
110 chrome::kChromeUIBlobInternalsHost, 110 chrome::kChromeUIBlobInternalsHost,
111 chrome::kChromeUIChromeURLsHost, 111 chrome::kChromeUIChromeURLsHost,
112 chrome::kChromeUICrashesHost,
113 chrome::kChromeUICreditsHost, 112 chrome::kChromeUICreditsHost,
114 chrome::kChromeUIDNSHost, 113 chrome::kChromeUIDNSHost,
115 chrome::kChromeUIFlagsHost, 114 chrome::kChromeUIFlagsHost,
116 chrome::kChromeUIFlashHost, 115 chrome::kChromeUIFlashHost,
117 chrome::kChromeUIGpuInternalsHost, 116 chrome::kChromeUIGpuInternalsHost,
118 chrome::kChromeUIHistogramsHost, 117 chrome::kChromeUIHistogramsHost,
119 chrome::kChromeUIMemoryHost, 118 chrome::kChromeUIMemoryHost,
120 chrome::kChromeUINetInternalsHost, 119 chrome::kChromeUINetInternalsHost,
121 chrome::kChromeUINetworkViewCacheHost, 120 chrome::kChromeUINetworkViewCacheHost,
122 chrome::kChromeUIPluginsHost, 121 chrome::kChromeUIPluginsHost,
123 chrome::kChromeUISettingsHost,
124 chrome::kChromeUIStatsHost, 122 chrome::kChromeUIStatsHost,
125 chrome::kChromeUISyncInternalsHost, 123 chrome::kChromeUISyncInternalsHost,
126 chrome::kChromeUITCMallocHost, 124 chrome::kChromeUITCMallocHost,
127 chrome::kChromeUITermsHost, 125 chrome::kChromeUITermsHost,
128 chrome::kChromeUIVersionHost, 126 chrome::kChromeUIVersionHost,
129 #ifdef TRACK_ALL_TASK_OBJECTS 127 #ifdef TRACK_ALL_TASK_OBJECTS
130 chrome::kChromeUITasksHost, 128 chrome::kChromeUITasksHost,
131 #endif 129 #endif
132 #if defined(OS_WIN) 130 #if defined(OS_WIN)
133 chrome::kChromeUIConflictsHost, 131 chrome::kChromeUIConflictsHost,
134 #endif 132 #endif
135 #if defined(OS_LINUX) 133 #if defined(OS_LINUX)
136 chrome::kChromeUISandboxHost, 134 chrome::kChromeUISandboxHost,
137 #endif 135 #endif
138 #if defined(OS_CHROMEOS) 136 #if defined(OS_CHROMEOS)
139 chrome::kChromeUINetworkHost, 137 chrome::kChromeUINetworkHost,
140 chrome::kChromeUIOSCreditsHost, 138 chrome::kChromeUIOSCreditsHost,
141 #endif 139 #endif
142 }; 140 };
143 141
144 // Debug paths, presented without links in chrome://about. 142 // Debug paths, presented without links in chrome://about.
145 // These paths will not be suggested by BuiltinProvider. 143 // These paths will not be suggested by BuiltinProvider.
146 const char* kDebugChromePaths[] = { 144 const char *kDebugChromePaths[] = {
147 chrome::kChromeUICrashHost, 145 chrome::kChromeUICrashHost,
148 chrome::kChromeUIKillHost, 146 chrome::kChromeUIKillHost,
149 chrome::kChromeUIHangHost, 147 chrome::kChromeUIHangHost,
150 chrome::kChromeUIShorthangHost, 148 chrome::kChromeUIShorthangHost,
151 chrome::kChromeUIGpuCleanHost, 149 chrome::kChromeUIGpuCleanHost,
152 chrome::kChromeUIGpuCrashHost, 150 chrome::kChromeUIGpuCrashHost,
153 chrome::kChromeUIGpuHangHost 151 chrome::kChromeUIGpuHangHost
154 }; 152 };
155 153
156 // AboutSource handles these chrome:// paths. 154 // AboutSource handles these chrome:// paths.
(...skipping 1181 matching lines...) Expand 10 before | Expand all | Expand 10 after
1338 return false; 1336 return false;
1339 } 1337 }
1340 1338
1341 std::vector<std::string> ChromePaths() { 1339 std::vector<std::string> ChromePaths() {
1342 std::vector<std::string> paths; 1340 std::vector<std::string> paths;
1343 paths.reserve(arraysize(kChromePaths)); 1341 paths.reserve(arraysize(kChromePaths));
1344 for (size_t i = 0; i < arraysize(kChromePaths); i++) 1342 for (size_t i = 0; i < arraysize(kChromePaths); i++)
1345 paths.push_back(kChromePaths[i]); 1343 paths.push_back(kChromePaths[i]);
1346 return paths; 1344 return paths;
1347 } 1345 }
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