commit | 95b9c6068d4f3ae8c5b4313eaa1eda27f202ad27 | [log] [tgz] |
---|---|---|
author | Peter K. Lee <pkl@chromium.org> | Mon May 20 08:03:15 2019 |
committer | Commit Bot <commit-bot@chromium.org> | Mon May 20 08:03:15 2019 |
tree | a47699787d959fc7c87893b55cd8233c0763b1cb | |
parent | 1659c26567dc81d77199f7476d1388b8944a140a [diff] |
Remove deprecated reference to shareButtonAnchorRect This has been removed from @protocol ActivitySErvicePositioner Change-Id: I3a5a3676dfc8f2d3451f38bb4b3409e1429c8df4 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1616931 Auto-Submit: Peter Lee <pkl@chromium.org> Commit-Queue: Gauthier Ambard <gambard@chromium.org> Reviewed-by: Gauthier Ambard <gambard@chromium.org> Cr-Commit-Position: refs/heads/master@{#661289}
diff --git a/ios/chrome/browser/ui/activity_services/activity_service_controller_unittest.mm b/ios/chrome/browser/ui/activity_services/activity_service_controller_unittest.mm index d6976c7..d3b6b39 100644 --- a/ios/chrome/browser/ui/activity_services/activity_service_controller_unittest.mm +++ b/ios/chrome/browser/ui/activity_services/activity_service_controller_unittest.mm
@@ -165,12 +165,6 @@ _latestErrorAlertMessage = [message copy]; } -- (CGRect)shareButtonAnchorRect { - // On iPad, UIPopovers must be anchored to rectangles that have a non zero - // size. - return CGRectMake(0, 0, 1, 1); -} - - (UIView*)shareButtonView { return self.parentViewController.view; }
diff --git a/ios/chrome/browser/ui/activity_services/requirements/activity_service_positioner.h b/ios/chrome/browser/ui/activity_services/requirements/activity_service_positioner.h index 71e246b..2912e20 100644 --- a/ios/chrome/browser/ui/activity_services/requirements/activity_service_positioner.h +++ b/ios/chrome/browser/ui/activity_services/requirements/activity_service_positioner.h
@@ -11,8 +11,8 @@ // activity services menu on the screen. @protocol ActivityServicePositioner -// Returns the view that defines the coordinate system that is used for the -// CGRect returned by |shareButtonAnchorRect|. +// Returns the view whose bound defines where the ActivityServiceController +// should be presented. - (UIView*)shareButtonView; @end