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

Unified Diff: plugin/npapi_host_control/win/np_browser_proxy.cc

Issue 598075: Removal Of NPObjectProxy ClassId (Closed) Base URL: http://src.chromium.org/svn/trunk/src/o3d/
Patch Set: '' Created 10 years, 10 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 | « installer/win/o3d.wxs ('k') | plugin/npapi_host_control/win/np_object_proxy.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: plugin/npapi_host_control/win/np_browser_proxy.cc
===================================================================
--- plugin/npapi_host_control/win/np_browser_proxy.cc (revision 38656)
+++ plugin/npapi_host_control/win/np_browser_proxy.cc (working copy)
@@ -159,8 +159,13 @@
}
// Create a new NPObject proxy, register it for future use and return it.
+ CComObject<NPObjectProxy>* proxy_instance;
+ HRESULT hr = CComObject<NPObjectProxy>::CreateInstance(&proxy_instance);
+ if (FAILED(hr))
+ return NULL;
+
CComPtr<INPObjectProxy> proxy_wrapper;
- HRESULT hr = NPObjectProxy::CreateInstance(&proxy_wrapper);
+ hr = proxy_instance->QueryInterface(&proxy_wrapper);
if (SUCCEEDED(hr)) {
proxy_wrapper->SetBrowserProxy(this);
proxy_wrapper->SetHostedObject(np_object);
« no previous file with comments | « installer/win/o3d.wxs ('k') | plugin/npapi_host_control/win/np_object_proxy.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698