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_resource_providers.h" | 5 #include "chrome/browser/task_manager/task_manager_resource_providers.h" |
6 | 6 |
7 #include "base/basictypes.h" | 7 #include "base/basictypes.h" |
8 #include "base/file_version_info.h" | 8 #include "base/file_version_info.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 1069 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1080 ExtensionProcessManager* process_manager = | 1080 ExtensionProcessManager* process_manager = |
1081 profiles[i]->GetExtensionProcessManager(); | 1081 profiles[i]->GetExtensionProcessManager(); |
1082 if (process_manager) { | 1082 if (process_manager) { |
1083 ExtensionProcessManager::const_iterator jt; | 1083 ExtensionProcessManager::const_iterator jt; |
1084 for (jt = process_manager->begin(); jt != process_manager->end(); ++jt) | 1084 for (jt = process_manager->begin(); jt != process_manager->end(); ++jt) |
1085 AddToTaskManager(*jt); | 1085 AddToTaskManager(*jt); |
1086 } | 1086 } |
1087 | 1087 |
1088 // If we have an incognito profile active, include the split-mode incognito | 1088 // If we have an incognito profile active, include the split-mode incognito |
1089 // extensions. | 1089 // extensions. |
1090 if (BrowserList::IsOffTheRecordSessionActive()) { | 1090 if (BrowserList::IsOffTheRecordSessionActiveForProfile(profiles[i])) { |
1091 ExtensionProcessManager* process_manager = | 1091 ExtensionProcessManager* process_manager = |
1092 profiles[i]->GetOffTheRecordProfile()->GetExtensionProcessManager(); | 1092 profiles[i]->GetOffTheRecordProfile()->GetExtensionProcessManager(); |
1093 if (process_manager) { | 1093 if (process_manager) { |
1094 ExtensionProcessManager::const_iterator jt; | 1094 ExtensionProcessManager::const_iterator jt; |
1095 for (jt = process_manager->begin(); jt != process_manager->end(); ++jt) | 1095 for (jt = process_manager->begin(); jt != process_manager->end(); ++jt) |
1096 AddToTaskManager(*jt); | 1096 AddToTaskManager(*jt); |
1097 } | 1097 } |
1098 } | 1098 } |
1099 } | 1099 } |
1100 | 1100 |
(...skipping 212 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1313 | 1313 |
1314 return &resource_; | 1314 return &resource_; |
1315 } | 1315 } |
1316 | 1316 |
1317 void TaskManagerBrowserProcessResourceProvider::StartUpdating() { | 1317 void TaskManagerBrowserProcessResourceProvider::StartUpdating() { |
1318 task_manager_->AddResource(&resource_); | 1318 task_manager_->AddResource(&resource_); |
1319 } | 1319 } |
1320 | 1320 |
1321 void TaskManagerBrowserProcessResourceProvider::StopUpdating() { | 1321 void TaskManagerBrowserProcessResourceProvider::StopUpdating() { |
1322 } | 1322 } |
OLD | NEW |