Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(320)

Side by Side Diff: extensions/shell/browser/shell_extensions_browser_client.cc

Issue 2370373002: Move chrome.bluetoothLowEnergy out of //chrome. (Closed)
Patch Set: build fix Created 4 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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"
11 #include "content/public/browser/browser_context.h" 11 #include "content/public/browser/browser_context.h"
12 #include "content/public/browser/browser_thread.h" 12 #include "content/public/browser/browser_thread.h"
13 #include "content/public/browser/render_frame_host.h" 13 #include "content/public/browser/render_frame_host.h"
14 #include "extensions/browser/api/extensions_api_client.h" 14 #include "extensions/browser/api/extensions_api_client.h"
15 #include "extensions/browser/api/generated_api_registration.h" 15 #include "extensions/browser/api/generated_api_registration.h"
16 #include "extensions/browser/event_router.h" 16 #include "extensions/browser/event_router.h"
17 #include "extensions/browser/extension_function_registry.h" 17 #include "extensions/browser/extension_function_registry.h"
18 #include "extensions/browser/mojo/service_registration.h" 18 #include "extensions/browser/mojo/service_registration.h"
19 #include "extensions/browser/null_app_sorting.h" 19 #include "extensions/browser/null_app_sorting.h"
20 #include "extensions/browser/updater/null_extension_cache.h" 20 #include "extensions/browser/updater/null_extension_cache.h"
21 #include "extensions/browser/url_request_util.h" 21 #include "extensions/browser/url_request_util.h"
22 #include "extensions/shell/browser/api/generated_api_registration.h" 22 #include "extensions/shell/browser/api/generated_api_registration.h"
23 #include "extensions/shell/browser/delegates/shell_kiosk_delegate.h"
23 #include "extensions/shell/browser/shell_extension_host_delegate.h" 24 #include "extensions/shell/browser/shell_extension_host_delegate.h"
24 #include "extensions/shell/browser/shell_extension_system_factory.h" 25 #include "extensions/shell/browser/shell_extension_system_factory.h"
25 #include "extensions/shell/browser/shell_extension_web_contents_observer.h" 26 #include "extensions/shell/browser/shell_extension_web_contents_observer.h"
26 #include "extensions/shell/browser/shell_extensions_api_client.h" 27 #include "extensions/shell/browser/shell_extensions_api_client.h"
27 #include "extensions/shell/browser/shell_runtime_api_delegate.h" 28 #include "extensions/shell/browser/shell_runtime_api_delegate.h"
28 29
29 #if defined(OS_CHROMEOS) 30 #if defined(OS_CHROMEOS)
30 #include "chromeos/login/login_state.h" 31 #include "chromeos/login/login_state.h"
31 #endif 32 #endif
32 33
(...skipping 204 matching lines...) Expand 10 before | Expand all | Expand 10 after
237 ExtensionsAPIClient* api_client) { 238 ExtensionsAPIClient* api_client) {
238 api_client_.reset(api_client); 239 api_client_.reset(api_client);
239 } 240 }
240 241
241 ExtensionWebContentsObserver* 242 ExtensionWebContentsObserver*
242 ShellExtensionsBrowserClient::GetExtensionWebContentsObserver( 243 ShellExtensionsBrowserClient::GetExtensionWebContentsObserver(
243 content::WebContents* web_contents) { 244 content::WebContents* web_contents) {
244 return ShellExtensionWebContentsObserver::FromWebContents(web_contents); 245 return ShellExtensionWebContentsObserver::FromWebContents(web_contents);
245 } 246 }
246 247
248 KioskDelegate* ShellExtensionsBrowserClient::GetKioskDelegate() {
249 if (!kiosk_delegate_)
250 kiosk_delegate_.reset(new ShellKioskDelegate());
251 return kiosk_delegate_.get();
252 }
253
247 } // namespace extensions 254 } // namespace extensions
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698