| OLD | NEW |
| 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/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 | 9 |
| 10 #include "base/command_line.h" | 10 #include "base/command_line.h" |
| (...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 94 #endif | 94 #endif |
| 95 content::kChromeUIAccessibilityHost, | 95 content::kChromeUIAccessibilityHost, |
| 96 content::kChromeUIAppCacheInternalsHost, | 96 content::kChromeUIAppCacheInternalsHost, |
| 97 content::kChromeUIBlobInternalsHost, | 97 content::kChromeUIBlobInternalsHost, |
| 98 content::kChromeUIGpuHost, | 98 content::kChromeUIGpuHost, |
| 99 content::kChromeUIHistogramHost, | 99 content::kChromeUIHistogramHost, |
| 100 content::kChromeUIMediaInternalsHost, | 100 content::kChromeUIMediaInternalsHost, |
| 101 content::kChromeUINetworkViewCacheHost, | 101 content::kChromeUINetworkViewCacheHost, |
| 102 content::kChromeUITracingHost, | 102 content::kChromeUITracingHost, |
| 103 content::kChromeUIWebRTCInternalsHost, | 103 content::kChromeUIWebRTCInternalsHost, |
| 104 #if defined(ENABLE_WEBRTC) |
| 105 chrome::kChromeUIWebRtcLogsHost, |
| 106 #endif |
| 104 }; | 107 }; |
| 105 | 108 |
| 106 } // namespace | 109 } // namespace |
| 107 | 110 |
| 108 bool WillHandleBrowserAboutURL(GURL* url, | 111 bool WillHandleBrowserAboutURL(GURL* url, |
| 109 content::BrowserContext* browser_context) { | 112 content::BrowserContext* browser_context) { |
| 110 // TODO(msw): Eliminate "about:*" constants and literals from code and tests, | 113 // TODO(msw): Eliminate "about:*" constants and literals from code and tests, |
| 111 // then hopefully we can remove this forced fixup. | 114 // then hopefully we can remove this forced fixup. |
| 112 *url = URLFixerUpper::FixupURL(url->possibly_invalid_spec(), std::string()); | 115 *url = URLFixerUpper::FixupURL(url->possibly_invalid_spec(), std::string()); |
| 113 | 116 |
| (...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 185 #endif // OFFICIAL_BUILD | 188 #endif // OFFICIAL_BUILD |
| 186 | 189 |
| 187 return false; | 190 return false; |
| 188 } | 191 } |
| 189 | 192 |
| 190 std::vector<std::string> ChromePaths() { | 193 std::vector<std::string> ChromePaths() { |
| 191 std::vector<std::string> paths(kPaths, kPaths + arraysize(kPaths)); | 194 std::vector<std::string> paths(kPaths, kPaths + arraysize(kPaths)); |
| 192 std::sort(paths.begin(), paths.end()); | 195 std::sort(paths.begin(), paths.end()); |
| 193 return paths; | 196 return paths; |
| 194 } | 197 } |
| OLD | NEW |