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

Unified Diff: chrome/browser/chromeos/system/screen_locker_settings.cc

Issue 10689101: chromeos: screen_locker_settings -> power_manager_settings (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 5 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/browser/chromeos/system/screen_locker_settings.h ('k') | chrome/chrome_browser.gypi » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/chromeos/system/screen_locker_settings.cc
diff --git a/chrome/browser/chromeos/system/screen_locker_settings.cc b/chrome/browser/chromeos/system/screen_locker_settings.cc
deleted file mode 100644
index 728b418c4dab8f1af1dbf094e9ed1e52eb194de2..0000000000000000000000000000000000000000
--- a/chrome/browser/chromeos/system/screen_locker_settings.cc
+++ /dev/null
@@ -1,49 +0,0 @@
-// 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/system/screen_locker_settings.h"
-
-#include "base/bind.h"
-#include "base/chromeos/chromeos_version.h"
-#include "base/file_path.h"
-#include "base/file_util.h"
-#include "base/stringprintf.h"
-#include "content/public/browser/browser_thread.h"
-
-using content::BrowserThread;
-
-namespace {
-
-const char kLockOnIdleSuspendPath[] =
- "/var/lib/power_manager/lock_on_idle_suspend";
-
-void EnableScreenLockOnFileThread(bool enable) {
- DCHECK(BrowserThread::CurrentlyOn(BrowserThread::FILE));
-
- if (base::chromeos::IsRunningOnChromeOS()) {
- std::string config = base::StringPrintf("%d", enable);
- file_util::WriteFile(FilePath(kLockOnIdleSuspendPath),
- config.c_str(),
- config.size());
- }
-}
-
-} // namespace
-
-namespace chromeos {
-namespace system {
-namespace screen_locker_settings {
-
-void EnableScreenLock(bool enable) {
- DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI));
-
- // Run this on the FILE thread.
- BrowserThread::PostTask(
- BrowserThread::FILE, FROM_HERE,
- base::Bind(&EnableScreenLockOnFileThread, enable));
-}
-
-} // namespace screen_locker_settings
-} // namespace system
-} // namespace chromeos
« no previous file with comments | « chrome/browser/chromeos/system/screen_locker_settings.h ('k') | chrome/chrome_browser.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698