Skip to content

Commit

Permalink
[ios] Remove BrowserState API of VoiceSearchProvider
Browse files Browse the repository at this point in the history
Remove API now that codebase calls Browser API

Bug: 790886
Change-Id: I8ec3b8cae8621c47e31236d6a5552e35c478556a
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2144463
Reviewed-by: Rohit Rao <rohitrao@chromium.org>
Commit-Queue: Chris Lu <thegreenfrog@chromium.org>
Cr-Commit-Position: refs/heads/master@{#758532}
  • Loading branch information
Chris Lu authored and Commit Bot committed Apr 13, 2020
1 parent de8d191 commit d84b2b1
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 13 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@
@protocol ApplicationCommands;
class AudioSessionController;
class Browser;
class ChromeBrowserState;
class VoiceSearchController;

// VoiceSearchProvider allows embedders to provide functionality related to
Expand All @@ -34,12 +33,7 @@ class VoiceSearchProvider {
// Returns the singleton audio session controller.
virtual AudioSessionController* GetAudioSessionController() const;

// Creates a new VoiceSearchController object. TODO(crbug.com/790886): Remove
// the ChromeBrowserState constructor when the implementation for the Browser
// constructor finishes and all calls use that constructor. This is a part of
// the Brower-scoped migration.
virtual scoped_refptr<VoiceSearchController> CreateVoiceSearchController(
ChromeBrowserState* browser_state) const;
// Creates a new VoiceSearchController object.
virtual scoped_refptr<VoiceSearchController> CreateVoiceSearchController(
Browser* browser) const;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,12 +22,6 @@
return nullptr;
}

scoped_refptr<VoiceSearchController>
VoiceSearchProvider::CreateVoiceSearchController(
ChromeBrowserState* browser_state) const {
return scoped_refptr<VoiceSearchController>(nullptr);
}

scoped_refptr<VoiceSearchController>
VoiceSearchProvider::CreateVoiceSearchController(Browser* browser) const {
return scoped_refptr<VoiceSearchController>(nullptr);
Expand Down

0 comments on commit d84b2b1

Please sign in to comment.