| 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 <string> | 7 #include <string> |
| 8 | 8 |
| 9 #include "base/command_line.h" | 9 #include "base/command_line.h" |
| 10 #include "base/logging.h" | 10 #include "base/logging.h" |
| (...skipping 131 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 142 | 142 |
| 143 bool HandleNonNavigationAboutURL(const GURL& url) { | 143 bool HandleNonNavigationAboutURL(const GURL& url) { |
| 144 std::string host(url.host()); | 144 std::string host(url.host()); |
| 145 | 145 |
| 146 // chrome://ipc/ is currently buggy, so we disable it for official builds. | 146 // chrome://ipc/ is currently buggy, so we disable it for official builds. |
| 147 #if !defined(OFFICIAL_BUILD) | 147 #if !defined(OFFICIAL_BUILD) |
| 148 | 148 |
| 149 #if (defined(OS_MACOSX) || defined(OS_WIN)) && defined(IPC_MESSAGE_LOG_ENABLED) | 149 #if (defined(OS_MACOSX) || defined(OS_WIN)) && defined(IPC_MESSAGE_LOG_ENABLED) |
| 150 if (LowerCaseEqualsASCII(url.spec(), chrome::kChromeUIIPCURL)) { | 150 if (LowerCaseEqualsASCII(url.spec(), chrome::kChromeUIIPCURL)) { |
| 151 // Run the dialog. This will re-use the existing one if it's already up. | 151 // Run the dialog. This will re-use the existing one if it's already up. |
| 152 browser::ShowAboutIPCDialog(); | 152 chrome::ShowAboutIPCDialog(); |
| 153 return true; | 153 return true; |
| 154 } | 154 } |
| 155 #endif | 155 #endif |
| 156 | 156 |
| 157 #endif // OFFICIAL_BUILD | 157 #endif // OFFICIAL_BUILD |
| 158 | 158 |
| 159 return false; | 159 return false; |
| 160 } | 160 } |
| 161 | 161 |
| 162 std::vector<std::string> ChromePaths() { | 162 std::vector<std::string> ChromePaths() { |
| 163 std::vector<std::string> paths; | 163 std::vector<std::string> paths; |
| 164 paths.reserve(arraysize(kChromePaths)); | 164 paths.reserve(arraysize(kChromePaths)); |
| 165 for (size_t i = 0; i < arraysize(kChromePaths); i++) | 165 for (size_t i = 0; i < arraysize(kChromePaths); i++) |
| 166 paths.push_back(kChromePaths[i]); | 166 paths.push_back(kChromePaths[i]); |
| 167 return paths; | 167 return paths; |
| 168 } | 168 } |
| OLD | NEW |