OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 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 | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "chrome/browser/chromeos/extensions/file_manager/volume_manager_factory
.h" | 5 #include "chrome/browser/chromeos/file_manager/volume_manager_factory.h" |
6 | 6 |
7 #include "base/basictypes.h" | 7 #include "base/basictypes.h" |
8 #include "base/memory/singleton.h" | 8 #include "base/memory/singleton.h" |
9 #include "chrome/browser/chromeos/extensions/file_manager/volume_manager.h" | 9 #include "chrome/browser/chromeos/file_manager/volume_manager.h" |
10 #include "chrome/browser/profiles/incognito_helpers.h" | 10 #include "chrome/browser/profiles/incognito_helpers.h" |
11 #include "chrome/browser/profiles/profile.h" | 11 #include "chrome/browser/profiles/profile.h" |
12 #include "chromeos/disks/disk_mount_manager.h" | 12 #include "chromeos/disks/disk_mount_manager.h" |
13 #include "components/browser_context_keyed_service/browser_context_dependency_ma
nager.h" | 13 #include "components/browser_context_keyed_service/browser_context_dependency_ma
nager.h" |
14 | 14 |
15 namespace file_manager { | 15 namespace file_manager { |
16 | 16 |
17 VolumeManager* VolumeManagerFactory::Get(content::BrowserContext* context) { | 17 VolumeManager* VolumeManagerFactory::Get(content::BrowserContext* context) { |
18 return static_cast<VolumeManager*>( | 18 return static_cast<VolumeManager*>( |
19 GetInstance()->GetServiceForBrowserContext(context, true)); | 19 GetInstance()->GetServiceForBrowserContext(context, true)); |
(...skipping 29 matching lines...) Expand all Loading... |
49 VolumeManagerFactory::VolumeManagerFactory() | 49 VolumeManagerFactory::VolumeManagerFactory() |
50 : BrowserContextKeyedServiceFactory( | 50 : BrowserContextKeyedServiceFactory( |
51 "VolumeManagerFactory", | 51 "VolumeManagerFactory", |
52 BrowserContextDependencyManager::GetInstance()) { | 52 BrowserContextDependencyManager::GetInstance()) { |
53 } | 53 } |
54 | 54 |
55 VolumeManagerFactory::~VolumeManagerFactory() { | 55 VolumeManagerFactory::~VolumeManagerFactory() { |
56 } | 56 } |
57 | 57 |
58 } // namespace file_manager | 58 } // namespace file_manager |
OLD | NEW |