// Copyright (c) 2012 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "chrome/browser/chromeos/power/screen_lock_observer.h" #include "chrome/browser/chromeos/dbus/dbus_thread_manager.h" #include "chrome/browser/extensions/system/system_api.h" namespace chromeos { ScreenLockObserver::ScreenLockObserver() { DBusThreadManager::Get()->GetPowerManagerClient()->AddObserver(this); } ScreenLockObserver::~ScreenLockObserver() { DBusThreadManager::Get()->GetPowerManagerClient()->RemoveObserver(this); } void ScreenLockObserver::UnlockScreen() { extensions::DispatchScreenUnlockedEvent(); } } // namespace chromeos