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/chrome_switches.h" | 10 #include "chrome/common/chrome_switches.h" |
(...skipping 171 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
182 source_map->RegisterSource("input.ime", IDR_INPUT_IME_CUSTOM_BINDINGS_JS); | 182 source_map->RegisterSource("input.ime", IDR_INPUT_IME_CUSTOM_BINDINGS_JS); |
183 source_map->RegisterSource("logPrivate", IDR_LOG_PRIVATE_CUSTOM_BINDINGS_JS); | 183 source_map->RegisterSource("logPrivate", IDR_LOG_PRIVATE_CUSTOM_BINDINGS_JS); |
184 source_map->RegisterSource("mediaGalleries", | 184 source_map->RegisterSource("mediaGalleries", |
185 IDR_MEDIA_GALLERIES_CUSTOM_BINDINGS_JS); | 185 IDR_MEDIA_GALLERIES_CUSTOM_BINDINGS_JS); |
186 source_map->RegisterSource("notifications", | 186 source_map->RegisterSource("notifications", |
187 IDR_NOTIFICATIONS_CUSTOM_BINDINGS_JS); | 187 IDR_NOTIFICATIONS_CUSTOM_BINDINGS_JS); |
188 source_map->RegisterSource("omnibox", IDR_OMNIBOX_CUSTOM_BINDINGS_JS); | 188 source_map->RegisterSource("omnibox", IDR_OMNIBOX_CUSTOM_BINDINGS_JS); |
189 source_map->RegisterSource("pageAction", IDR_PAGE_ACTION_CUSTOM_BINDINGS_JS); | 189 source_map->RegisterSource("pageAction", IDR_PAGE_ACTION_CUSTOM_BINDINGS_JS); |
190 source_map->RegisterSource("pageCapture", | 190 source_map->RegisterSource("pageCapture", |
191 IDR_PAGE_CAPTURE_CUSTOM_BINDINGS_JS); | 191 IDR_PAGE_CAPTURE_CUSTOM_BINDINGS_JS); |
| 192 source_map->RegisterSource("platformKeys", |
| 193 IDR_PLATFORM_KEYS_CUSTOM_BINDINGS_JS); |
192 source_map->RegisterSource("platformKeys.internalAPI", | 194 source_map->RegisterSource("platformKeys.internalAPI", |
193 IDR_PLATFORM_KEYS_INTERNAL_API_JS); | 195 IDR_PLATFORM_KEYS_INTERNAL_API_JS); |
194 source_map->RegisterSource("platformKeys.Key", IDR_PLATFORM_KEYS_KEY_JS); | 196 source_map->RegisterSource("platformKeys.Key", IDR_PLATFORM_KEYS_KEY_JS); |
195 source_map->RegisterSource("platformKeys.SubtleCrypto", | 197 source_map->RegisterSource("platformKeys.SubtleCrypto", |
196 IDR_PLATFORM_KEYS_SUBTLE_CRYPTO_JS); | 198 IDR_PLATFORM_KEYS_SUBTLE_CRYPTO_JS); |
197 source_map->RegisterSource("platformKeys.utils", IDR_PLATFORM_KEYS_UTILS_JS); | 199 source_map->RegisterSource("platformKeys.utils", IDR_PLATFORM_KEYS_UTILS_JS); |
198 source_map->RegisterSource("syncFileSystem", | 200 source_map->RegisterSource("syncFileSystem", |
199 IDR_SYNC_FILE_SYSTEM_CUSTOM_BINDINGS_JS); | 201 IDR_SYNC_FILE_SYSTEM_CUSTOM_BINDINGS_JS); |
200 source_map->RegisterSource("systemIndicator", | 202 source_map->RegisterSource("systemIndicator", |
201 IDR_SYSTEM_INDICATOR_CUSTOM_BINDINGS_JS); | 203 IDR_SYSTEM_INDICATOR_CUSTOM_BINDINGS_JS); |
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
273 if (base::CommandLine::ForCurrentProcess()->HasSwitch( | 275 if (base::CommandLine::ForCurrentProcess()->HasSwitch( |
274 ::switches::kSingleProcess)) | 276 ::switches::kSingleProcess)) |
275 return; | 277 return; |
276 crash_keys::SetActiveExtensions(extension_ids); | 278 crash_keys::SetActiveExtensions(extension_ids); |
277 } | 279 } |
278 | 280 |
279 void ChromeExtensionsDispatcherDelegate::SetChannel(int channel) { | 281 void ChromeExtensionsDispatcherDelegate::SetChannel(int channel) { |
280 extensions::SetCurrentChannel( | 282 extensions::SetCurrentChannel( |
281 static_cast<chrome::VersionInfo::Channel>(channel)); | 283 static_cast<chrome::VersionInfo::Channel>(channel)); |
282 } | 284 } |
OLD | NEW |