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

Side by Side Diff: chrome/browser/permissions/permission_context_factory_base.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 unified diff | Download patch
OLDNEW
(Empty)
1 // Copyright 2015 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.
4
5 #include "chrome/browser/permissions/permission_context_factory_base.h"
6
7 #include "chrome/browser/content_settings/host_content_settings_map_factory.h"
8 #include "chrome/browser/profiles/incognito_helpers.h"
9 #include "components/keyed_service/content/browser_context_dependency_manager.h"
10 #include "content/public/browser/browser_context.h"
11
12 PermissionContextFactoryBase::PermissionContextFactoryBase(
13 const char* name,
14 BrowserContextDependencyManager* manager)
15 : BrowserContextKeyedServiceFactory(name, manager) {
16 DependsOn(HostContentSettingsMapFactory::GetInstance());
17 }
18
19 PermissionContextFactoryBase::~PermissionContextFactoryBase() {
20 }
21
22 content::BrowserContext*
23 PermissionContextFactoryBase::GetBrowserContextToUse(
24 content::BrowserContext* context) const {
25 return chrome::GetBrowserContextOwnInstanceInIncognito(context);
26 }
OLDNEW
« no previous file with comments | « chrome/browser/permissions/permission_context_factory_base.h ('k') | chrome/browser/permissions/permission_manager.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698