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

Unified Diff: chrome/browser/printing/print_job_manager.h

Issue 11443020: Replaced vector with set for current_jobs_. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years 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
« no previous file with comments | « no previous file | chrome/browser/printing/print_job_manager.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/printing/print_job_manager.h
diff --git a/chrome/browser/printing/print_job_manager.h b/chrome/browser/printing/print_job_manager.h
index f25764e44d5a7b22f1b39057d8d246d5becaaecb..749c29b49d6db2dfba9da2c6ea1ba70fdf570a3a 100644
--- a/chrome/browser/printing/print_job_manager.h
+++ b/chrome/browser/printing/print_job_manager.h
@@ -5,6 +5,7 @@
#ifndef CHROME_BROWSER_PRINTING_PRINT_JOB_MANAGER_H_
#define CHROME_BROWSER_PRINTING_PRINT_JOB_MANAGER_H_
+#include <set>
#include <vector>
#include "base/memory/ref_counted.h"
@@ -52,7 +53,7 @@ class PrintJobManager : public content::NotificationObserver {
PrintDestinationInterface* destination() const { return destination_.get(); }
private:
- typedef std::vector<scoped_refptr<PrintJob> > PrintJobs;
+ typedef std::set<scoped_refptr<PrintJob> > PrintJobs;
typedef std::vector<scoped_refptr<PrinterQuery> > PrinterQueries;
// Processes a NOTIFY_PRINT_JOB_EVENT notification.
« no previous file with comments | « no previous file | chrome/browser/printing/print_job_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698