| 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 108 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1343 // Count the number of extensions with background pages (including | 1343 // Count the number of extensions with background pages (including |
| 1344 // incognito). | 1344 // incognito). |
| 1345 count += CountExtensionBackgroundPagesForProfile(profile); | 1345 count += CountExtensionBackgroundPagesForProfile(profile); |
| 1346 if (profile->HasOffTheRecordProfile()) { | 1346 if (profile->HasOffTheRecordProfile()) { |
| 1347 count += CountExtensionBackgroundPagesForProfile( | 1347 count += CountExtensionBackgroundPagesForProfile( |
| 1348 profile->GetOffTheRecordProfile()); | 1348 profile->GetOffTheRecordProfile()); |
| 1349 } | 1349 } |
| 1350 } | 1350 } |
| 1351 return count; | 1351 return count; |
| 1352 } | 1352 } |
| OLD | NEW |