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" |
11 #include "base/logging.h" | 11 #include "base/logging.h" |
12 #include "base/memory/singleton.h" | 12 #include "base/memory/singleton.h" |
13 #include "base/string_util.h" | 13 #include "base/strings/string_util.h" |
14 #include "chrome/browser/net/url_fixer_upper.h" | 14 #include "chrome/browser/net/url_fixer_upper.h" |
15 #include "chrome/browser/ui/browser_dialogs.h" | 15 #include "chrome/browser/ui/browser_dialogs.h" |
16 #include "chrome/common/chrome_switches.h" | 16 #include "chrome/common/chrome_switches.h" |
17 #include "chrome/common/url_constants.h" | 17 #include "chrome/common/url_constants.h" |
18 | 18 |
19 namespace { | 19 namespace { |
20 | 20 |
21 // Add paths here to be included in chrome://chrome-urls (about:about). | 21 // Add paths here to be included in chrome://chrome-urls (about:about). |
22 // These paths will also be suggested by BuiltinProvider. | 22 // These paths will also be suggested by BuiltinProvider. |
23 const char* const kPaths[] = { | 23 const char* const kPaths[] = { |
(...skipping 160 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
184 #endif // OFFICIAL_BUILD | 184 #endif // OFFICIAL_BUILD |
185 | 185 |
186 return false; | 186 return false; |
187 } | 187 } |
188 | 188 |
189 std::vector<std::string> ChromePaths() { | 189 std::vector<std::string> ChromePaths() { |
190 std::vector<std::string> paths(kPaths, kPaths + arraysize(kPaths)); | 190 std::vector<std::string> paths(kPaths, kPaths + arraysize(kPaths)); |
191 std::sort(paths.begin(), paths.end()); | 191 std::sort(paths.begin(), paths.end()); |
192 return paths; | 192 return paths; |
193 } | 193 } |
OLD | NEW |