Index: chrome/test/base/testing_profile.cc |
diff --git a/chrome/test/base/testing_profile.cc b/chrome/test/base/testing_profile.cc |
index be72393f9014061aaca85704ce3c841580a44506..b4f0374330e093eeffa719f99eb47bd80b336ada 100644 |
--- a/chrome/test/base/testing_profile.cc |
+++ b/chrome/test/base/testing_profile.cc |
@@ -46,6 +46,8 @@ |
#include "chrome/browser/profiles/profile_manager.h" |
#include "chrome/browser/profiles/storage_partition_descriptor.h" |
#include "chrome/browser/search_engines/template_url_fetcher_factory.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/browser/webdata/web_data_service_factory.h" |
#include "chrome/common/chrome_constants.h" |
#include "chrome/common/chrome_switches.h" |
@@ -603,6 +605,14 @@ TestingProfile* TestingProfile::AsTestingProfile() { |
return this; |
} |
+content::WakeLockPermissionContext* |
+TestingProfile::GetWakeLockPermissionContext() { |
+#if defined(OS_IOS) |
+ return NULL; |
+#endif |
+ return ChromeWakeLockPermissionContextFactory::GetForProfile(this); |
+} |
+ |
std::string TestingProfile::GetProfileName() { |
return profile_name_; |
} |