Description[ios] Remove IDC_CLOSE_TAB
This CL removes the IDC_CLOSE_TAB command ID and replaces all uses of it with
calls to a command dispatcher.
In order to do that, the following infrastructural changes are also made:
- A BrowserCommands protocol is created that will house all of the ChromeCommands
handled by the BVC.
- The BVC's _dispatcher is exposed publicly as an id<BrowserCommands>
- Various other classes that accepted the BVC's dispatcher have BrowsreCommands
added to the protocols that dispatcher conforms to.
- An egtest utility to get the dispatcher for the main BVC is added, and will be used to
replace calls to RunCommandWithActiveViewController().
BUG=738881
TEST=Manually tested closing tabs.
Patch Set 1 #Patch Set 2 : Fix unit test. #Patch Set 3 : Self review. #Patch Set 4 : Add comment for chrome_test_util.h" #Dependent Patchsets: Messages
Total messages: 14 (11 generated)
|