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

Unified Diff: chrome/browser/profiles/profile_impl.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/browser/profiles/profile_impl.cc
diff --git a/chrome/browser/profiles/profile_impl.cc b/chrome/browser/profiles/profile_impl.cc
index 40904e3c49b1282bd8fa2932d82522c5c03eae5d..f0df9e3975fdb5b20c6ad3561b2326959d3fd699 100644
--- a/chrome/browser/profiles/profile_impl.cc
+++ b/chrome/browser/profiles/profile_impl.cc
@@ -72,6 +72,8 @@
#include "chrome/browser/sessions/session_service_factory.h"
#include "chrome/browser/ui/startup/startup_browser_creator.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_internal.h"
#include "chrome/common/chrome_switches.h"
@@ -1190,6 +1192,14 @@ PrefProxyConfigTracker* ProfileImpl::GetProxyConfigTracker() {
return pref_proxy_config_tracker_.get();
}
+content::WakeLockPermissionContext*
+ ProfileImpl::GetWakeLockPermissionContext() {
+#if defined(OS_IOS)
+ return NULL;
+#endif
+ return ChromeWakeLockPermissionContextFactory::GetForProfile(this);
+}
+
chrome_browser_net::Predictor* ProfileImpl::GetNetworkPredictor() {
return predictor_;
}

Powered by Google App Engine
This is Rietveld 408576698