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

Side by Side Diff: chrome/renderer/extensions/chrome_extensions_dispatcher_delegate.cc

Issue 2895493004: [Extensions Bindings] Move directory util out of runtime_custom_bindings (Closed)
Patch Set: . Created 3 years, 7 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 "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
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
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 }
OLDNEW
« no previous file with comments | « no previous file | chrome/renderer/resources/extensions/file_entry_binding_util.js » ('j') | extensions/renderer/dispatcher.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698