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

Unified Diff: chrome/browser/power_save_blocker_win.cc

Issue 7388002: Move dependencies of download\base_file from chrome to content. These are all trivial file moves. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 years, 5 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/power_save_blocker_stub.cc ('k') | chrome/chrome_browser.gypi » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/power_save_blocker_win.cc
===================================================================
--- chrome/browser/power_save_blocker_win.cc (revision 92629)
+++ chrome/browser/power_save_blocker_win.cc (working copy)
@@ -1,21 +0,0 @@
-// Copyright (c) 2009 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.
-
-#include "chrome/browser/power_save_blocker.h"
-
-#include <windows.h>
-
-#include "content/browser/browser_thread.h"
-
-// Runs on UI thread only.
-void PowerSaveBlocker::ApplyBlock(bool blocking) {
- DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI));
-
- DWORD flags = ES_CONTINUOUS;
-
- if (blocking)
- flags |= ES_SYSTEM_REQUIRED;
-
- SetThreadExecutionState(flags);
-}
« no previous file with comments | « chrome/browser/power_save_blocker_stub.cc ('k') | chrome/chrome_browser.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698