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 "chrome/renderer/extensions/chrome_extensions_dispatcher_delegate.h" | 5 #include "chrome/renderer/extensions/chrome_extensions_dispatcher_delegate.h" |
6 | 6 |
7 #include <memory> | 7 #include <memory> |
8 | 8 |
9 #include "base/command_line.h" | 9 #include "base/command_line.h" |
10 #include "base/sha1.h" | 10 #include "base/sha1.h" |
(...skipping 241 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
252 IDR_WEBRTC_DESKTOP_CAPTURE_PRIVATE_CUSTOM_BINDINGS_JS); | 252 IDR_WEBRTC_DESKTOP_CAPTURE_PRIVATE_CUSTOM_BINDINGS_JS); |
253 source_map->RegisterSource("webstore", IDR_WEBSTORE_CUSTOM_BINDINGS_JS); | 253 source_map->RegisterSource("webstore", IDR_WEBSTORE_CUSTOM_BINDINGS_JS); |
254 | 254 |
255 // Custom types sources. | 255 // Custom types sources. |
256 source_map->RegisterSource("ChromeSetting", IDR_CHROME_SETTING_JS); | 256 source_map->RegisterSource("ChromeSetting", IDR_CHROME_SETTING_JS); |
257 source_map->RegisterSource("ContentSetting", IDR_CONTENT_SETTING_JS); | 257 source_map->RegisterSource("ContentSetting", IDR_CONTENT_SETTING_JS); |
258 source_map->RegisterSource("ChromeDirectSetting", | 258 source_map->RegisterSource("ChromeDirectSetting", |
259 IDR_CHROME_DIRECT_SETTING_JS); | 259 IDR_CHROME_DIRECT_SETTING_JS); |
260 | 260 |
261 // Platform app sources that are not API-specific.. | 261 // Platform app sources that are not API-specific.. |
262 source_map->RegisterSource("fileEntryBindingUtil", | |
263 IDR_FILE_ENTRY_BINDING_UTIL_JS); | |
264 source_map->RegisterSource("chromeWebViewInternal", | 262 source_map->RegisterSource("chromeWebViewInternal", |
265 IDR_CHROME_WEB_VIEW_INTERNAL_CUSTOM_BINDINGS_JS); | 263 IDR_CHROME_WEB_VIEW_INTERNAL_CUSTOM_BINDINGS_JS); |
266 source_map->RegisterSource("chromeWebView", IDR_CHROME_WEB_VIEW_JS); | 264 source_map->RegisterSource("chromeWebView", IDR_CHROME_WEB_VIEW_JS); |
267 | 265 |
268 // Media router. | 266 // Media router. |
269 source_map->RegisterSource( | 267 source_map->RegisterSource( |
270 "chrome/common/media_router/mojo/media_controller.mojom", | 268 "chrome/common/media_router/mojo/media_controller.mojom", |
271 IDR_MEDIA_CONTROLLER_MOJOM_JS); | 269 IDR_MEDIA_CONTROLLER_MOJOM_JS); |
272 source_map->RegisterSource( | 270 source_map->RegisterSource( |
273 "chrome/common/media_router/mojo/media_router.mojom", | 271 "chrome/common/media_router/mojo/media_router.mojom", |
(...skipping 23 matching lines...) Expand all Loading... |
297 } | 295 } |
298 | 296 |
299 void ChromeExtensionsDispatcherDelegate::OnActiveExtensionsUpdated( | 297 void ChromeExtensionsDispatcherDelegate::OnActiveExtensionsUpdated( |
300 const std::set<std::string>& extension_ids) { | 298 const std::set<std::string>& extension_ids) { |
301 // In single-process mode, the browser process reports the active extensions. | 299 // In single-process mode, the browser process reports the active extensions. |
302 if (base::CommandLine::ForCurrentProcess()->HasSwitch( | 300 if (base::CommandLine::ForCurrentProcess()->HasSwitch( |
303 ::switches::kSingleProcess)) | 301 ::switches::kSingleProcess)) |
304 return; | 302 return; |
305 crash_keys::SetActiveExtensions(extension_ids); | 303 crash_keys::SetActiveExtensions(extension_ids); |
306 } | 304 } |
OLD | NEW |