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

Unified Diff: media/midi/midi_manager_winrt.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 | « media/gpu/media_foundation_video_encode_accelerator_win.cc ('k') | net/http/url_security_manager_win.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/midi/midi_manager_winrt.cc
diff --git a/media/midi/midi_manager_winrt.cc b/media/midi/midi_manager_winrt.cc
index 5a0dedfe07438488891661c72bbfd39ddb8195d0..8b2b643fe1fce4c5704a831c068178fd872580c6 100644
--- a/media/midi/midi_manager_winrt.cc
+++ b/media/midi/midi_manager_winrt.cc
@@ -387,7 +387,7 @@ class MidiManagerWinrt::MidiPortManager {
return false;
hr = dev_info_statics->CreateWatcherAqsFilter(device_selector,
- watcher_.Receive());
+ watcher_.GetAddressOf());
if (FAILED(hr)) {
VLOG(1) << "CreateWatcherAqsFilter failed: " << PrintHr(hr);
return false;
@@ -794,14 +794,14 @@ class MidiManagerWinrt::MidiInPortManager final
std::string dev_id = GetDeviceIdString(handle);
ScopedComPtr<IMidiMessage> message;
- HRESULT hr = args->get_Message(message.Receive());
+ HRESULT hr = args->get_Message(message.GetAddressOf());
if (FAILED(hr)) {
VLOG(1) << "get_Message failed: " << PrintHr(hr);
return hr;
}
ScopedComPtr<IBuffer> buffer;
- hr = message->get_RawData(buffer.Receive());
+ hr = message->get_RawData(buffer.GetAddressOf());
if (FAILED(hr)) {
VLOG(1) << "get_RawData failed: " << PrintHr(hr);
return hr;
@@ -1014,7 +1014,7 @@ void MidiManagerWinrt::SendOnComThread(uint32_t port_index,
ScopedComPtr<IBuffer> buffer;
HRESULT hr = buffer_factory->Create(static_cast<UINT32>(data.size()),
- buffer.Receive());
+ buffer.GetAddressOf());
if (FAILED(hr)) {
VLOG(1) << "Create failed: " << PrintHr(hr);
return;
« no previous file with comments | « media/gpu/media_foundation_video_encode_accelerator_win.cc ('k') | net/http/url_security_manager_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698