OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 #include <vector> | 9 #include <vector> |
10 | 10 |
(...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
83 #elif defined(OS_LINUX) | 83 #elif defined(OS_LINUX) |
84 #include "content/browser/zygote_host_linux.h" | 84 #include "content/browser/zygote_host_linux.h" |
85 #endif | 85 #endif |
86 | 86 |
87 #if defined(USE_TCMALLOC) | 87 #if defined(USE_TCMALLOC) |
88 #include "third_party/tcmalloc/chromium/src/google/malloc_extension.h" | 88 #include "third_party/tcmalloc/chromium/src/google/malloc_extension.h" |
89 #endif | 89 #endif |
90 | 90 |
91 using base::Time; | 91 using base::Time; |
92 using base::TimeDelta; | 92 using base::TimeDelta; |
| 93 using content::BrowserThread; |
93 | 94 |
94 #if defined(USE_TCMALLOC) | 95 #if defined(USE_TCMALLOC) |
95 // static | 96 // static |
96 AboutTcmallocOutputs* AboutTcmallocOutputs::GetInstance() { | 97 AboutTcmallocOutputs* AboutTcmallocOutputs::GetInstance() { |
97 return Singleton<AboutTcmallocOutputs>::get(); | 98 return Singleton<AboutTcmallocOutputs>::get(); |
98 } | 99 } |
99 | 100 |
100 AboutTcmallocOutputs::AboutTcmallocOutputs() {} | 101 AboutTcmallocOutputs::AboutTcmallocOutputs() {} |
101 | 102 |
102 AboutTcmallocOutputs::~AboutTcmallocOutputs() {} | 103 AboutTcmallocOutputs::~AboutTcmallocOutputs() {} |
(...skipping 1526 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1629 return false; | 1630 return false; |
1630 } | 1631 } |
1631 | 1632 |
1632 std::vector<std::string> ChromePaths() { | 1633 std::vector<std::string> ChromePaths() { |
1633 std::vector<std::string> paths; | 1634 std::vector<std::string> paths; |
1634 paths.reserve(arraysize(kChromePaths)); | 1635 paths.reserve(arraysize(kChromePaths)); |
1635 for (size_t i = 0; i < arraysize(kChromePaths); i++) | 1636 for (size_t i = 0; i < arraysize(kChromePaths); i++) |
1636 paths.push_back(kChromePaths[i]); | 1637 paths.push_back(kChromePaths[i]); |
1637 return paths; | 1638 return paths; |
1638 } | 1639 } |
OLD | NEW |