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

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

Issue 2828693006: Use unique_ptrs in PrintPreviewDataService. (Closed)
Patch Set: Created 3 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 | « no previous file | chrome/browser/printing/print_preview_data_service.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/printing/print_preview_data_service.h
diff --git a/chrome/browser/printing/print_preview_data_service.h b/chrome/browser/printing/print_preview_data_service.h
index 9052528216337c9e5fae8d80b53456256002db59..5fa52e30b8f60701be8a41e13bf390c83b2995d0 100644
--- a/chrome/browser/printing/print_preview_data_service.h
+++ b/chrome/browser/printing/print_preview_data_service.h
@@ -8,6 +8,7 @@
#include <stdint.h>
#include <map>
+#include <memory>
#include <string>
#include "base/macros.h"
@@ -57,7 +58,7 @@ class PrintPreviewDataService {
// Key: PrintPreviewUI ID.
// Value: Print preview data store object.
using PreviewDataStoreMap =
- std::map<int32_t, scoped_refptr<PrintPreviewDataStore>>;
+ std::map<int32_t, std::unique_ptr<PrintPreviewDataStore>>;
PrintPreviewDataService();
~PrintPreviewDataService();
« no previous file with comments | « no previous file | chrome/browser/printing/print_preview_data_service.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698