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

Unified Diff: components/invalidation/profile_invalidation_provider.cc

Issue 327243003: Introduce ProfileInvalidationProvider wrapper for InvalidationService (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Addressed comments. Created 6 years, 6 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « components/invalidation/profile_invalidation_provider.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/invalidation/profile_invalidation_provider.cc
diff --git a/components/invalidation/profile_invalidation_provider.cc b/components/invalidation/profile_invalidation_provider.cc
new file mode 100644
index 0000000000000000000000000000000000000000..ed7c44bf418927f49feb9da3943aa6175427b48c
--- /dev/null
+++ b/components/invalidation/profile_invalidation_provider.cc
@@ -0,0 +1,27 @@
+// 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 "components/invalidation/profile_invalidation_provider.h"
+
+#include "components/invalidation/invalidation_service.h"
+
+namespace invalidation {
+
+ProfileInvalidationProvider::ProfileInvalidationProvider(
+ scoped_ptr<InvalidationService> invalidation_service)
+ : invalidation_service_(invalidation_service.Pass()) {
+}
+
+ProfileInvalidationProvider::~ProfileInvalidationProvider() {
+}
+
+InvalidationService* ProfileInvalidationProvider::GetInvalidationService() {
+ return invalidation_service_.get();
+}
+
+void ProfileInvalidationProvider::Shutdown() {
+ invalidation_service_.reset();
+}
+
+} // namespace invalidation
« no previous file with comments | « components/invalidation/profile_invalidation_provider.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698