| 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/logging.h" | 9 #include "base/logging.h" |
| 10 #include "base/strings/string_util.h" | 10 #include "base/strings/string_util.h" |
| (...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 89 } else if (host == chrome::kChromeUIQuitHost) { | 89 } else if (host == chrome::kChromeUIQuitHost) { |
| 90 base::MessageLoop::current()->PostTask(FROM_HERE, | 90 base::MessageLoop::current()->PostTask(FROM_HERE, |
| 91 base::Bind(&chrome::AttemptExit)); | 91 base::Bind(&chrome::AttemptExit)); |
| 92 return true; | 92 return true; |
| 93 } | 93 } |
| 94 | 94 |
| 95 // chrome://ipc/ is currently buggy, so we disable it for official builds. | 95 // chrome://ipc/ is currently buggy, so we disable it for official builds. |
| 96 #if !defined(OFFICIAL_BUILD) | 96 #if !defined(OFFICIAL_BUILD) |
| 97 | 97 |
| 98 #if (defined(OS_MACOSX) || defined(OS_WIN)) && defined(IPC_MESSAGE_LOG_ENABLED) | 98 #if (defined(OS_MACOSX) || defined(OS_WIN)) && defined(IPC_MESSAGE_LOG_ENABLED) |
| 99 if (LowerCaseEqualsASCII(url.spec(), chrome::kChromeUIIPCURL)) { | 99 if (base::LowerCaseEqualsASCII(url.spec(), chrome::kChromeUIIPCURL)) { |
| 100 // Run the dialog. This will re-use the existing one if it's already up. | 100 // Run the dialog. This will re-use the existing one if it's already up. |
| 101 chrome::ShowAboutIPCDialog(); | 101 chrome::ShowAboutIPCDialog(); |
| 102 return true; | 102 return true; |
| 103 } | 103 } |
| 104 #endif | 104 #endif |
| 105 | 105 |
| 106 #endif // OFFICIAL_BUILD | 106 #endif // OFFICIAL_BUILD |
| 107 | 107 |
| 108 return false; | 108 return false; |
| 109 } | 109 } |
| OLD | NEW |