| Index: chrome/browser/profiles/profile.cc
|
| diff --git a/chrome/browser/profiles/profile.cc b/chrome/browser/profiles/profile.cc
|
| index 0575861eca263e8e027623992e5fb77d18f78f2d..3de0057f4e65e10dafa3e1bc9e3b3f8a3811483d 100644
|
| --- a/chrome/browser/profiles/profile.cc
|
| +++ b/chrome/browser/profiles/profile.cc
|
| @@ -35,6 +35,7 @@
|
| #include "chrome/common/chrome_constants.h"
|
| #include "chrome/common/chrome_paths.h"
|
| #include "chrome/common/chrome_switches.h"
|
| +#include "chrome/common/extensions/extension.h"
|
| #include "chrome/common/json_pref_store.h"
|
| #include "chrome/common/notification_service.h"
|
| #include "chrome/common/pref_names.h"
|
| @@ -419,6 +420,17 @@ class OffTheRecordProfileImpl : public Profile,
|
| return io_data_.GetMainRequestContextGetter();
|
| }
|
|
|
| + virtual URLRequestContextGetter* GetRequestContextForPossibleApp(
|
| + const Extension* installed_app) {
|
| + if (CommandLine::ForCurrentProcess()->HasSwitch(
|
| + switches::kEnableExperimentalAppManifests) &&
|
| + installed_app != NULL &&
|
| + installed_app->is_storage_isolated())
|
| + return GetRequestContextForIsolatedApp(installed_app);
|
| +
|
| + return GetRequestContext();
|
| + }
|
| +
|
| virtual URLRequestContextGetter* GetRequestContextForMedia() {
|
| // In OTR mode, media request context is the same as the original one.
|
| return io_data_.GetMainRequestContextGetter();
|
| @@ -428,6 +440,11 @@ class OffTheRecordProfileImpl : public Profile,
|
| return io_data_.GetExtensionsRequestContextGetter();
|
| }
|
|
|
| + URLRequestContextGetter* GetRequestContextForIsolatedApp(
|
| + const Extension* installed_app) {
|
| + return io_data_.GetIsolatedAppRequestContextGetter(installed_app);
|
| + }
|
| +
|
| virtual net::SSLConfigService* GetSSLConfigService() {
|
| return profile_->GetSSLConfigService();
|
| }
|
|
|