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

Side by Side Diff: chrome/browser/chromeos/power/suspend_observer.cc

Issue 12391004: chromeos: Add DisplayPowerServiceProvider. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 9 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "chrome/browser/chromeos/power/suspend_observer.h" 5 #include "chrome/browser/chromeos/power/suspend_observer.h"
6 6
7 #include "ash/shell.h"
7 #include "base/prefs/pref_service.h" 8 #include "base/prefs/pref_service.h"
8 #include "chrome/browser/chromeos/login/user_manager.h" 9 #include "chrome/browser/chromeos/login/user_manager.h"
9 #include "chrome/browser/extensions/api/system_private/system_private_api.h" 10 #include "chrome/browser/extensions/api/system_private/system_private_api.h"
10 #include "chrome/browser/profiles/profile.h" 11 #include "chrome/browser/profiles/profile.h"
11 #include "chrome/browser/profiles/profile_manager.h" 12 #include "chrome/browser/profiles/profile_manager.h"
12 #include "chrome/common/pref_names.h" 13 #include "chrome/common/pref_names.h"
13 #include "chromeos/dbus/dbus_thread_manager.h" 14 #include "chromeos/dbus/dbus_thread_manager.h"
14 #include "chromeos/display/output_configurator.h" 15 #include "chromeos/display/output_configurator.h"
15 16
16 namespace chromeos { 17 namespace chromeos {
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
56 MessageLoop::current()->PostTask(FROM_HERE, screen_lock_callback_); 57 MessageLoop::current()->PostTask(FROM_HERE, screen_lock_callback_);
57 screen_lock_callback_.Reset(); 58 screen_lock_callback_.Reset();
58 } 59 }
59 } 60 }
60 61
61 void SuspendObserver::ScreenIsUnlocked() { 62 void SuspendObserver::ScreenIsUnlocked() {
62 screen_locked_ = false; 63 screen_locked_ = false;
63 } 64 }
64 65
65 } // namespace chromeos 66 } // namespace chromeos
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698