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

Side by Side Diff: chrome/browser/local_discovery/privet_http_asynchronous_factory.cc

Issue 959503003: Remove ServiceDiscoveryClient* from PrivetHTTPAsynchronousFactoryImpl interface (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@fixEstablish
Patch Set: Tue Feb 24 23:11:53 PST 2015 Created 5 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
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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/local_discovery/privet_http_asynchronous_factory.h" 5 #include "chrome/browser/local_discovery/privet_http_asynchronous_factory.h"
6 6
7 #if defined(OS_MACOSX) 7 #if defined(OS_MACOSX)
8 #include "chrome/browser/local_discovery/privet_http_asynchronous_factory_mac.h" 8 #include "chrome/browser/local_discovery/privet_http_asynchronous_factory_mac.h"
9 #else 9 #else
10 #include "chrome/browser/local_discovery/privet_http_asynchronous_factory_impl.h " 10 #include "chrome/browser/local_discovery/privet_http_asynchronous_factory_impl.h "
11 #endif 11 #endif
12 12
13 namespace local_discovery { 13 namespace local_discovery {
14 14
15 // static 15 // static
16 scoped_ptr<PrivetHTTPAsynchronousFactory> 16 scoped_ptr<PrivetHTTPAsynchronousFactory>
17 PrivetHTTPAsynchronousFactory::CreateInstance( 17 PrivetHTTPAsynchronousFactory::CreateInstance(
18 ServiceDiscoveryClient* service_discovery_client,
19 net::URLRequestContextGetter* request_context) { 18 net::URLRequestContextGetter* request_context) {
20 #if defined(OS_MACOSX) 19 #if defined(OS_MACOSX)
21 return make_scoped_ptr<PrivetHTTPAsynchronousFactory>( 20 return make_scoped_ptr<PrivetHTTPAsynchronousFactory>(
22 new PrivetHTTPAsynchronousFactoryMac(request_context)); 21 new PrivetHTTPAsynchronousFactoryMac(request_context));
23 22
24 #else 23 #else
25 return make_scoped_ptr<PrivetHTTPAsynchronousFactory>( 24 return make_scoped_ptr<PrivetHTTPAsynchronousFactory>(
26 new PrivetHTTPAsynchronousFactoryImpl(service_discovery_client, 25 new PrivetHTTPAsynchronousFactoryImpl(request_context));
27 request_context));
28 #endif 26 #endif
29 } 27 }
30 28
31 } // namespace local_discovery 29 } // namespace local_discovery
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698