Index: content/child/npapi/webplugin_delegate_impl_win.cc |
diff --git a/content/child/npapi/webplugin_delegate_impl_win.cc b/content/child/npapi/webplugin_delegate_impl_win.cc |
index 7781c5a5ed89d439d090aa38c9fc8231f726c944..40f2251a28cb94cd40e1916a7486436d8b02a213 100644 |
--- a/content/child/npapi/webplugin_delegate_impl_win.cc |
+++ b/content/child/npapi/webplugin_delegate_impl_win.cc |
@@ -499,35 +499,6 @@ bool WebPluginDelegateImpl::WindowedCreatePlugin() { |
BOOL result = SetProp(windowed_handle_, kWebPluginDelegateProperty, this); |
DCHECK(result == TRUE) << "SetProp failed, last error = " << GetLastError(); |
- // Get the name and version of the plugin, create atoms and set them in a |
- // window property. Use atoms so that other processes can access the name and |
- // version of the plugin that this window is hosting. |
- if (instance_ != NULL) { |
- PluginLib* plugin_lib = instance()->plugin_lib(); |
- if (plugin_lib != NULL) { |
- std::wstring plugin_name = plugin_lib->plugin_info().name; |
- if (!plugin_name.empty()) { |
- ATOM plugin_name_atom = GlobalAddAtomW(plugin_name.c_str()); |
- DCHECK_NE(0, plugin_name_atom) << " last error = " << |
- GetLastError(); |
- result = SetProp(windowed_handle_, |
- kPluginNameAtomProperty, |
- reinterpret_cast<HANDLE>(plugin_name_atom)); |
- DCHECK(result == TRUE) << "SetProp failed, last error = " << |
- GetLastError(); |
- } |
- base::string16 plugin_version = plugin_lib->plugin_info().version; |
- if (!plugin_version.empty()) { |
- ATOM plugin_version_atom = GlobalAddAtomW(plugin_version.c_str()); |
- DCHECK_NE(0, plugin_version_atom); |
- result = SetProp(windowed_handle_, |
- kPluginVersionAtomProperty, |
- reinterpret_cast<HANDLE>(plugin_version_atom)); |
- DCHECK(result == TRUE) << "SetProp failed, last error = " << |
- GetLastError(); |
- } |
- } |
- } |
// Calling SetWindowLongPtrA here makes the window proc ASCII, which is |
// required by at least the Shockwave Director plug-in. |
@@ -1027,14 +998,6 @@ LRESULT CALLBACK WebPluginDelegateImpl::NativeWndProc( |
if (message == WM_NCDESTROY) { |
RemoveProp(hwnd, kWebPluginDelegateProperty); |
- ATOM plugin_name_atom = reinterpret_cast<ATOM>( |
- RemoveProp(hwnd, kPluginNameAtomProperty)); |
- if (plugin_name_atom != 0) |
- GlobalDeleteAtom(plugin_name_atom); |
- ATOM plugin_version_atom = reinterpret_cast<ATOM>( |
- RemoveProp(hwnd, kPluginVersionAtomProperty)); |
- if (plugin_version_atom != 0) |
- GlobalDeleteAtom(plugin_version_atom); |
ClearThrottleQueueForWindow(hwnd); |
} |
} |