1 // Copyright 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.
5 #include "components/invalidation/profile_invalidation_provider.h"
7 #include "components/invalidation/invalidation_service.h"
9 namespace invalidation
{
11 ProfileInvalidationProvider::ProfileInvalidationProvider(
12 scoped_ptr
<InvalidationService
> invalidation_service
)
13 : invalidation_service_(invalidation_service
.Pass()) {
16 ProfileInvalidationProvider::~ProfileInvalidationProvider() {
19 InvalidationService
* ProfileInvalidationProvider::GetInvalidationService() {
20 return invalidation_service_
.get();
23 void ProfileInvalidationProvider::Shutdown() {
24 invalidation_service_
.reset();
27 } // namespace invalidation