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 "apps/app_load_service_factory.h" | 5 #include "apps/app_load_service_factory.h" |
6 | 6 |
7 #include "apps/app_load_service.h" | 7 #include "apps/app_load_service.h" |
8 #include "apps/shell_window_registry.h" | 8 #include "apps/shell_window_registry.h" |
9 #include "chrome/browser/extensions/extension_prefs_factory.h" | |
10 #include "chrome/browser/extensions/extension_system_factory.h" | 9 #include "chrome/browser/extensions/extension_system_factory.h" |
11 #include "chrome/browser/profiles/profile.h" | 10 #include "chrome/browser/profiles/profile.h" |
12 #include "components/browser_context_keyed_service/browser_context_dependency_ma
nager.h" | 11 #include "components/browser_context_keyed_service/browser_context_dependency_ma
nager.h" |
| 12 #include "extensions/browser/extension_prefs_factory.h" |
13 #include "extensions/browser/extensions_browser_client.h" | 13 #include "extensions/browser/extensions_browser_client.h" |
14 | 14 |
15 namespace apps { | 15 namespace apps { |
16 | 16 |
17 // static | 17 // static |
18 AppLoadService* AppLoadServiceFactory::GetForProfile(Profile* profile) { | 18 AppLoadService* AppLoadServiceFactory::GetForProfile(Profile* profile) { |
19 return static_cast<AppLoadService*>( | 19 return static_cast<AppLoadService*>( |
20 GetInstance()->GetServiceForBrowserContext(profile, true)); | 20 GetInstance()->GetServiceForBrowserContext(profile, true)); |
21 } | 21 } |
22 | 22 |
(...skipping 27 matching lines...) Expand all Loading... |
50 } | 50 } |
51 | 51 |
52 content::BrowserContext* AppLoadServiceFactory::GetBrowserContextToUse( | 52 content::BrowserContext* AppLoadServiceFactory::GetBrowserContextToUse( |
53 content::BrowserContext* context) const { | 53 content::BrowserContext* context) const { |
54 // Redirected in incognito. | 54 // Redirected in incognito. |
55 return extensions::ExtensionsBrowserClient::Get()-> | 55 return extensions::ExtensionsBrowserClient::Get()-> |
56 GetOriginalContext(context); | 56 GetOriginalContext(context); |
57 } | 57 } |
58 | 58 |
59 } // namespace apps | 59 } // namespace apps |
OLD | NEW |