blob: 38f8875e9a3d620486d965c92490efd005f52f6e [file] [log] [blame]
// Copyright 2014 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.
#include "chrome/browser/printing/cloud_print/privet_http.h"
#include <memory>
#include <utility>
#include "base/memory/ptr_util.h"
#include "chrome/browser/printing/cloud_print/privet_http_impl.h"
namespace cloud_print {
// static
std::unique_ptr<PrivetV1HTTPClient> PrivetV1HTTPClient::CreateDefault(
std::unique_ptr<PrivetHTTPClient> info_client) {
if (!info_client)
return std::unique_ptr<PrivetV1HTTPClient>();
return base::WrapUnique<PrivetV1HTTPClient>(
new PrivetV1HTTPClientImpl(std::move(info_client)));
}
} // namespace cloud_print