Index: chrome/browser/profiles/off_the_record_profile_impl.cc |
diff --git a/chrome/browser/profiles/off_the_record_profile_impl.cc b/chrome/browser/profiles/off_the_record_profile_impl.cc |
index 909b894a1d5105663612d55852d55f7c0d60526e..a363530fa39fb0dbb3b4e4ac3c4eb4f918dd8d89 100644 |
--- a/chrome/browser/profiles/off_the_record_profile_impl.cc |
+++ b/chrome/browser/profiles/off_the_record_profile_impl.cc |
@@ -23,6 +23,8 @@ |
#include "chrome/browser/net/chrome_url_request_context_getter.h" |
#include "chrome/browser/net/pref_proxy_config_tracker.h" |
#include "chrome/browser/net/proxy_service_factory.h" |
+#include "chrome/browser/permissions/permission_manager.h" |
+#include "chrome/browser/permissions/permission_manager_factory.h" |
#include "chrome/browser/plugins/chrome_plugin_service_filter.h" |
#include "chrome/browser/plugins/plugin_prefs.h" |
#include "chrome/browser/prefs/incognito_mode_prefs.h" |
@@ -439,6 +441,12 @@ OffTheRecordProfileImpl::GetSSLHostStateDelegate() { |
return ChromeSSLHostStateDelegateFactory::GetForProfile(this); |
} |
+// TODO(mlamouri): we should all these BrowserContext implementation to Profile |
+// instead of repeating them inside all Profile implementations. |
+content::PermissionManager* OffTheRecordProfileImpl::GetPermissionManager() { |
+ return PermissionManagerFactory::GetForProfile(this); |
+} |
+ |
bool OffTheRecordProfileImpl::IsSameProfile(Profile* profile) { |
return (profile == this) || (profile == profile_); |
} |