| Index: chrome/browser/chrome_plugin_host.cc
|
| ===================================================================
|
| --- chrome/browser/chrome_plugin_host.cc (revision 29872)
|
| +++ chrome/browser/chrome_plugin_host.cc (working copy)
|
| @@ -21,6 +21,7 @@
|
| #include "chrome/browser/chrome_thread.h"
|
| #include "chrome/browser/dom_ui/html_dialog_ui.h"
|
| #include "chrome/browser/gears_integration.h"
|
| +#include "chrome/browser/net/url_request_context_getter.h"
|
| #include "chrome/browser/plugin_process_host.h"
|
| #include "chrome/browser/plugin_service.h"
|
| #include "chrome/browser/profile.h"
|
| @@ -157,7 +158,7 @@
|
| ToURLRequestContext(cprequest_->context);
|
| // TODO(mpcomplete): remove fallback case when Gears support is prevalent.
|
| if (!context)
|
| - context = Profile::GetDefaultRequestContext();
|
| + context = Profile::GetDefaultRequestContext()->GetURLRequestContext();
|
|
|
| GURL gurl(cprequest_->url);
|
| request_.reset(new URLRequest(gurl, this));
|
| @@ -389,7 +390,7 @@
|
| ToURLRequestContext(bcontext);
|
| // TODO(mpcomplete): remove fallback case when Gears support is prevalent.
|
| if (!context) {
|
| - context = Profile::GetDefaultRequestContext();
|
| + context = Profile::GetDefaultRequestContext()->GetURLRequestContext();
|
| if (!context)
|
| return CPERR_FAILURE;
|
| }
|
|
|