Chromium Code Reviews| 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..561cc45488ad29a42654919d3d52d85b6706e1cd 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" |
| @@ -166,7 +167,8 @@ 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++) |
| + for (size_t i = 0; i < arraysize(kChromePaths); ++i) |
| paths.push_back(kChromePaths[i]); |
|
Nico
2012/09/25 04:12:22
Can you initialize paths like this:
std::vector
msw
2012/09/25 05:00:51
Done.
|
| + std::sort(paths.begin(), paths.end()); |
| return paths; |
| } |