Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(336)

Side by Side Diff: chrome/browser/task_manager/task_manager.cc

Issue 8437002: Move BrowserThread to content namespace. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: A few updates. Created 9 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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
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
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 }
OLDNEW
« no previous file with comments | « chrome/browser/tabs/tab_strip_model_unittest.cc ('k') | chrome/browser/task_manager/task_manager_resource_providers.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698