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/task_manager/task_manager.h" | 5 #include "chrome/browser/task_manager/task_manager.h" |
6 | 6 |
7 #include "base/compiler_specific.h" | 7 #include "base/compiler_specific.h" |
8 #include "base/i18n/number_formatting.h" | 8 #include "base/i18n/number_formatting.h" |
9 #include "base/i18n/rtl.h" | 9 #include "base/i18n/rtl.h" |
10 #include "base/process_util.h" | 10 #include "base/process_util.h" |
(...skipping 26 matching lines...) Expand all Loading... |
37 #include "grit/ui_resources.h" | 37 #include "grit/ui_resources.h" |
38 #include "ui/base/l10n/l10n_util.h" | 38 #include "ui/base/l10n/l10n_util.h" |
39 #include "ui/base/resource/resource_bundle.h" | 39 #include "ui/base/resource/resource_bundle.h" |
40 #include "ui/base/text/bytes_formatting.h" | 40 #include "ui/base/text/bytes_formatting.h" |
41 #include "unicode/coll.h" | 41 #include "unicode/coll.h" |
42 | 42 |
43 #if defined(OS_MACOSX) | 43 #if defined(OS_MACOSX) |
44 #include "content/browser/mach_broker_mac.h" | 44 #include "content/browser/mach_broker_mac.h" |
45 #endif | 45 #endif |
46 | 46 |
| 47 using content::BrowserThread; |
| 48 |
47 namespace { | 49 namespace { |
48 | 50 |
49 // The delay between updates of the information (in ms). | 51 // The delay between updates of the information (in ms). |
50 #if defined(OS_MACOSX) | 52 #if defined(OS_MACOSX) |
51 // Match Activity Monitor's default refresh rate. | 53 // Match Activity Monitor's default refresh rate. |
52 const int kUpdateTimeMs = 2000; | 54 const int kUpdateTimeMs = 2000; |
53 #else | 55 #else |
54 const int kUpdateTimeMs = 1000; | 56 const int kUpdateTimeMs = 1000; |
55 #endif | 57 #endif |
56 | 58 |
(...skipping 1081 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1138 // Count the number of extensions with background pages (including | 1140 // Count the number of extensions with background pages (including |
1139 // incognito). | 1141 // incognito). |
1140 count += CountExtensionBackgroundPagesForProfile(profile); | 1142 count += CountExtensionBackgroundPagesForProfile(profile); |
1141 if (profile->HasOffTheRecordProfile()) { | 1143 if (profile->HasOffTheRecordProfile()) { |
1142 count += CountExtensionBackgroundPagesForProfile( | 1144 count += CountExtensionBackgroundPagesForProfile( |
1143 profile->GetOffTheRecordProfile()); | 1145 profile->GetOffTheRecordProfile()); |
1144 } | 1146 } |
1145 } | 1147 } |
1146 return count; | 1148 return count; |
1147 } | 1149 } |
OLD | NEW |