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

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

Issue 474483002: Revert 289312 "Move StringToUpperASCII and LowerCaseEqualsASCII ..." (Closed) Base URL: svn://svn.chromium.org/chrome/
Patch Set: Created 6 years, 4 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
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/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
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 (base::LowerCaseEqualsASCII(url.spec(), chrome::kChromeUIIPCURL)) { 99 if (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 }
OLDNEW
« no previous file with comments | « trunk/src/chrome/browser/autocomplete/search_provider.cc ('k') | trunk/src/chrome/browser/chromeos/events/event_rewriter.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698