OLD | NEW |
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 Loading... |
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 |
OLD | NEW |