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/shell/browser/shell_extensions_browser_client.h" | 5 #include "apps/shell/browser/shell_extensions_browser_client.h" |
6 | 6 |
7 #include "apps/shell/browser/shell_app_sorting.h" | 7 #include "apps/shell/browser/shell_app_sorting.h" |
8 #include "apps/shell/browser/shell_extension_system.h" | 8 #include "apps/shell/browser/shell_extension_system.h" |
9 #include "base/prefs/pref_service.h" | 9 #include "base/prefs/pref_service.h" |
10 #include "base/prefs/pref_service_factory.h" | 10 #include "base/prefs/pref_service_factory.h" |
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
75 BrowserContext* context) { | 75 BrowserContext* context) { |
76 // app_shell only supports a single context. | 76 // app_shell only supports a single context. |
77 return NULL; | 77 return NULL; |
78 } | 78 } |
79 | 79 |
80 BrowserContext* ShellExtensionsBrowserClient::GetOriginalContext( | 80 BrowserContext* ShellExtensionsBrowserClient::GetOriginalContext( |
81 BrowserContext* context) { | 81 BrowserContext* context) { |
82 return context; | 82 return context; |
83 } | 83 } |
84 | 84 |
| 85 bool ShellExtensionsBrowserClient::IsGuestSession(BrowserContext* context) { |
| 86 return false; |
| 87 } |
| 88 |
85 bool ShellExtensionsBrowserClient::IsExtensionIncognitoEnabled( | 89 bool ShellExtensionsBrowserClient::IsExtensionIncognitoEnabled( |
86 const std::string& extension_id, | 90 const std::string& extension_id, |
87 content::BrowserContext* context) const { | 91 content::BrowserContext* context) const { |
88 NOTREACHED(); | 92 NOTREACHED(); |
89 return false; | 93 return false; |
90 } | 94 } |
91 | 95 |
92 bool ShellExtensionsBrowserClient::CanExtensionCrossIncognito( | 96 bool ShellExtensionsBrowserClient::CanExtensionCrossIncognito( |
93 const extensions::Extension* extension, | 97 const extensions::Extension* extension, |
94 content::BrowserContext* context) const { | 98 content::BrowserContext* context) const { |
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
150 ShellExtensionsBrowserClient::GetExtensionSystemDependencies() { | 154 ShellExtensionsBrowserClient::GetExtensionSystemDependencies() { |
151 return ShellExtensionSystem::GetDependencies(); | 155 return ShellExtensionSystem::GetDependencies(); |
152 } | 156 } |
153 | 157 |
154 ExtensionSystem* ShellExtensionsBrowserClient::CreateExtensionSystem( | 158 ExtensionSystem* ShellExtensionsBrowserClient::CreateExtensionSystem( |
155 BrowserContext* context) { | 159 BrowserContext* context) { |
156 return new ShellExtensionSystem(context); | 160 return new ShellExtensionSystem(context); |
157 } | 161 } |
158 | 162 |
159 } // namespace extensions | 163 } // namespace extensions |
OLD | NEW |