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

Unified Diff: content/browser/renderer_host/legacy_render_widget_host_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
Index: content/browser/renderer_host/legacy_render_widget_host_win.cc
diff --git a/content/browser/renderer_host/legacy_render_widget_host_win.cc b/content/browser/renderer_host/legacy_render_widget_host_win.cc
index 7d9c181aa5479be1caa85c6a9b206e7a213a8a3d..c0eff5ba12b24ac40145358d78bcdc7302eb539e 100644
--- a/content/browser/renderer_host/legacy_render_widget_host_win.cc
+++ b/content/browser/renderer_host/legacy_render_widget_host_win.cc
@@ -4,6 +4,8 @@
#include "content/browser/renderer_host/legacy_render_widget_host_win.h"
+#include <objbase.h>
+
#include <memory>
#include "base/command_line.h"
@@ -114,9 +116,8 @@ bool LegacyRenderWidgetHostHWND::Init() {
if (base::win::GetVersion() >= base::win::VERSION_WIN7)
RegisterTouchWindow(hwnd(), TWF_WANTPALM);
- HRESULT hr = ::CreateStdAccessibleObject(
- hwnd(), OBJID_WINDOW, IID_IAccessible,
- reinterpret_cast<void **>(window_accessible_.Receive()));
+ HRESULT hr = ::CreateStdAccessibleObject(hwnd(), OBJID_WINDOW,
+ IID_PPV_ARGS(&window_accessible_));
DCHECK(SUCCEEDED(hr));
AccessibilityMode mode =

Powered by Google App Engine
This is Rietveld 408576698