OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 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 | 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 "extensions/shell/browser/shell_extensions_browser_client.h" | 5 #include "extensions/shell/browser/shell_extensions_browser_client.h" |
6 | 6 |
7 #include <utility> | 7 #include <utility> |
8 | 8 |
9 #include "base/memory/ptr_util.h" | 9 #include "base/memory/ptr_util.h" |
10 #include "build/build_config.h" | 10 #include "build/build_config.h" |
(...skipping 149 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
160 } | 160 } |
161 | 161 |
162 bool ShellExtensionsBrowserClient::IsRunningInForcedAppMode() { | 162 bool ShellExtensionsBrowserClient::IsRunningInForcedAppMode() { |
163 return false; | 163 return false; |
164 } | 164 } |
165 | 165 |
166 bool ShellExtensionsBrowserClient::IsLoggedInAsPublicAccount() { | 166 bool ShellExtensionsBrowserClient::IsLoggedInAsPublicAccount() { |
167 return false; | 167 return false; |
168 } | 168 } |
169 | 169 |
170 ApiActivityMonitor* ShellExtensionsBrowserClient::GetApiActivityMonitor( | |
171 BrowserContext* context) { | |
172 // app_shell doesn't monitor API function calls or events. | |
173 return NULL; | |
174 } | |
175 | |
176 ExtensionSystemProvider* | 170 ExtensionSystemProvider* |
177 ShellExtensionsBrowserClient::GetExtensionSystemFactory() { | 171 ShellExtensionsBrowserClient::GetExtensionSystemFactory() { |
178 return ShellExtensionSystemFactory::GetInstance(); | 172 return ShellExtensionSystemFactory::GetInstance(); |
179 } | 173 } |
180 | 174 |
181 void ShellExtensionsBrowserClient::RegisterExtensionFunctions( | 175 void ShellExtensionsBrowserClient::RegisterExtensionFunctions( |
182 ExtensionFunctionRegistry* registry) const { | 176 ExtensionFunctionRegistry* registry) const { |
183 // Register core extension-system APIs. | 177 // Register core extension-system APIs. |
184 api::GeneratedFunctionRegistry::RegisterAll(registry); | 178 api::GeneratedFunctionRegistry::RegisterAll(registry); |
185 | 179 |
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
244 api_client_.reset(api_client); | 238 api_client_.reset(api_client); |
245 } | 239 } |
246 | 240 |
247 ExtensionWebContentsObserver* | 241 ExtensionWebContentsObserver* |
248 ShellExtensionsBrowserClient::GetExtensionWebContentsObserver( | 242 ShellExtensionsBrowserClient::GetExtensionWebContentsObserver( |
249 content::WebContents* web_contents) { | 243 content::WebContents* web_contents) { |
250 return ShellExtensionWebContentsObserver::FromWebContents(web_contents); | 244 return ShellExtensionWebContentsObserver::FromWebContents(web_contents); |
251 } | 245 } |
252 | 246 |
253 } // namespace extensions | 247 } // namespace extensions |
OLD | NEW |