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

Side by Side Diff: chrome/test/chromedriver/net/sync_websocket_factory.cc

Issue 15836003: Update chrome/ to use scoped_refptr<T>::get() rather than implicit "operator T*" (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebased Created 7 years, 6 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
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/test/chromedriver/net/sync_websocket_factory.h" 5 #include "chrome/test/chromedriver/net/sync_websocket_factory.h"
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "base/memory/ref_counted.h" 8 #include "base/memory/ref_counted.h"
9 #include "chrome/test/chromedriver/net/sync_websocket_impl.h" 9 #include "chrome/test/chromedriver/net/sync_websocket_impl.h"
10 #include "chrome/test/chromedriver/net/url_request_context_getter.h" 10 #include "chrome/test/chromedriver/net/url_request_context_getter.h"
11 11
12 namespace { 12 namespace {
13 13
14 scoped_ptr<SyncWebSocket> CreateSyncWebSocket( 14 scoped_ptr<SyncWebSocket> CreateSyncWebSocket(
15 scoped_refptr<URLRequestContextGetter> context_getter) { 15 scoped_refptr<URLRequestContextGetter> context_getter) {
16 return scoped_ptr<SyncWebSocket>(new SyncWebSocketImpl(context_getter)); 16 return scoped_ptr<SyncWebSocket>(new SyncWebSocketImpl(context_getter.get()));
17 } 17 }
18 18
19 } // namespace 19 } // namespace
20 20
21 SyncWebSocketFactory CreateSyncWebSocketFactory( 21 SyncWebSocketFactory CreateSyncWebSocketFactory(
22 URLRequestContextGetter* getter) { 22 URLRequestContextGetter* getter) {
23 return base::Bind(&CreateSyncWebSocket, make_scoped_refptr(getter)); 23 return base::Bind(&CreateSyncWebSocket, make_scoped_refptr(getter));
24 } 24 }
OLDNEW
« no previous file with comments | « chrome/test/chromedriver/net/net_util_unittest.cc ('k') | chrome/test/chromedriver/net/sync_websocket_impl_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698