Index: chrome/browser/printing/print_job_worker.h |
diff --git a/chrome/browser/printing/print_job_worker.h b/chrome/browser/printing/print_job_worker.h |
index c3c9cf51b04699549aa258640186ef5835307b70..e3e9a6747014fb4a97fe0bd7c6ae40395f4a3c06 100644 |
--- a/chrome/browser/printing/print_job_worker.h |
+++ b/chrome/browser/printing/print_job_worker.h |
@@ -52,9 +52,9 @@ class PrintJobWorker { |
bool has_selection, |
MarginType margin_type); |
- // Set the new print settings. This function takes ownership of |
- // |new_settings|. |
- void SetSettings(const base::DictionaryValue* const new_settings); |
+ // Set the new print settings. |
+ void SetSettings( |
+ scoped_ptr<base::DictionaryValue> new_settings); |
// Starts the printing loop. Every pages are printed as soon as the data is |
// available. Makes sure the new_document is the right one. |
@@ -122,9 +122,8 @@ class PrintJobWorker { |
// back into the IO thread for GetSettingsDone(). |
void GetSettingsWithUIDone(PrintingContext::Result result); |
- // Called on the UI thread to update the print settings. This function takes |
- // the ownership of |new_settings|. |
- void UpdatePrintSettings(const base::DictionaryValue* const new_settings); |
+ // Called on the UI thread to update the print settings. |
+ void UpdatePrintSettings(scoped_ptr<base::DictionaryValue> new_settings); |
// Reports settings back to owner_. |
void GetSettingsDone(PrintingContext::Result result); |