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

Side by Side Diff: chrome/browser/chromeos/dbus/liveness_service_provider.cc

Issue 12092061: Code cleaning: Uses scoped_ptr<> to express ownership rather than writing ownership in comments. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Added chrome/browser/password_manager/native_backend_kwallet_x_unitte\ Created 7 years, 10 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 | chrome/browser/chromeos/dbus/proxy_resolution_service_provider.cc » ('j') | 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/dbus/liveness_service_provider.h" 5 #include "chrome/browser/chromeos/dbus/liveness_service_provider.h"
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "content/public/browser/browser_thread.h" 8 #include "content/public/browser/browser_thread.h"
9 #include "dbus/bus.h" 9 #include "dbus/bus.h"
10 #include "dbus/message.h" 10 #include "dbus/message.h"
(...skipping 29 matching lines...) Expand all
40 if (!success) { 40 if (!success) {
41 LOG(ERROR) << "Failed to export " << interface_name << "." 41 LOG(ERROR) << "Failed to export " << interface_name << "."
42 << method_name; 42 << method_name;
43 } 43 }
44 } 44 }
45 45
46 void LivenessServiceProvider::CheckLiveness( 46 void LivenessServiceProvider::CheckLiveness(
47 dbus::MethodCall* method_call, 47 dbus::MethodCall* method_call,
48 dbus::ExportedObject::ResponseSender response_sender) { 48 dbus::ExportedObject::ResponseSender response_sender) {
49 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI)); 49 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI));
50 dbus::Response* response = dbus::Response::FromMethodCall(method_call); 50 response_sender.Run(dbus::Response::FromMethodCall(method_call));
51 response_sender.Run(response);
52 } 51 }
53 52
54 } // namespace chromeos 53 } // namespace chromeos
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/chromeos/dbus/proxy_resolution_service_provider.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698