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

Unified Diff: chrome/browser/idle_chromeos.cc

Issue 9838085: Move files inside chrome/browser/chromeos/dbus to chromeos/dbus (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Rebase Created 8 years, 8 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/extensions/system/system_apitest.cc ('k') | chrome/browser/policy/device_policy_cache.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/idle_chromeos.cc
diff --git a/chrome/browser/idle_chromeos.cc b/chrome/browser/idle_chromeos.cc
index ee9e055c31a80c0286c8c51c6bccb23464b4dd57..d8f2f0809493f77f7d1c46efc24a48628ee6ad56 100644
--- a/chrome/browser/idle_chromeos.cc
+++ b/chrome/browser/idle_chromeos.cc
@@ -1,4 +1,4 @@
-// Copyright (c) 2011 The Chromium Authors. All rights reserved.
+// 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.
@@ -6,11 +6,8 @@
#include "base/bind.h"
#include "base/callback.h"
-#include "chrome/browser/chromeos/dbus/dbus_thread_manager.h"
-#include "chrome/browser/chromeos/dbus/power_manager_client.h"
-#if !defined(USE_AURA)
-#include "chrome/browser/screensaver_window_finder_gtk.h"
-#endif
+#include "chromeos/dbus/dbus_thread_manager.h"
+#include "chromeos/dbus/power_manager_client.h"
void CalculateIdleStateNotifier(unsigned int idle_treshold,
IdleCallback notify,
@@ -25,10 +22,6 @@ void CalculateIdleStateNotifier(unsigned int idle_treshold,
}
void CalculateIdleState(unsigned int idle_threshold, IdleCallback notify) {
- if (CheckIdleStateIsLocked()) {
- notify.Run(IDLE_STATE_LOCKED);
- return;
- }
chromeos::DBusThreadManager::Get()->GetPowerManagerClient()->
CalculateIdleTime(base::Bind(&CalculateIdleStateNotifier, idle_threshold,
notify));
@@ -37,9 +30,6 @@ void CalculateIdleState(unsigned int idle_threshold, IdleCallback notify) {
bool CheckIdleStateIsLocked() {
// Usually the screensaver is used to lock the screen, so we do not need to
// check if the workstation is locked.
-#if defined(USE_AURA)
+ // TODO(oshima): Verify if this behavior is correct.
return false;
-#else
- return ScreensaverWindowFinder::ScreensaverWindowExists();
-#endif
}
« no previous file with comments | « chrome/browser/extensions/system/system_apitest.cc ('k') | chrome/browser/policy/device_policy_cache.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698