| 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/task_manager/task_manager_browsertest_util.h" | 5 #include "chrome/browser/task_manager/task_manager_browsertest_util.h" |
| 6 | 6 |
| 7 #include "base/command_line.h" | 7 #include "base/command_line.h" |
| 8 #include "base/location.h" | 8 #include "base/location.h" |
| 9 #include "base/run_loop.h" | 9 #include "base/run_loop.h" |
| 10 #include "base/single_thread_task_runner.h" | 10 #include "base/single_thread_task_runner.h" |
| (...skipping 156 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 167 } | 167 } |
| 168 return task_manager_state_dump; | 168 return task_manager_state_dump; |
| 169 } | 169 } |
| 170 | 170 |
| 171 const TaskManagerModel* model_; | 171 const TaskManagerModel* model_; |
| 172 const int required_count_; | 172 const int required_count_; |
| 173 const base::string16 title_pattern_; | 173 const base::string16 title_pattern_; |
| 174 const ColumnSpecifier column_specifier_; | 174 const ColumnSpecifier column_specifier_; |
| 175 const size_t min_column_value_; | 175 const size_t min_column_value_; |
| 176 base::RunLoop run_loop_; | 176 base::RunLoop run_loop_; |
| 177 base::OneShotTimer<ResourceChangeObserver> timer_; | 177 base::OneShotTimer timer_; |
| 178 }; | 178 }; |
| 179 | 179 |
| 180 } // namespace | 180 } // namespace |
| 181 | 181 |
| 182 void EnableOldTaskManager() { | 182 void EnableOldTaskManager() { |
| 183 base::CommandLine::ForCurrentProcess()->AppendSwitch( | 183 base::CommandLine::ForCurrentProcess()->AppendSwitch( |
| 184 switches::kDisableNewTaskManager); | 184 switches::kDisableNewTaskManager); |
| 185 } | 185 } |
| 186 | 186 |
| 187 void WaitForTaskManagerRows(int required_count, | 187 void WaitForTaskManagerRows(int required_count, |
| (...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 266 base::string16 MatchUtility(const base::string16& title) { | 266 base::string16 MatchUtility(const base::string16& title) { |
| 267 return l10n_util::GetStringFUTF16(IDS_TASK_MANAGER_UTILITY_PREFIX, title); | 267 return l10n_util::GetStringFUTF16(IDS_TASK_MANAGER_UTILITY_PREFIX, title); |
| 268 } | 268 } |
| 269 | 269 |
| 270 base::string16 MatchAnyUtility() { | 270 base::string16 MatchAnyUtility() { |
| 271 return MatchUtility(base::ASCIIToUTF16("*")); | 271 return MatchUtility(base::ASCIIToUTF16("*")); |
| 272 } | 272 } |
| 273 | 273 |
| 274 } // namespace browsertest_util | 274 } // namespace browsertest_util |
| 275 } // namespace task_manager | 275 } // namespace task_manager |
| OLD | NEW |