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 "base/command_line.h" | 7 #include "base/command_line.h" |
8 #include "base/sha1.h" | 8 #include "base/sha1.h" |
9 #include "base/strings/string_number_conversions.h" | 9 #include "base/strings/string_number_conversions.h" |
10 #include "chrome/common/channel_info.h" | 10 #include "chrome/common/channel_info.h" |
(...skipping 113 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
124 | 124 |
125 void ChromeExtensionsDispatcherDelegate::PopulateSourceMap( | 125 void ChromeExtensionsDispatcherDelegate::PopulateSourceMap( |
126 extensions::ResourceBundleSourceMap* source_map) { | 126 extensions::ResourceBundleSourceMap* source_map) { |
127 // Custom bindings. | 127 // Custom bindings. |
128 source_map->RegisterSource("app", IDR_APP_CUSTOM_BINDINGS_JS); | 128 source_map->RegisterSource("app", IDR_APP_CUSTOM_BINDINGS_JS); |
129 source_map->RegisterSource("automation", IDR_AUTOMATION_CUSTOM_BINDINGS_JS); | 129 source_map->RegisterSource("automation", IDR_AUTOMATION_CUSTOM_BINDINGS_JS); |
130 source_map->RegisterSource("automationEvent", IDR_AUTOMATION_EVENT_JS); | 130 source_map->RegisterSource("automationEvent", IDR_AUTOMATION_EVENT_JS); |
131 source_map->RegisterSource("automationNode", IDR_AUTOMATION_NODE_JS); | 131 source_map->RegisterSource("automationNode", IDR_AUTOMATION_NODE_JS); |
132 source_map->RegisterSource("browserAction", | 132 source_map->RegisterSource("browserAction", |
133 IDR_BROWSER_ACTION_CUSTOM_BINDINGS_JS); | 133 IDR_BROWSER_ACTION_CUSTOM_BINDINGS_JS); |
| 134 source_map->RegisterSource("certificateProvider", |
| 135 IDR_CERTIFICATE_PROVIDER_CUSTOM_BINDINGS_JS); |
134 source_map->RegisterSource("declarativeContent", | 136 source_map->RegisterSource("declarativeContent", |
135 IDR_DECLARATIVE_CONTENT_CUSTOM_BINDINGS_JS); | 137 IDR_DECLARATIVE_CONTENT_CUSTOM_BINDINGS_JS); |
136 source_map->RegisterSource("desktopCapture", | 138 source_map->RegisterSource("desktopCapture", |
137 IDR_DESKTOP_CAPTURE_CUSTOM_BINDINGS_JS); | 139 IDR_DESKTOP_CAPTURE_CUSTOM_BINDINGS_JS); |
138 source_map->RegisterSource("developerPrivate", | 140 source_map->RegisterSource("developerPrivate", |
139 IDR_DEVELOPER_PRIVATE_CUSTOM_BINDINGS_JS); | 141 IDR_DEVELOPER_PRIVATE_CUSTOM_BINDINGS_JS); |
140 source_map->RegisterSource("downloads", IDR_DOWNLOADS_CUSTOM_BINDINGS_JS); | 142 source_map->RegisterSource("downloads", IDR_DOWNLOADS_CUSTOM_BINDINGS_JS); |
141 source_map->RegisterSource("enterprise.platformKeys", | 143 source_map->RegisterSource("enterprise.platformKeys", |
142 IDR_ENTERPRISE_PLATFORM_KEYS_CUSTOM_BINDINGS_JS); | 144 IDR_ENTERPRISE_PLATFORM_KEYS_CUSTOM_BINDINGS_JS); |
143 source_map->RegisterSource("enterprise.platformKeys.internalAPI", | 145 source_map->RegisterSource("enterprise.platformKeys.internalAPI", |
(...skipping 107 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
251 // In single-process mode, the browser process reports the active extensions. | 253 // In single-process mode, the browser process reports the active extensions. |
252 if (base::CommandLine::ForCurrentProcess()->HasSwitch( | 254 if (base::CommandLine::ForCurrentProcess()->HasSwitch( |
253 ::switches::kSingleProcess)) | 255 ::switches::kSingleProcess)) |
254 return; | 256 return; |
255 crash_keys::SetActiveExtensions(extension_ids); | 257 crash_keys::SetActiveExtensions(extension_ids); |
256 } | 258 } |
257 | 259 |
258 void ChromeExtensionsDispatcherDelegate::SetChannel(int channel) { | 260 void ChromeExtensionsDispatcherDelegate::SetChannel(int channel) { |
259 extensions::SetCurrentChannel(static_cast<version_info::Channel>(channel)); | 261 extensions::SetCurrentChannel(static_cast<version_info::Channel>(channel)); |
260 } | 262 } |
OLD | NEW |