| Index: chrome/browser/plugin_installer.cc
|
| ===================================================================
|
| --- chrome/browser/plugin_installer.cc (revision 140592)
|
| +++ chrome/browser/plugin_installer.cc (working copy)
|
| @@ -27,8 +27,10 @@
|
| #include "net/url_request/url_request.h"
|
| #include "webkit/plugins/npapi/plugin_group.h"
|
|
|
| +using content::BrowserContext;
|
| using content::BrowserThread;
|
| using content::DownloadItem;
|
| +using content::DownloadManager;
|
| using content::ResourceDispatcherHost;
|
|
|
| namespace {
|
| @@ -193,8 +195,8 @@
|
| state_ = INSTALLER_STATE_DOWNLOADING;
|
| FOR_EACH_OBSERVER(PluginInstallerObserver, observers_, DownloadStarted());
|
| content::WebContents* web_contents = wrapper->web_contents();
|
| - DownloadService* download_service =
|
| - DownloadServiceFactory::GetForProfile(wrapper->profile());
|
| + DownloadManager* download_manager =
|
| + BrowserContext::GetDownloadManager(wrapper->profile());
|
| download_util::RecordDownloadSource(
|
| download_util::INITIATED_BY_PLUGIN_INSTALLER);
|
| BrowserThread::PostTask(
|
| @@ -206,8 +208,7 @@
|
| web_contents->GetRenderViewHost()->GetRoutingID(),
|
| base::Bind(&PluginInstaller::DownloadStarted,
|
| base::Unretained(this),
|
| - make_scoped_refptr(
|
| - download_service->GetDownloadManager()))));
|
| + make_scoped_refptr(download_manager))));
|
| }
|
|
|
| void PluginInstaller::DownloadStarted(
|
|
|