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

Unified Diff: chrome/renderer/resources/extensions/media_galleries_custom_bindings.js

Issue 10823193: Move MediaGalleries.getMediaFileSystems back to experimental for M22 (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 4 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 side-by-side diff with in-line comments
Download patch
Index: chrome/renderer/resources/extensions/media_galleries_custom_bindings.js
diff --git a/chrome/renderer/resources/extensions/media_galleries_custom_bindings.js b/chrome/renderer/resources/extensions/media_galleries_custom_bindings.js
deleted file mode 100644
index 5ecd00ba4e644a709b7bbdd5181e8ff46d116687..0000000000000000000000000000000000000000
--- a/chrome/renderer/resources/extensions/media_galleries_custom_bindings.js
+++ /dev/null
@@ -1,31 +0,0 @@
-// Copyright (c) 2012 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-// Custom bindings for the Media Gallery API.
-
-var mediaGalleriesNatives = requireNative('mediaGalleries');
-
-var chromeHidden = requireNative('chrome_hidden').GetChromeHidden();
-
-chromeHidden.registerCustomHook('mediaGalleries',
- function(bindingsAPI, extensionId) {
- var apiFunctions = bindingsAPI.apiFunctions;
-
- // getMediaFileSystems uses a custom callback so that it can instantiate and
- // return an array of file system objects.
- apiFunctions.setCustomCallback('getMediaFileSystems',
- function(name, request, response) {
- var result = null;
- if (response) {
- result = [];
- for (var i = 0; i < response.length; i++) {
- result.push(mediaGalleriesNatives.GetMediaFileSystemObject(
- response[i].fsid, response[i].name));
- }
- }
- if (request.callback)
- request.callback(result);
- request.callback = null;
- });
-});

Powered by Google App Engine
This is Rietveld 408576698