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 189 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
200 "cast.streaming.receiverSession", | 200 "cast.streaming.receiverSession", |
201 IDR_CAST_STREAMING_RECEIVER_SESSION_CUSTOM_BINDINGS_JS); | 201 IDR_CAST_STREAMING_RECEIVER_SESSION_CUSTOM_BINDINGS_JS); |
202 #endif | 202 #endif |
203 source_map->RegisterSource("webstore", IDR_WEBSTORE_CUSTOM_BINDINGS_JS); | 203 source_map->RegisterSource("webstore", IDR_WEBSTORE_CUSTOM_BINDINGS_JS); |
204 | 204 |
205 // Custom types sources. | 205 // Custom types sources. |
206 source_map->RegisterSource("ChromeSetting", IDR_CHROME_SETTING_JS); | 206 source_map->RegisterSource("ChromeSetting", IDR_CHROME_SETTING_JS); |
207 source_map->RegisterSource("ContentSetting", IDR_CONTENT_SETTING_JS); | 207 source_map->RegisterSource("ContentSetting", IDR_CONTENT_SETTING_JS); |
208 source_map->RegisterSource("ChromeDirectSetting", | 208 source_map->RegisterSource("ChromeDirectSetting", |
209 IDR_CHROME_DIRECT_SETTING_JS); | 209 IDR_CHROME_DIRECT_SETTING_JS); |
| 210 source_map->RegisterSource("DataReductionProxy", |
| 211 IDR_DATA_REDUCTION_PROXY_JS); |
210 | 212 |
211 // Platform app sources that are not API-specific.. | 213 // Platform app sources that are not API-specific.. |
212 source_map->RegisterSource("fileEntryBindingUtil", | 214 source_map->RegisterSource("fileEntryBindingUtil", |
213 IDR_FILE_ENTRY_BINDING_UTIL_JS); | 215 IDR_FILE_ENTRY_BINDING_UTIL_JS); |
214 source_map->RegisterSource("tagWatcher", IDR_TAG_WATCHER_JS); | 216 source_map->RegisterSource("tagWatcher", IDR_TAG_WATCHER_JS); |
215 source_map->RegisterSource("chromeWebViewInternal", | 217 source_map->RegisterSource("chromeWebViewInternal", |
216 IDR_CHROME_WEB_VIEW_INTERNAL_CUSTOM_BINDINGS_JS); | 218 IDR_CHROME_WEB_VIEW_INTERNAL_CUSTOM_BINDINGS_JS); |
217 source_map->RegisterSource("chromeWebView", IDR_CHROME_WEB_VIEW_JS); | 219 source_map->RegisterSource("chromeWebView", IDR_CHROME_WEB_VIEW_JS); |
218 source_map->RegisterSource("injectAppTitlebar", IDR_INJECT_APP_TITLEBAR_JS); | 220 source_map->RegisterSource("injectAppTitlebar", IDR_INJECT_APP_TITLEBAR_JS); |
219 } | 221 } |
(...skipping 28 matching lines...) Expand all Loading... |
248 if (base::CommandLine::ForCurrentProcess()->HasSwitch( | 250 if (base::CommandLine::ForCurrentProcess()->HasSwitch( |
249 ::switches::kSingleProcess)) | 251 ::switches::kSingleProcess)) |
250 return; | 252 return; |
251 crash_keys::SetActiveExtensions(extension_ids); | 253 crash_keys::SetActiveExtensions(extension_ids); |
252 } | 254 } |
253 | 255 |
254 void ChromeExtensionsDispatcherDelegate::SetChannel(int channel) { | 256 void ChromeExtensionsDispatcherDelegate::SetChannel(int channel) { |
255 extensions::SetCurrentChannel( | 257 extensions::SetCurrentChannel( |
256 static_cast<chrome::VersionInfo::Channel>(channel)); | 258 static_cast<chrome::VersionInfo::Channel>(channel)); |
257 } | 259 } |
OLD | NEW |