Remove direct use of Toolbar in TabSwitcher

This CL removes the direct use of the Toolbar using the
relinquish/reparent methods. Instead it uses the frame of the toolbar.

Bug: 778226
Cq-Include-Trybots: master.tryserver.chromium.mac:ios-simulator-cronet
Change-Id: I016da12e4550d348c3d39f573629180e0b12d8ce
Reviewed-on: https://chromium-review.googlesource.com/753348
Reviewed-by: Mark Cogan <[email protected]>
Commit-Queue: Gauthier Ambard <[email protected]>
Cr-Commit-Position: refs/heads/master@{#514423}
diff --git a/ios/chrome/browser/ui/browser_view_controller.mm b/ios/chrome/browser/ui/browser_view_controller.mm
index fc3d5b2..4f975bc 100644
--- a/ios/chrome/browser/ui/browser_view_controller.mm
+++ b/ios/chrome/browser/ui/browser_view_controller.mm
@@ -4802,6 +4802,10 @@
   }
 }
 
+- (CGRect)toolbarFrame {
+  return [_toolbarCoordinator view].frame;
+}
+
 - (id<ToolbarSnapshotProviding>)toolbarSnapshotProvider {
   id<ToolbarSnapshotProviding> toolbarSnapshotProvider = nil;
   if ([_toolbarCoordinator view].hidden) {