| Index: chrome/browser/chromeos/cros/power_library.cc
|
| diff --git a/chrome/browser/chromeos/cros/power_library.cc b/chrome/browser/chromeos/cros/power_library.cc
|
| index ad46f69eb65749e0984e8e986283c9d920a44d9e..878c735910e02e99a4940ecffa2a0df4c6a082fc 100644
|
| --- a/chrome/browser/chromeos/cros/power_library.cc
|
| +++ b/chrome/browser/chromeos/cros/power_library.cc
|
| @@ -48,23 +48,9 @@ class PowerLibraryImpl : public PowerLibrary {
|
| observers_.RemoveObserver(observer);
|
| }
|
|
|
| - virtual void EnableScreenLock(bool enable) OVERRIDE {
|
| - // Called when the screen preference is changed, which should always
|
| - // run on UI thread.
|
| - DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI));
|
| - // Post the task to FILE thread as chromeos::EnableScreenLock
|
| - // would write power manager config file to disk.
|
| - BrowserThread::PostTask(
|
| - BrowserThread::FILE, FROM_HERE,
|
| - base::Bind(&PowerLibraryImpl::DoEnableScreenLock, enable));
|
| - }
|
| -
|
| // End PowerLibrary implementation.
|
|
|
| private:
|
| - static void DoEnableScreenLock(bool enable) {
|
| - chromeos::EnableScreenLock(enable);
|
| - }
|
|
|
| static void SystemResumedHandler(void* object) {
|
| PowerLibraryImpl* power = static_cast<PowerLibraryImpl*>(object);
|
| @@ -105,8 +91,6 @@ class PowerLibraryStubImpl : public PowerLibrary {
|
| observers_.RemoveObserver(observer);
|
| }
|
|
|
| - virtual void EnableScreenLock(bool enable) OVERRIDE {}
|
| -
|
| // End PowerLibrary implementation.
|
| private:
|
| ObserverList<Observer> observers_;
|
|
|