gcm_client_factory.cc 628 B

1234567891011121314151617181920212223
  1. // Copyright (c) 2014 The Chromium Authors. All rights reserved.
  2. // Use of this source code is governed by a BSD-style license that can be
  3. // found in the LICENSE file.
  4. #include "components/gcm_driver/gcm_client_factory.h"
  5. #include "base/memory/ptr_util.h"
  6. #include "components/gcm_driver/gcm_client_impl.h"
  7. namespace gcm {
  8. std::unique_ptr<GCMClient> GCMClientFactory::BuildInstance() {
  9. return std::unique_ptr<GCMClient>(new GCMClientImpl(
  10. base::WrapUnique<GCMInternalsBuilder>(new GCMInternalsBuilder())));
  11. }
  12. GCMClientFactory::GCMClientFactory() {
  13. }
  14. GCMClientFactory::~GCMClientFactory() {
  15. }
  16. } // namespace gcm