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

Unified Diff: chrome/browser/chromeos/idle_detector.cc

Issue 205713002: Add a basic demo mode browser test. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix license Created 6 years, 9 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/idle_detector.h ('k') | chrome/browser/chromeos/login/app_launch_controller.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/chromeos/idle_detector.cc
diff --git a/chrome/browser/chromeos/idle_detector.cc b/chrome/browser/chromeos/idle_detector.cc
index a4391667ca5e110992b9aeaa03efc5f76e290d07..57584a2b41036c048490f54c4994aea1b22333bf 100644
--- a/chrome/browser/chromeos/idle_detector.cc
+++ b/chrome/browser/chromeos/idle_detector.cc
@@ -35,11 +35,10 @@ void IdleDetector::Start(const base::TimeDelta& timeout) {
}
void IdleDetector::ResetTimer() {
- if (timer_.IsRunning()) {
+ if (timer_.IsRunning())
timer_.Reset();
- } else {
+ else
timer_.Start(FROM_HERE, timeout_, idle_callback_);
- }
}
} // namespace chromeos
« no previous file with comments | « chrome/browser/chromeos/idle_detector.h ('k') | chrome/browser/chromeos/login/app_launch_controller.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698