OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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/ui/task_manager/task_manager_table_model.h" | 5 #include "chrome/browser/ui/task_manager/task_manager_table_model.h" |
6 | 6 |
7 #include <stddef.h> | 7 #include <stddef.h> |
8 | 8 |
9 #include "base/command_line.h" | 9 #include "base/command_line.h" |
10 #include "base/i18n/number_formatting.h" | 10 #include "base/i18n/number_formatting.h" |
11 #include "base/i18n/rtl.h" | 11 #include "base/i18n/rtl.h" |
12 #include "base/macros.h" | 12 #include "base/macros.h" |
13 #include "base/prefs/scoped_user_pref_update.h" | |
14 #include "base/process/process_handle.h" | 13 #include "base/process/process_handle.h" |
15 #include "base/strings/string_number_conversions.h" | 14 #include "base/strings/string_number_conversions.h" |
16 #include "base/strings/stringprintf.h" | 15 #include "base/strings/stringprintf.h" |
17 #include "base/strings/utf_string_conversions.h" | 16 #include "base/strings/utf_string_conversions.h" |
18 #include "build/build_config.h" | 17 #include "build/build_config.h" |
19 #include "chrome/browser/browser_process.h" | 18 #include "chrome/browser/browser_process.h" |
20 #include "chrome/browser/task_management/task_manager_interface.h" | 19 #include "chrome/browser/task_management/task_manager_interface.h" |
21 #include "chrome/browser/ui/task_manager/task_manager_columns.h" | 20 #include "chrome/browser/ui/task_manager/task_manager_columns.h" |
22 #include "chrome/common/pref_names.h" | 21 #include "chrome/common/pref_names.h" |
23 #include "chrome/grit/generated_resources.h" | 22 #include "chrome/grit/generated_resources.h" |
24 #include "components/nacl/browser/nacl_browser.h" | 23 #include "components/nacl/browser/nacl_browser.h" |
25 #include "components/nacl/common/nacl_switches.h" | 24 #include "components/nacl/common/nacl_switches.h" |
| 25 #include "components/prefs/scoped_user_pref_update.h" |
26 #include "content/public/common/result_codes.h" | 26 #include "content/public/common/result_codes.h" |
27 #include "third_party/WebKit/public/web/WebCache.h" | 27 #include "third_party/WebKit/public/web/WebCache.h" |
28 #include "ui/base/l10n/l10n_util.h" | 28 #include "ui/base/l10n/l10n_util.h" |
29 #include "ui/base/models/table_model_observer.h" | 29 #include "ui/base/models/table_model_observer.h" |
30 #include "ui/base/text/bytes_formatting.h" | 30 #include "ui/base/text/bytes_formatting.h" |
31 | 31 |
32 namespace task_management { | 32 namespace task_management { |
33 | 33 |
34 namespace { | 34 namespace { |
35 | 35 |
(...skipping 773 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
809 bool TaskManagerTableModel::IsTaskFirstInGroup(int row_index) const { | 809 bool TaskManagerTableModel::IsTaskFirstInGroup(int row_index) const { |
810 if (row_index == 0) | 810 if (row_index == 0) |
811 return true; | 811 return true; |
812 | 812 |
813 return observed_task_manager()->GetProcessId(tasks_[row_index - 1]) != | 813 return observed_task_manager()->GetProcessId(tasks_[row_index - 1]) != |
814 observed_task_manager()->GetProcessId(tasks_[row_index]); | 814 observed_task_manager()->GetProcessId(tasks_[row_index]); |
815 } | 815 } |
816 | 816 |
817 | 817 |
818 } // namespace task_management | 818 } // namespace task_management |
OLD | NEW |