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

Unified Diff: remoting/host/win/rdp_client_window.cc

Issue 2864523002: Rename ScopedComPtr::QueryInterface to ScopedComPtr::CopyTo (Closed)
Patch Set: 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 | « net/url_request/url_request_unittest.cc ('k') | ui/accessibility/platform/ax_platform_node_win.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/host/win/rdp_client_window.cc
diff --git a/remoting/host/win/rdp_client_window.cc b/remoting/host/win/rdp_client_window.cc
index bf58ec5a3ae31f67fd150c77578813f82ebd60f6..02ccc667bc60f60376b65ed8c692c61716cff105 100644
--- a/remoting/host/win/rdp_client_window.cc
+++ b/remoting/host/win/rdp_client_window.cc
@@ -287,7 +287,7 @@ LRESULT RdpClientWindow::OnCreate(CREATESTRUCT* create_struct) {
if (FAILED(result))
return LogOnCreateError(result);
- result = control.QueryInterface(client_.Receive());
+ result = control.CopyTo(client_.Receive());
if (FAILED(result))
return LogOnCreateError(result);
@@ -305,7 +305,7 @@ LRESULT RdpClientWindow::OnCreate(CREATESTRUCT* create_struct) {
return LogOnCreateError(result);
// Check to see if the platform exposes the interface used for resizing.
- result = client_.QueryInterface(client_9_.Receive());
+ result = client_.CopyTo(client_9_.Receive());
if (FAILED(result) && result != E_NOINTERFACE) {
return LogOnCreateError(result);
}
@@ -469,7 +469,7 @@ HRESULT RdpClientWindow::OnDisconnected(long reason) {
// Get the error message as well.
base::win::ScopedBstr error_message;
base::win::ScopedComPtr<mstsc::IMsRdpClient5> client5;
- result = client_.QueryInterface(client5.Receive());
+ result = client_.CopyTo(client5.Receive());
if (SUCCEEDED(result)) {
result = client5->GetErrorDescription(reason, extended_code,
error_message.Receive());
« no previous file with comments | « net/url_request/url_request_unittest.cc ('k') | ui/accessibility/platform/ax_platform_node_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698