Chromium Code Reviews| Index: chrome/browser/ui/browser_command_controller_unittest.cc |
| diff --git a/chrome/browser/ui/browser_command_controller_unittest.cc b/chrome/browser/ui/browser_command_controller_unittest.cc |
| index 22a62f7fa9311ca61ae57882003d026b6d767e54..a8239141abed27283969ec6e15268ea31652ea58 100644 |
| --- a/chrome/browser/ui/browser_command_controller_unittest.cc |
| +++ b/chrome/browser/ui/browser_command_controller_unittest.cc |
| @@ -161,7 +161,7 @@ TEST_F(BrowserCommandControllerTest, IncognitoCommands) { |
| testprofile->SetGuestSession(true); |
| chrome::BrowserCommandController |
| ::UpdateSharedCommandsForIncognitoAvailability( |
| - browser()->command_controller()->command_updater(), testprofile); |
| + browser()->command_controller()->command_updater(), testprofile, false); |
|
msw
2017/02/14 22:34:50
If we keep this flag, we should have test coverage
Hzj_jie
2017/02/15 02:00:49
Sure, more test cases are added.
|
| EXPECT_TRUE(chrome::IsCommandEnabled(browser(), IDC_OPTIONS)); |
| EXPECT_FALSE(chrome::IsCommandEnabled(browser(), IDC_IMPORT_SETTINGS)); |
| EXPECT_FALSE(chrome::IsCommandEnabled(browser(), IDC_SHOW_SIGNIN)); |
| @@ -171,7 +171,7 @@ TEST_F(BrowserCommandControllerTest, IncognitoCommands) { |
| IncognitoModePrefs::FORCED); |
| chrome::BrowserCommandController |
| ::UpdateSharedCommandsForIncognitoAvailability( |
| - browser()->command_controller()->command_updater(), testprofile); |
| + browser()->command_controller()->command_updater(), testprofile, false); |
| EXPECT_FALSE(chrome::IsCommandEnabled(browser(), IDC_OPTIONS)); |
| EXPECT_FALSE(chrome::IsCommandEnabled(browser(), IDC_IMPORT_SETTINGS)); |
| EXPECT_FALSE(chrome::IsCommandEnabled(browser(), IDC_SHOW_SIGNIN)); |