Index: net/websockets/websocket_channel_test.cc |
diff --git a/net/websockets/websocket_channel_test.cc b/net/websockets/websocket_channel_test.cc |
index 6535741c2f63303540081272001249057749b486..c7bfeb0b65b08bd03a5a96bb5a19a6c7bb208e2a 100644 |
--- a/net/websockets/websocket_channel_test.cc |
+++ b/net/websockets/websocket_channel_test.cc |
@@ -780,10 +780,7 @@ class WebSocketChannelTest : public ::testing::Test { |
// will have unpleasant compile errors. |
template <class T> |
void set_stream(scoped_ptr<T> stream) { |
- // Since the definition of "PassAs" depends on the type T, the C++ standard |
- // requires the "template" keyword to indicate that "PassAs" should be |
- // parsed as a template method. |
- stream_ = stream.template PassAs<WebSocketStream>(); |
+ stream_ = stream.Pass(); |
} |
// A struct containing the data that will be used to connect the channel. |