| Index: chrome/browser/local_discovery/privet_http.cc
|
| diff --git a/chrome/browser/local_discovery/privet_http.cc b/chrome/browser/local_discovery/privet_http.cc
|
| index 59d1811176be9c1632a972148a0b15efb114d97d..a2c5cb294bc0dd7a54f6a3e351ce8d432152e46e 100644
|
| --- a/chrome/browser/local_discovery/privet_http.cc
|
| +++ b/chrome/browser/local_discovery/privet_http.cc
|
| @@ -11,8 +11,19 @@ namespace local_discovery {
|
| // static
|
| scoped_ptr<PrivetV1HTTPClient> PrivetV1HTTPClient::CreateDefault(
|
| scoped_ptr<PrivetHTTPClient> info_client) {
|
| + if (!info_client)
|
| + return scoped_ptr<PrivetV1HTTPClient>();
|
| return make_scoped_ptr<PrivetV1HTTPClient>(
|
| new PrivetV1HTTPClientImpl(info_client.Pass())).Pass();
|
| }
|
|
|
| +// static
|
| +scoped_ptr<PrivetV3HTTPClient> PrivetV3HTTPClient::CreateDefault(
|
| + scoped_ptr<PrivetHTTPClient> info_client) {
|
| + if (!info_client)
|
| + return scoped_ptr<PrivetV3HTTPClient>();
|
| + return make_scoped_ptr<PrivetV3HTTPClient>(
|
| + new PrivetV3HTTPClientImpl(info_client.Pass())).Pass();
|
| +}
|
| +
|
| } // namespace local_discovery
|
|
|