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

Unified Diff: chrome/browser/geolocation/geolocation_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/geolocation/geolocation_permission_context_factory.cc
diff --git a/chrome/browser/geolocation/geolocation_permission_context_factory.cc b/chrome/browser/geolocation/geolocation_permission_context_factory.cc
deleted file mode 100644
index 2c173d213eb38c8c53cf3ff22e674c6b16685d76..0000000000000000000000000000000000000000
--- a/chrome/browser/geolocation/geolocation_permission_context_factory.cc
+++ /dev/null
@@ -1,60 +0,0 @@
-// Copyright (c) 2012 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/geolocation/geolocation_permission_context_factory.h"
-
-#include "chrome/browser/profiles/incognito_helpers.h"
-#include "chrome/browser/profiles/profile.h"
-#include "chrome/common/features.h"
-#include "chrome/common/pref_names.h"
-#include "components/keyed_service/content/browser_context_dependency_manager.h"
-#include "components/pref_registry/pref_registry_syncable.h"
-#if BUILDFLAG(ANDROID_JAVA_UI)
-#include "chrome/browser/geolocation/geolocation_permission_context_android.h"
-#else
-#include "chrome/browser/geolocation/geolocation_permission_context.h"
-#endif
-
-
-// static
-GeolocationPermissionContext*
-GeolocationPermissionContextFactory::GetForProfile(Profile* profile) {
- return static_cast<GeolocationPermissionContext*>(
- GetInstance()->GetServiceForBrowserContext(profile, true));
-}
-
-// static
-GeolocationPermissionContextFactory*
-GeolocationPermissionContextFactory::GetInstance() {
- return base::Singleton<GeolocationPermissionContextFactory>::get();
-}
-
-#if !BUILDFLAG(ANDROID_JAVA_UI)
-GeolocationPermissionContextFactory::GeolocationPermissionContextFactory()
- : PermissionContextFactoryBase(
- "GeolocationPermissionContext",
- BrowserContextDependencyManager::GetInstance()) {
-}
-#else
-GeolocationPermissionContextFactory::GeolocationPermissionContextFactory()
- : PermissionContextFactoryBase(
- "GeolocationPermissionContextAndroid",
- BrowserContextDependencyManager::GetInstance()) {
-}
-#endif
-
-
-GeolocationPermissionContextFactory::~GeolocationPermissionContextFactory() {
-}
-
-KeyedService*
-GeolocationPermissionContextFactory::BuildServiceInstanceFor(
- content::BrowserContext* profile) const {
-#if !BUILDFLAG(ANDROID_JAVA_UI)
- return new GeolocationPermissionContext(static_cast<Profile*>(profile));
-#else
- return new GeolocationPermissionContextAndroid(
- static_cast<Profile*>(profile));
-#endif
-}

Powered by Google App Engine
This is Rietveld 408576698