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.h" | 5 #include "chrome/browser/task_manager/task_manager.h" |
6 | 6 |
7 #include "base/bind.h" | 7 #include "base/bind.h" |
8 #include "base/compiler_specific.h" | 8 #include "base/compiler_specific.h" |
9 #include "base/i18n/number_formatting.h" | 9 #include "base/i18n/number_formatting.h" |
10 #include "base/i18n/rtl.h" | 10 #include "base/i18n/rtl.h" |
(...skipping 1203 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1214 | 1214 |
1215 bool TaskManager::Resource::CanInspect() const { return false; } | 1215 bool TaskManager::Resource::CanInspect() const { return false; } |
1216 | 1216 |
1217 content::WebContents* TaskManager::Resource::GetWebContents() const { | 1217 content::WebContents* TaskManager::Resource::GetWebContents() const { |
1218 return NULL; | 1218 return NULL; |
1219 } | 1219 } |
1220 | 1220 |
1221 bool TaskManager::Resource::IsBackground() const { return false; } | 1221 bool TaskManager::Resource::IsBackground() const { return false; } |
1222 | 1222 |
1223 // static | 1223 // static |
1224 void TaskManager::RegisterPrefs(PrefService* prefs) { | 1224 void TaskManager::RegisterPrefs(PrefServiceSimple* prefs) { |
1225 prefs->RegisterDictionaryPref(prefs::kTaskManagerWindowPlacement); | 1225 prefs->RegisterDictionaryPref(prefs::kTaskManagerWindowPlacement); |
1226 } | 1226 } |
1227 | 1227 |
1228 TaskManager::TaskManager() | 1228 TaskManager::TaskManager() |
1229 : ALLOW_THIS_IN_INITIALIZER_LIST(model_(new TaskManagerModel(this))) { | 1229 : ALLOW_THIS_IN_INITIALIZER_LIST(model_(new TaskManagerModel(this))) { |
1230 } | 1230 } |
1231 | 1231 |
1232 TaskManager::~TaskManager() { | 1232 TaskManager::~TaskManager() { |
1233 } | 1233 } |
1234 | 1234 |
(...skipping 109 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1344 // Count the number of extensions with background pages (including | 1344 // Count the number of extensions with background pages (including |
1345 // incognito). | 1345 // incognito). |
1346 count += CountExtensionBackgroundPagesForProfile(profile); | 1346 count += CountExtensionBackgroundPagesForProfile(profile); |
1347 if (profile->HasOffTheRecordProfile()) { | 1347 if (profile->HasOffTheRecordProfile()) { |
1348 count += CountExtensionBackgroundPagesForProfile( | 1348 count += CountExtensionBackgroundPagesForProfile( |
1349 profile->GetOffTheRecordProfile()); | 1349 profile->GetOffTheRecordProfile()); |
1350 } | 1350 } |
1351 } | 1351 } |
1352 return count; | 1352 return count; |
1353 } | 1353 } |
OLD | NEW |