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

Side by Side Diff: content/browser/power_save_blocker_common.cc

Issue 9117001: For readability. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 11 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "content/browser/power_save_blocker.h" 5 #include "content/browser/power_save_blocker.h"
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "content/public/browser/browser_thread.h" 8 #include "content/public/browser/browser_thread.h"
9 9
10 using content::BrowserThread; 10 using content::BrowserThread;
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
55 55
56 for (PowerSaveBlockerType t = kPowerSaveBlockPreventDisplaySleep; 56 for (PowerSaveBlockerType t = kPowerSaveBlockPreventDisplaySleep;
57 t >= kPowerSaveBlockPreventSystemSleep; 57 t >= kPowerSaveBlockPreventSystemSleep;
58 t = static_cast<PowerSaveBlockerType>(t - 1)) { 58 t = static_cast<PowerSaveBlockerType>(t - 1)) {
59 if (blocker_count_[t]) 59 if (blocker_count_[t])
60 return t; 60 return t;
61 } 61 }
62 62
63 return kPowerSaveBlockPreventNone; 63 return kPowerSaveBlockPreventNone;
64 } 64 }
65
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698