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

Unified Diff: base/win/scoped_comptr.h

Issue 2885063003: Remove ScopedComPtr::QueryFrom() (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 | « base/test/test_shortcut_win.cc ('k') | base/win/shortcut.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/win/scoped_comptr.h
diff --git a/base/win/scoped_comptr.h b/base/win/scoped_comptr.h
index 8d3c93150789b4d4cf72ae58408e922f9cc891c3..68c99e02d01adc9303f4dc96911c0ffb13fd06e3 100644
--- a/base/win/scoped_comptr.h
+++ b/base/win/scoped_comptr.h
@@ -116,13 +116,6 @@ class ScopedComPtr {
return ptr_->QueryInterface(iid, obj);
}
- // Queries |other| for the interface this object wraps and returns the
- // error code from the other->QueryInterface operation.
- HRESULT QueryFrom(IUnknown* object) {
- DCHECK(object);
- return object->QueryInterface(IID_PPV_ARGS(GetAddressOf()));
- }
-
// Convenience wrapper around CoCreateInstance
HRESULT CreateInstance(const CLSID& clsid,
IUnknown* outer = nullptr,
« no previous file with comments | « base/test/test_shortcut_win.cc ('k') | base/win/shortcut.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698