diff options
author | dcheng@chromium.org <dcheng@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-01-31 01:53:59 +0000 |
---|---|---|
committer | dcheng@chromium.org <dcheng@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-01-31 01:53:59 +0000 |
commit | 9190109795bc1f9360bc15236cc6f0a2debc97c9 (patch) | |
tree | f325c1e0d89f4475622d6e328eda3866665cf2a3 /chrome/browser/idle_mac.mm | |
parent | 8e837ecd0f4983e7b76f017ac847e3856d30f49d (diff) | |
download | chromium_src-9190109795bc1f9360bc15236cc6f0a2debc97c9.zip chromium_src-9190109795bc1f9360bc15236cc6f0a2debc97c9.tar.gz chromium_src-9190109795bc1f9360bc15236cc6f0a2debc97c9.tar.bz2 |
Move full screen/idle detection out of NotificationUIManagerImpl
There are other places in the code other than NotificationUIManagerImpl
that use these global services, so we should move the initialization out
of the notifications code to avoid hiding these dependencies.
BUG=155422
Review URL: https://chromiumcodereview.appspot.com/12086051
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@179763 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/idle_mac.mm')
-rw-r--r-- | chrome/browser/idle_mac.mm | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/chrome/browser/idle_mac.mm b/chrome/browser/idle_mac.mm index d13da03..1825c83 100644 --- a/chrome/browser/idle_mac.mm +++ b/chrome/browser/idle_mac.mm @@ -79,11 +79,6 @@ void InitIdleMonitor() { g_screenMonitor = [[MacScreenMonitor alloc] init]; } -void StopIdleMonitor() { - [g_screenMonitor release]; - g_screenMonitor = nil; -} - void CalculateIdleTime(IdleTimeCallback notify) { CFTimeInterval idle_time = CGEventSourceSecondsSinceLastEventType( kCGEventSourceStateCombinedSessionState, |