Commit 26b32bba authored by Mark Cogan's avatar Mark Cogan Committed by Commit Bot

[iOS] Remove cast service init API from provider.

There is no longer a cast service to initialize, so the cast service
init can be removed from the provider. This also removes use of TabModel
in the provider API.

Change-Id: If618ff507104bfdd41d38b01cd9ec7087a7e66e9
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1960450
Commit-Queue: Mark Cogan <marq@chromium.org>
Commit-Queue: Olivier Robin <olivierrobin@chromium.org>
Auto-Submit: Mark Cogan <marq@chromium.org>
Reviewed-by: default avatarOlivier Robin <olivierrobin@chromium.org>
Cr-Commit-Position: refs/heads/master@{#723388}
parent da7aee42
......@@ -22,7 +22,6 @@
#import "ios/chrome/browser/web_state_list/active_web_state_observation_forwarder.h"
#import "ios/chrome/browser/web_state_list/web_state_list.h"
#import "ios/chrome/browser/web_state_list/web_state_list_observer_bridge.h"
#include "ios/public/provider/chrome/browser/chrome_browser_provider.h"
#import "ios/web/public/web_state.h"
#import "ios/web/public/web_state_observer_bridge.h"
......@@ -187,8 +186,6 @@
// Follow loaded URLs in the main tab model to send those in case of
// crashes.
breakpad::MonitorURLsForWebStateList(self.mainBrowser->GetWebStateList());
ios::GetChromeBrowserProvider()->InitializeCastService(
self.mainBrowser->GetTabModel());
// Create the main coordinator, and thus the main interface.
_mainBrowserCoordinator = [self coordinatorForBrowser:self.mainBrowser];
......
......@@ -38,7 +38,6 @@ class WebState;
class GURL;
@protocol LogoVendor;
@class TabModel;
@class UITextField;
@class UIView;
......@@ -118,10 +117,6 @@ class ChromeBrowserProvider {
virtual bool ShouldBlockUrlDuringRestore(const GURL& url,
web::WebState* web_state);
// Initializes the cast service. Should be called soon after the given
// |main_tab_model| is created.
virtual void InitializeCastService(TabModel* main_tab_model) const;
// Attaches any embedder-specific tab helpers to the given |web_state|.
virtual void AttachTabHelpers(web::WebState* web_state) const;
......
......@@ -82,9 +82,6 @@ UITextField* ChromeBrowserProvider::CreateStyledTextField() const {
return nil;
}
void ChromeBrowserProvider::InitializeCastService(
TabModel* main_tab_model) const {}
void ChromeBrowserProvider::AttachTabHelpers(web::WebState* web_state) const {}
VoiceSearchProvider* ChromeBrowserProvider::GetVoiceSearchProvider() const {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment