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

Unified Diff: chromeos/dbus/power_manager_client.cc

Issue 10024054: chromeos: Convert D-Bus client classes' callback arguments to const reference (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chromeos/dbus/power_manager_client.h ('k') | chromeos/dbus/session_manager_client.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chromeos/dbus/power_manager_client.cc
diff --git a/chromeos/dbus/power_manager_client.cc b/chromeos/dbus/power_manager_client.cc
index 43532aa9b0c6dbc448e1ad82d24afbd6e8ed40a2..010b45c1e9e16ae0b2ba5edaa7794fe539c1df46 100644
--- a/chromeos/dbus/power_manager_client.cc
+++ b/chromeos/dbus/power_manager_client.cc
@@ -224,7 +224,7 @@ class PowerManagerClientImpl : public PowerManagerClient {
uint32 request_id,
uint32 duration,
int overrides,
- PowerStateRequestIdCallback callback) OVERRIDE {
+ const PowerStateRequestIdCallback& callback) OVERRIDE {
dbus::MethodCall method_call(power_manager::kPowerManagerInterface,
power_manager::kStateOverrideRequest);
dbus::MessageWriter writer(&method_call);
@@ -544,7 +544,7 @@ class PowerManagerClientStubImpl : public PowerManagerClient {
uint32 request_id,
uint32 duration,
int overrides,
- PowerStateRequestIdCallback callback) OVERRIDE {}
+ const PowerStateRequestIdCallback& callback) OVERRIDE {}
virtual void NotifyScreenLockRequested() OVERRIDE {
FOR_EACH_OBSERVER(Observer, observers_, LockScreen());
« no previous file with comments | « chromeos/dbus/power_manager_client.h ('k') | chromeos/dbus/session_manager_client.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698