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

Unified Diff: chrome/service/cloud_print/print_system_win.cc

Issue 2870263002: Rename ScopedComPtr::Receive to ScopedComPtr::GetAddressOf (Closed)
Patch Set: Rebase to 2a6f440 Created 3 years, 7 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/installer/util/wmi.cc ('k') | chrome/utility/importer/ie_importer_win.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/service/cloud_print/print_system_win.cc
diff --git a/chrome/service/cloud_print/print_system_win.cc b/chrome/service/cloud_print/print_system_win.cc
index 3f15320c9106f2300874513659725683d6516244..d299ac9b3e60d186efdb6e731603550ea31242fa 100644
--- a/chrome/service/cloud_print/print_system_win.cc
+++ b/chrome/service/cloud_print/print_system_win.cc
@@ -477,8 +477,8 @@ class JobSpoolerWin : public PrintSystem::JobSpooler {
base::UTF8ToWide(printer_name).c_str(),
base::UTF8ToWide(job_title).c_str(), nullptr,
job_progress_event_.Get(), nullptr, nullptr, 0,
- xps_print_job_.Receive(), doc_stream.Receive(),
- print_ticket_stream.Receive()))) {
+ xps_print_job_.GetAddressOf(), doc_stream.GetAddressOf(),
+ print_ticket_stream.GetAddressOf()))) {
return false;
}
@@ -730,7 +730,7 @@ bool PrintSystemWin::ValidatePrintTicket(
&provider);
if (provider) {
base::win::ScopedComPtr<IStream> print_ticket_stream;
- CreateStreamOnHGlobal(NULL, TRUE, print_ticket_stream.Receive());
+ CreateStreamOnHGlobal(NULL, TRUE, print_ticket_stream.GetAddressOf());
ULONG bytes_written = 0;
print_ticket_stream->Write(print_ticket_data.c_str(),
print_ticket_data.length(),
@@ -741,7 +741,7 @@ bool PrintSystemWin::ValidatePrintTicket(
print_ticket_stream->Seek(pos, STREAM_SEEK_SET, &new_pos);
base::win::ScopedBstr error;
base::win::ScopedComPtr<IStream> result_ticket_stream;
- CreateStreamOnHGlobal(NULL, TRUE, result_ticket_stream.Receive());
+ CreateStreamOnHGlobal(NULL, TRUE, result_ticket_stream.GetAddressOf());
ret = SUCCEEDED(printing::XPSModule::MergeAndValidatePrintTicket(
provider,
print_ticket_stream.Get(),
« no previous file with comments | « chrome/installer/util/wmi.cc ('k') | chrome/utility/importer/ie_importer_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698