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

Unified Diff: chrome/browser/ui/webui/print_preview/print_preview_ui.cc

Issue 1803263002: base: Make RefCountedBytes::TakeVector return ref ptr instead of raw ptr (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 9 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 | « chrome/browser/ui/webui/print_preview/print_preview_ui.h ('k') | ui/base/x/selection_requestor.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/webui/print_preview/print_preview_ui.cc
diff --git a/chrome/browser/ui/webui/print_preview/print_preview_ui.cc b/chrome/browser/ui/webui/print_preview/print_preview_ui.cc
index aa176f5f09ca56bc9d68e2b3462294da19af3565..087fe1b9c6694a18b584182073154739226c092c 100644
--- a/chrome/browser/ui/webui/print_preview/print_preview_ui.cc
+++ b/chrome/browser/ui/webui/print_preview/print_preview_ui.cc
@@ -442,8 +442,8 @@ void PrintPreviewUI::GetPrintPreviewDataForIndex(
void PrintPreviewUI::SetPrintPreviewDataForIndex(
int index,
- const base::RefCountedBytes* data) {
- print_preview_data_service()->SetDataEntry(id_, index, data);
+ scoped_refptr<base::RefCountedBytes> data) {
+ print_preview_data_service()->SetDataEntry(id_, index, std::move(data));
}
void PrintPreviewUI::ClearAllPreviewData() {
« no previous file with comments | « chrome/browser/ui/webui/print_preview/print_preview_ui.h ('k') | ui/base/x/selection_requestor.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698