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

Unified Diff: chrome/browser/task_manager/tab_contents_resource_provider.cc

Issue 133013002: Remove render process and WebContents notifications from background printing. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fixes Created 6 years, 11 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/task_manager/tab_contents_resource_provider.cc
diff --git a/chrome/browser/task_manager/tab_contents_resource_provider.cc b/chrome/browser/task_manager/tab_contents_resource_provider.cc
index 9b79cc145eb5b15ee8ab87c60ca043c794053a81..8bf392ad5ac60d1dd3401c93b24dbe4b0d198a9f 100644
--- a/chrome/browser/task_manager/tab_contents_resource_provider.cc
+++ b/chrome/browser/task_manager/tab_contents_resource_provider.cc
@@ -249,9 +249,11 @@ void TabContentsResourceProvider::StartUpdating() {
// Add all the pages being background printed.
printing::BackgroundPrintingManager* printing_manager =
g_browser_process->background_printing_manager();
- for (printing::BackgroundPrintingManager::WebContentsSet::iterator i =
- printing_manager->begin();
- i != printing_manager->end(); ++i) {
+ std::set<content::WebContents*> printing_contents =
+ printing_manager->CurrentContentSet();
+ for (std::set<content::WebContents*>::iterator i =
+ printing_contents.begin();
+ i != printing_contents.end(); ++i) {
Add(*i);
}
#endif

Powered by Google App Engine
This is Rietveld 408576698