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 dfcef82b4ffaef43da1ab34f0068031e73e33ae9..c8e62230cc1bb21ba7a53e78741fb05423750e2a 100644 |
--- a/chrome/browser/profiles/off_the_record_profile_impl.cc |
+++ b/chrome/browser/profiles/off_the_record_profile_impl.cc |
@@ -30,6 +30,8 @@ |
#include "chrome/browser/prefs/pref_service_syncable.h" |
#include "chrome/browser/themes/theme_service.h" |
#include "chrome/browser/ui/webui/extensions/extension_icon_source.h" |
+#include "chrome/browser/wake_lock/chrome_wake_lock_permission_context.h" |
+#include "chrome/browser/wake_lock/chrome_wake_lock_permission_context_factory.h" |
#include "chrome/common/chrome_constants.h" |
#include "chrome/common/chrome_paths.h" |
#include "chrome/common/chrome_switches.h" |
@@ -379,6 +381,15 @@ OffTheRecordProfileImpl::GetPushMessagingService() { |
return NULL; |
} |
+content::WakeLockPermissionContext* |
+ OffTheRecordProfileImpl::GetWakeLockPermissionContext() { |
+#if defined(OS_IOS) |
+ return NULL; |
+#else |
+ return ChromeWakeLockPermissionContextFactory::GetForProfile(this); |
+#endif |
+} |
+ |
bool OffTheRecordProfileImpl::IsSameProfile(Profile* profile) { |
return (profile == this) || (profile == profile_); |
} |