Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(837)

Unified Diff: chrome/test/base/testing_profile.cc

Issue 406483004: Initial implementation of API WakeLock. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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_;
}

Powered by Google App Engine
This is Rietveld 408576698