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

Unified Diff: chrome/browser/app_controller_mac.mm

Issue 3158026: Add support for receiving text from system services on Mac.... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 10 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
« no previous file with comments | « no previous file | chrome/browser/renderer_host/render_widget_host_view_mac.mm » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/app_controller_mac.mm
===================================================================
--- chrome/browser/app_controller_mac.mm (revision 57022)
+++ chrome/browser/app_controller_mac.mm (working copy)
@@ -882,14 +882,10 @@
}
- (void)registerServicesMenuTypesTo:(NSApplication*)app {
- // Currently we only support one-way service requests and don't
- // support services that have return values such as the PGP
- // encryption service.
- // Also note that RenderWidgetHostViewCocoa implements
- // NSServicesRequests which handles requests from services.
- NSArray* sendTypes = [NSArray arrayWithObjects:NSStringPboardType, nil];
- NSArray* returnTypes = [NSArray array];
- [app registerServicesMenuSendTypes:sendTypes returnTypes:returnTypes];
+ // Note that RenderWidgetHostViewCocoa implements NSServicesRequests which
+ // handles requests from services.
+ NSArray* types = [NSArray arrayWithObjects:NSStringPboardType, nil];
+ [app registerServicesMenuSendTypes:types returnTypes:types];
}
- (Profile*)defaultProfile {
« no previous file with comments | « no previous file | chrome/browser/renderer_host/render_widget_host_view_mac.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698