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

Side by Side Diff: chrome/browser/chromeos/power/power_state_override.cc

Issue 9865017: Build fix. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 8 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 "chrome/browser/chromeos/power/power_state_override.h" 5 #include "chrome/browser/chromeos/power/power_state_override.h"
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "base/message_loop.h" 8 #include "base/message_loop.h"
9 #include "base/time.h" 9 #include "base/time.h"
10 #include "chrome/browser/chromeos/dbus/dbus_thread_manager.h" 10 #include "chrome/browser/chromeos/dbus/dbus_thread_manager.h"
(...skipping 30 matching lines...) Expand all
41 } 41 }
42 42
43 void PowerStateOverride::CallRequestPowerStateOverrides( 43 void PowerStateOverride::CallRequestPowerStateOverrides(
44 uint32 request_id) { 44 uint32 request_id) {
45 PowerManagerClient* power_manager = 45 PowerManagerClient* power_manager =
46 DBusThreadManager::Get()->GetPowerManagerClient(); 46 DBusThreadManager::Get()->GetPowerManagerClient();
47 if (power_manager) { 47 if (power_manager) {
48 // Request the duration of twice our heartbeat. 48 // Request the duration of twice our heartbeat.
49 power_manager->RequestPowerStateOverrides( 49 power_manager->RequestPowerStateOverrides(
50 request_id, 50 request_id,
51 kHeartbeatTime * 2, 51 kHeartbeatTimeInSecs * 2,
52 PowerManagerClient::DISABLE_IDLE_DIM | 52 PowerManagerClient::DISABLE_IDLE_DIM |
53 PowerManagerClient::DISABLE_IDLE_BLANK | 53 PowerManagerClient::DISABLE_IDLE_BLANK |
54 PowerManagerClient::DISABLE_IDLE_SUSPEND | 54 PowerManagerClient::DISABLE_IDLE_SUSPEND |
55 PowerManagerClient::DISABLE_IDLE_LID_SUSPEND, 55 PowerManagerClient::DISABLE_IDLE_LID_SUSPEND,
56 base::Bind(&PowerStateOverride::Heartbeat, 56 base::Bind(&PowerStateOverride::Heartbeat,
57 weak_ptr_factory_.GetWeakPtr())); 57 weak_ptr_factory_.GetWeakPtr()));
58 } 58 }
59 } 59 }
60 60
61 } // namespace chromeos 61 } // namespace chromeos
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698