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

Unified Diff: chrome/browser/background_sync/background_sync_permission_context_factory.cc

Issue 1871343002: Remove PermissionContext factories (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 8 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
Index: chrome/browser/background_sync/background_sync_permission_context_factory.cc
diff --git a/chrome/browser/background_sync/background_sync_permission_context_factory.cc b/chrome/browser/background_sync/background_sync_permission_context_factory.cc
deleted file mode 100644
index 36f00061cf378bdde9ba2f08d0d0fec7c7889c94..0000000000000000000000000000000000000000
--- a/chrome/browser/background_sync/background_sync_permission_context_factory.cc
+++ /dev/null
@@ -1,32 +0,0 @@
-// Copyright 2016 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/background_sync/background_sync_permission_context_factory.h"
-
-#include "chrome/browser/background_sync/background_sync_permission_context.h"
-#include "chrome/browser/profiles/profile.h"
-#include "components/keyed_service/content/browser_context_dependency_manager.h"
-
-// static
-BackgroundSyncPermissionContext*
-BackgroundSyncPermissionContextFactory::GetForProfile(Profile* profile) {
- return static_cast<BackgroundSyncPermissionContext*>(
- GetInstance()->GetServiceForBrowserContext(profile, true /* create */));
-}
-
-// static
-BackgroundSyncPermissionContextFactory*
-BackgroundSyncPermissionContextFactory::GetInstance() {
- return base::Singleton<BackgroundSyncPermissionContextFactory>::get();
-}
-
-BackgroundSyncPermissionContextFactory::BackgroundSyncPermissionContextFactory()
- : PermissionContextFactoryBase(
- "BackgroundSyncPermissionContext",
- BrowserContextDependencyManager::GetInstance()) {}
-
-KeyedService* BackgroundSyncPermissionContextFactory::BuildServiceInstanceFor(
- content::BrowserContext* profile) const {
- return new BackgroundSyncPermissionContext(static_cast<Profile*>(profile));
-}

Powered by Google App Engine
This is Rietveld 408576698