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_factory.h" | 8 #include "apps/shell/browser/shell_extension_system_factory.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 | |
89 bool ShellExtensionsBrowserClient::IsExtensionIncognitoEnabled( | 85 bool ShellExtensionsBrowserClient::IsExtensionIncognitoEnabled( |
90 const std::string& extension_id, | 86 const std::string& extension_id, |
91 content::BrowserContext* context) const { | 87 content::BrowserContext* context) const { |
92 return false; | 88 return false; |
93 } | 89 } |
94 | 90 |
95 bool ShellExtensionsBrowserClient::CanExtensionCrossIncognito( | 91 bool ShellExtensionsBrowserClient::CanExtensionCrossIncognito( |
96 const extensions::Extension* extension, | 92 const extensions::Extension* extension, |
97 content::BrowserContext* context) const { | 93 content::BrowserContext* context) const { |
98 return false; | 94 return false; |
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
147 // app_shell doesn't monitor API function calls or events. | 143 // app_shell doesn't monitor API function calls or events. |
148 return NULL; | 144 return NULL; |
149 } | 145 } |
150 | 146 |
151 ExtensionSystemProvider* | 147 ExtensionSystemProvider* |
152 ShellExtensionsBrowserClient::GetExtensionSystemFactory() { | 148 ShellExtensionsBrowserClient::GetExtensionSystemFactory() { |
153 return ShellExtensionSystemFactory::GetInstance(); | 149 return ShellExtensionSystemFactory::GetInstance(); |
154 } | 150 } |
155 | 151 |
156 } // namespace extensions | 152 } // namespace extensions |
OLD | NEW |