From 9b25d4557040da82c582d7dca22bc7a334a97f48 Mon Sep 17 00:00:00 2001 From: "yuki@chromium.org" Date: Thu, 7 Feb 2013 09:46:24 +0000 Subject: Code cleaning: Uses scoped_ptr<> to express ownership rather than writing ownership in comments. Replaces Response* with scoped_ptr in dbus code and its related code. BUG=163231 TEST=no regression / no behavior changes Review URL: https://chromiumcodereview.appspot.com/12092061 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@181266 0039d316-1c4b-4281-b951-d872f2087c98 --- dbus/object_proxy.h | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'dbus/object_proxy.h') diff --git a/dbus/object_proxy.h b/dbus/object_proxy.h index 801c577..61576e6 100644 --- a/dbus/object_proxy.h +++ b/dbus/object_proxy.h @@ -81,11 +81,10 @@ class CHROME_DBUS_EXPORT ObjectProxy // Calls the method of the remote object and blocks until the response // is returned. Returns NULL on error. - // The caller is responsible to delete the returned object. // // BLOCKING CALL. - virtual Response* CallMethodAndBlock(MethodCall* method_call, - int timeout_ms); + virtual scoped_ptr CallMethodAndBlock(MethodCall* method_call, + int timeout_ms); // Requests to call the method of the remote object. // -- cgit v1.1