| Index: chrome/browser/browser_about_handler.cc
|
| diff --git a/chrome/browser/browser_about_handler.cc b/chrome/browser/browser_about_handler.cc
|
| index 8ea02a9c1565a3bd2f496bc456b2a4e92d3b74a5..248a53ae59dc113a8f2dc5638b7627e13a28dd57 100644
|
| --- a/chrome/browser/browser_about_handler.cc
|
| +++ b/chrome/browser/browser_about_handler.cc
|
| @@ -4,6 +4,7 @@
|
|
|
| #include "chrome/browser/browser_about_handler.h"
|
|
|
| +#include <algorithm>
|
| #include <string>
|
|
|
| #include "base/command_line.h"
|
| @@ -19,7 +20,7 @@ namespace {
|
|
|
| // Add paths here to be included in chrome://chrome-urls (about:about).
|
| // These paths will also be suggested by BuiltinProvider.
|
| -const char* const kChromePaths[] = {
|
| +const char* const kPaths[] = {
|
| chrome::kChromeUIAppCacheInternalsHost,
|
| chrome::kChromeUIBlobInternalsHost,
|
| chrome::kChromeUIBookmarksHost,
|
| @@ -164,9 +165,7 @@ bool HandleNonNavigationAboutURL(const GURL& url) {
|
| }
|
|
|
| std::vector<std::string> ChromePaths() {
|
| - std::vector<std::string> paths;
|
| - paths.reserve(arraysize(kChromePaths));
|
| - for (size_t i = 0; i < arraysize(kChromePaths); i++)
|
| - paths.push_back(kChromePaths[i]);
|
| + std::vector<std::string> paths(kPaths, kPaths + arraysize(kPaths));
|
| + std::sort(paths.begin(), paths.end());
|
| return paths;
|
| }
|
|
|