diff options
author | ananta@chromium.org <ananta@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-09-23 21:30:12 +0000 |
---|---|---|
committer | ananta@chromium.org <ananta@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-09-23 21:30:12 +0000 |
commit | 0cf95dfb52f6492f4601891028a3871f817457c7 (patch) | |
tree | 8016e3440924e802a099f3f4627dfc1a82c7b816 /chrome/default_plugin | |
parent | 1d447cc35c56c2972e5b4cd661d3749b162c6951 (diff) | |
download | chromium_src-0cf95dfb52f6492f4601891028a3871f817457c7.zip chromium_src-0cf95dfb52f6492f4601891028a3871f817457c7.tar.gz chromium_src-0cf95dfb52f6492f4601891028a3871f817457c7.tar.bz2 |
Stop using the Profile::Deprecated::GetDefaultRequestContext function in the ChromePluginMessageFilter.
This functionality is currently being used the NPAPI plugin installer on Windows.
Fix is to use the request context from the BrowserContext object from the RenderProcessHost instance
corresponding to the plugin instance.
To retrieve the RenderProcessHost instance we pass the renderer process id from the plugin while
initiating the download.
Fixes bug http://code.google.com/p/chromium/issues/detail?id=97743
BUG=97743
TEST=no change in functionality.
Review URL: http://codereview.chromium.org/8016009
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@102581 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/default_plugin')
-rw-r--r-- | chrome/default_plugin/plugin_impl_win.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/chrome/default_plugin/plugin_impl_win.cc b/chrome/default_plugin/plugin_impl_win.cc index 22f6aa4..d61228b 100644 --- a/chrome/default_plugin/plugin_impl_win.cc +++ b/chrome/default_plugin/plugin_impl_win.cc @@ -348,7 +348,7 @@ void PluginInstallerImpl::DownloadPlugin() { if (!plugin_download_url_for_display_) { #if !defined(USE_AURA) ChildThread::current()->Send(new ChromePluginProcessHostMsg_DownloadUrl( - plugin_download_url_, hwnd())); + plugin_download_url_, hwnd(), renderer_process_id())); #endif } else { default_plugin::g_browser->geturl(instance(), |