Changeset 175418 in webkit


Ignore:
Timestamp:
Oct 31, 2014, 1:21:26 PM (11 years ago)
Author:
timothy_horton@apple.com
Message:

Remove "Add to iPhoto" from the action menu's sharing menu
https://bugs.webkit.org/show_bug.cgi?id=138251
<rdar://problem/18837197>

Reviewed by Anders Carlsson.

  • UIProcess/mac/WKActionMenuController.mm:

(-[WKActionMenuController sharingServicePicker:sharingServicesForItems:mask:proposedSharingServices:]):
Retain/autorelease the new array.

Location:
trunk/Source/WebKit2
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebKit2/ChangeLog

    r175417 r175418  
     12014-10-31  Timothy Horton  <timothy_horton@apple.com>
     2
     3        Remove "Add to iPhoto" from the action menu's sharing menu
     4        https://bugs.webkit.org/show_bug.cgi?id=138251
     5        <rdar://problem/18837197>
     6
     7        Reviewed by Anders Carlsson.
     8
     9        * UIProcess/mac/WKActionMenuController.mm:
     10        (-[WKActionMenuController sharingServicePicker:sharingServicesForItems:mask:proposedSharingServices:]):
     11        Retain/autorelease the new array.
     12
    1132014-10-31  Tim Horton  <timothy_horton@apple.com>
    214
  • trunk/Source/WebKit2/UIProcess/mac/WKActionMenuController.mm

    r175417 r175418  
    349349- (NSArray *)sharingServicePicker:(NSSharingServicePicker *)sharingServicePicker sharingServicesForItems:(NSArray *)items mask:(NSSharingServiceMask)mask proposedSharingServices:(NSArray *)proposedServices
    350350{
    351     NSMutableArray *services = [[NSMutableArray alloc] initWithCapacity:proposedServices.count];
     351    RetainPtr<NSMutableArray> services = adoptNS([[NSMutableArray alloc] initWithCapacity:proposedServices.count]);
    352352
    353353    for (NSSharingService *service in proposedServices) {
     
    357357    }
    358358
    359     return services;
     359    return services.autorelease();
    360360}
    361361
Note: See TracChangeset for help on using the changeset viewer.