summaryrefslogtreecommitdiffstats
path: root/remoting
diff options
context:
space:
mode:
authorbrettw@chromium.org <brettw@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-03-10 01:01:10 +0000
committerbrettw@chromium.org <brettw@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-03-10 01:01:10 +0000
commit232aabfca535b962d41aae13f08104292b40cbaa (patch)
tree5b0bb37f4262fc797b9b71c3011e4d5142c6ba1a /remoting
parent5d50b28df12016b7582497cd7282454622b52782 (diff)
downloadchromium_src-232aabfca535b962d41aae13f08104292b40cbaa.zip
chromium_src-232aabfca535b962d41aae13f08104292b40cbaa.tar.gz
chromium_src-232aabfca535b962d41aae13f08104292b40cbaa.tar.bz2
Remove NewRequiredCallback.
This is the same as NewCallback, and we want people to normally use the "required" type. So just having them call NewCallback is usually the right thing. This converts the existing callers to just say NewCallback. BUG= TEST= Review URL: http://codereview.chromium.org/9615050 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@125965 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'remoting')
-rw-r--r--remoting/protocol/pepper_transport_socket_adapter.cc5
1 files changed, 2 insertions, 3 deletions
diff --git a/remoting/protocol/pepper_transport_socket_adapter.cc b/remoting/protocol/pepper_transport_socket_adapter.cc
index ca1c470..b006743 100644
--- a/remoting/protocol/pepper_transport_socket_adapter.cc
+++ b/remoting/protocol/pepper_transport_socket_adapter.cc
@@ -1,4 +1,4 @@
-// Copyright (c) 2011 The Chromium Authors. All rights reserved.
+// Copyright (c) 2012 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.
@@ -140,8 +140,7 @@ int PepperTransportSocketAdapter::Connect(
return result;
result = transport_->Connect(
- callback_factory_.NewRequiredCallback(
- &PepperTransportSocketAdapter::OnConnect));
+ callback_factory_.NewCallback(&PepperTransportSocketAdapter::OnConnect));
DCHECK_EQ(result, PP_OK_COMPLETIONPENDING);
return net::ERR_IO_PENDING;