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