blob: 7a8bb8734891fb4399a209054a84bac5caccdf8a [file] [log] [blame]
// 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/extensions/api/system_private/system_private_api.h"
#include "chromeos/dbus/dbus_thread_manager.h"
namespace chromeos {
ScreenLockObserver::ScreenLockObserver() {
DBusThreadManager::Get()->GetSessionManagerClient()->AddObserver(this);
}
ScreenLockObserver::~ScreenLockObserver() {
DBusThreadManager::Get()->GetSessionManagerClient()->RemoveObserver(this);
}
void ScreenLockObserver::ScreenIsUnlocked() {
extensions::DispatchScreenUnlockedEvent();
}
} // namespace chromeos