BookmarkManager: Fix 'new folder text field size changes on clicking it' issue.
[chromium-blink-merge.git] / chrome / browser / local_discovery / privet_notifications_factory.cc
blobcb8432e4d4286ecebba6dbe584e3452722b67528
1 // Copyright 2013 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 "chrome/browser/local_discovery/privet_notifications_factory.h"
7 #include "chrome/browser/browser_process.h"
8 #include "chrome/browser/local_discovery/privet_notifications.h"
9 #include "components/keyed_service/content/browser_context_dependency_manager.h"
11 namespace local_discovery {
13 PrivetNotificationServiceFactory*
14 PrivetNotificationServiceFactory::GetInstance() {
15 return base::Singleton<PrivetNotificationServiceFactory>::get();
18 PrivetNotificationServiceFactory::PrivetNotificationServiceFactory()
19 : BrowserContextKeyedServiceFactory(
20 "PrivetNotificationService",
21 BrowserContextDependencyManager::GetInstance()) {
24 PrivetNotificationServiceFactory::~PrivetNotificationServiceFactory() {
27 KeyedService* PrivetNotificationServiceFactory::BuildServiceInstanceFor(
28 content::BrowserContext* profile) const {
29 return new PrivetNotificationService(profile);
32 bool
33 PrivetNotificationServiceFactory::ServiceIsCreatedWithBrowserContext() const {
34 return PrivetNotificationService::IsEnabled();
37 bool PrivetNotificationServiceFactory::ServiceIsNULLWhileTesting() const {
38 return true;
41 } // namespace local_discovery