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

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

Issue 7622005: Ensure that incognito profiles are correctly destroyed when all incognito windows belonging to a ... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 9 years, 4 months 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
« no previous file with comments | « no previous file | chrome/browser/ui/browser.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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_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
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
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 }
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/ui/browser.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698