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

Side by Side Diff: apps/saved_devices_service_factory.cc

Issue 606503002: Rewrite apps::SavedDevicesService as extensions::DevicePermissionsManager. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Added comments. Created 6 years, 2 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
« no previous file with comments | « apps/saved_devices_service_factory.h ('k') | apps/saved_devices_service_unittest.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 // Copyright 2014 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 "apps/saved_devices_service_factory.h"
6
7 #include "apps/saved_devices_service.h"
8 #include "chrome/browser/profiles/profile.h"
9 #include "components/keyed_service/content/browser_context_dependency_manager.h"
10
11 namespace apps {
12
13 // static
14 SavedDevicesService* SavedDevicesServiceFactory::GetForProfile(
15 Profile* profile) {
16 return static_cast<SavedDevicesService*>(
17 GetInstance()->GetServiceForBrowserContext(profile, true));
18 }
19
20 // static
21 SavedDevicesServiceFactory* SavedDevicesServiceFactory::GetInstance() {
22 return Singleton<SavedDevicesServiceFactory>::get();
23 }
24
25 SavedDevicesServiceFactory::SavedDevicesServiceFactory()
26 : BrowserContextKeyedServiceFactory(
27 "SavedDevicesService",
28 BrowserContextDependencyManager::GetInstance()) {
29 }
30
31 SavedDevicesServiceFactory::~SavedDevicesServiceFactory() {
32 }
33
34 KeyedService* SavedDevicesServiceFactory::BuildServiceInstanceFor(
35 content::BrowserContext* profile) const {
36 return new SavedDevicesService(static_cast<Profile*>(profile));
37 }
38
39 } // namespace apps
OLDNEW
« no previous file with comments | « apps/saved_devices_service_factory.h ('k') | apps/saved_devices_service_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698