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

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

Issue 10703061: chrome/browser/ui: Put browser_dialogs.h into chrome namespace. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 5 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 | « no previous file | chrome/browser/collected_cookies_browsertest.cc » ('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) 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
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 }
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/collected_cookies_browsertest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698