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

Unified Diff: printing/printing_context.cc

Issue 1863223002: Convert //printing to use std::unique_ptr (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 8 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
« no previous file with comments | « printing/printing_context.h ('k') | printing/printing_context_android.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: printing/printing_context.cc
diff --git a/printing/printing_context.cc b/printing/printing_context.cc
index 2e080397a691ff91be558a7219dafbe2b04b2cea..5187ceed373f1b2654d76de09912db8b2bd9735a 100644
--- a/printing/printing_context.cc
+++ b/printing/printing_context.cc
@@ -49,7 +49,8 @@ PrintingContext::Result PrintingContext::OnError() {
}
PrintingContext::Result PrintingContext::UsePdfSettings() {
- scoped_ptr<base::DictionaryValue> pdf_settings(new base::DictionaryValue);
+ std::unique_ptr<base::DictionaryValue> pdf_settings(
+ new base::DictionaryValue);
pdf_settings->SetBoolean(kSettingHeaderFooterEnabled, false);
pdf_settings->SetBoolean(kSettingShouldPrintBackgrounds, false);
pdf_settings->SetBoolean(kSettingShouldPrintSelectionOnly, false);
« no previous file with comments | « printing/printing_context.h ('k') | printing/printing_context_android.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698