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

Unified Diff: extensions/renderer/blob_native_handler.cc

Issue 1945433002: [Extensions] Update more bindings and allow for multiple feature access (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Antony's Created 4 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 side-by-side diff with in-line comments
Download patch
Index: extensions/renderer/blob_native_handler.cc
diff --git a/extensions/renderer/blob_native_handler.cc b/extensions/renderer/blob_native_handler.cc
index 4161fbc21842b16885dadb2c639d8f64c4d9df41..c9c32dcf04708dfacf26bad02355a6da4245726b 100644
--- a/extensions/renderer/blob_native_handler.cc
+++ b/extensions/renderer/blob_native_handler.cc
@@ -25,8 +25,11 @@ namespace extensions {
BlobNativeHandler::BlobNativeHandler(ScriptContext* context)
: ObjectBackedNativeHandler(context) {
- RouteFunction("GetBlobUuid", base::Bind(&GetBlobUuid));
+ RouteFunction("GetBlobUuid",
+ std::vector<std::string>({"feedbackPrivate", "mediaGalleries"}),
+ base::Bind(&GetBlobUuid));
RouteFunction("TakeBrowserProcessBlob",
+ std::vector<std::string>({"printerProvider", "mediaGalleries"}),
base::Bind(&BlobNativeHandler::TakeBrowserProcessBlob,
base::Unretained(this)));
}
« no previous file with comments | « extensions/renderer/app_window_custom_bindings.cc ('k') | extensions/renderer/context_menus_custom_bindings.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698