Index: content/browser/power_save_blocker_win.cc |
=================================================================== |
--- content/browser/power_save_blocker_win.cc (revision 164795) |
+++ content/browser/power_save_blocker_win.cc (working copy) |
@@ -12,6 +12,7 @@ |
#include "base/win/windows_version.h" |
#include "content/public/browser/browser_thread.h" |
+namespace content { |
namespace { |
int g_blocker_count[2]; |
@@ -79,7 +80,7 @@ |
DCHECK(success); |
} |
-void ApplySimpleBlock(content::PowerSaveBlocker::PowerSaveBlockerType type, |
+void ApplySimpleBlock(PowerSaveBlocker::PowerSaveBlockerType type, |
int delta) { |
tfarina
2012/10/30 22:19:06
probably fits above now.
|
g_blocker_count[type] += delta; |
DCHECK_GE(g_blocker_count[type], 0); |
@@ -88,7 +89,7 @@ |
return; |
DWORD this_flag = 0; |
- if (type == content::PowerSaveBlocker::kPowerSaveBlockPreventAppSuspension) |
+ if (type == PowerSaveBlocker::kPowerSaveBlockPreventAppSuspension) |
this_flag |= ES_SYSTEM_REQUIRED; |
else |
this_flag |= ES_DISPLAY_REQUIRED; |
@@ -106,8 +107,6 @@ |
} // namespace. |
-namespace content { |
- |
class PowerSaveBlocker::Delegate |
: public base::RefCountedThreadSafe<PowerSaveBlocker::Delegate> { |
public: |