| Index: chrome/browser/ui/webui/settings/people_handler_unittest.cc
|
| diff --git a/chrome/browser/ui/webui/settings/people_handler_unittest.cc b/chrome/browser/ui/webui/settings/people_handler_unittest.cc
|
| index 273f55bf8ddc989d222491ad40c60a8ab51925b9..487eff29d85985b78c61fee671eed4ef680e32a4 100644
|
| --- a/chrome/browser/ui/webui/settings/people_handler_unittest.cc
|
| +++ b/chrome/browser/ui/webui/settings/people_handler_unittest.cc
|
| @@ -396,7 +396,7 @@ TEST_F(PeopleHandlerTest,
|
| EXPECT_CALL(*mock_pss_, IsEngineInitialized()).WillRepeatedly(Return(false));
|
| SetDefaultExpectationsForConfigPage();
|
|
|
| - handler_->OpenSyncSetup(false /* creating_supervised_user */);
|
| + handler_->OpenSyncSetup();
|
|
|
| EXPECT_EQ(1U, web_ui_.call_data().size());
|
| ExpectPageStatusChanged(PeopleHandler::kSpinnerPageStatus);
|
| @@ -432,7 +432,7 @@ TEST_F(PeopleHandlerTest,
|
| .WillOnce(Return(false))
|
| .WillRepeatedly(Return(true));
|
| SetDefaultExpectationsForConfigPage();
|
| - handler_->OpenSyncSetup(false /* creating_supervised_user */);
|
| + handler_->OpenSyncSetup();
|
|
|
| // It's important to tell sync the user cancelled the setup flow before we
|
| // tell it we're through with the setup progress.
|
| @@ -452,7 +452,7 @@ TEST_F(PeopleHandlerTest, DisplayConfigureWithEngineDisabledAndSigninFailed) {
|
| error_ = GoogleServiceAuthError::AuthErrorNone();
|
| EXPECT_CALL(*mock_pss_, IsEngineInitialized()).WillRepeatedly(Return(false));
|
|
|
| - handler_->OpenSyncSetup(false /* creating_supervised_user */);
|
| + handler_->OpenSyncSetup();
|
| ExpectPageStatusChanged(PeopleHandler::kSpinnerPageStatus);
|
| Mock::VerifyAndClearExpectations(mock_pss_);
|
| error_ = GoogleServiceAuthError(
|
| @@ -479,7 +479,7 @@ TEST_F(PeopleHandlerNonCrosTest, HandleGaiaAuthFailure) {
|
| .WillRepeatedly(Return(false));
|
| EXPECT_CALL(*mock_pss_, IsFirstSetupComplete()).WillRepeatedly(Return(false));
|
| // Open the web UI.
|
| - handler_->OpenSyncSetup(false /* creating_supervised_user */);
|
| + handler_->OpenSyncSetup();
|
|
|
| ASSERT_FALSE(handler_->is_configuring_sync());
|
| }
|
| @@ -489,7 +489,7 @@ TEST_F(PeopleHandlerNonCrosTest, UnrecoverableErrorInitializingSync) {
|
| EXPECT_CALL(*mock_pss_, CanSyncStart()).WillRepeatedly(Return(false));
|
| EXPECT_CALL(*mock_pss_, IsFirstSetupComplete()).WillRepeatedly(Return(false));
|
| // Open the web UI.
|
| - handler_->OpenSyncSetup(false /* creating_supervised_user */);
|
| + handler_->OpenSyncSetup();
|
|
|
| ASSERT_FALSE(handler_->is_configuring_sync());
|
| }
|
| @@ -498,7 +498,7 @@ TEST_F(PeopleHandlerNonCrosTest, GaiaErrorInitializingSync) {
|
| EXPECT_CALL(*mock_pss_, CanSyncStart()).WillRepeatedly(Return(false));
|
| EXPECT_CALL(*mock_pss_, IsFirstSetupComplete()).WillRepeatedly(Return(false));
|
| // Open the web UI.
|
| - handler_->OpenSyncSetup(false /* creating_supervised_user */);
|
| + handler_->OpenSyncSetup();
|
|
|
| ASSERT_FALSE(handler_->is_configuring_sync());
|
| }
|
| @@ -698,7 +698,7 @@ TEST_F(PeopleHandlerTest, ShowSyncSetup) {
|
| SetupInitializedProfileSyncService();
|
| // This should display the sync setup dialog (not login).
|
| SetDefaultExpectationsForConfigPage();
|
| - handler_->OpenSyncSetup(false /* creating_supervised_user */);
|
| + handler_->OpenSyncSetup();
|
|
|
| ExpectSyncPrefsChanged();
|
| }
|
| @@ -733,7 +733,7 @@ TEST_F(PeopleHandlerTest, ShowSigninOnAuthError) {
|
|
|
| // On ChromeOS, this should display the spinner while we try to startup the
|
| // sync engine, and on desktop this displays the login dialog.
|
| - handler_->OpenSyncSetup(false /* creating_supervised_user */);
|
| + handler_->OpenSyncSetup();
|
|
|
| // Sync setup is closed when re-auth is in progress.
|
| EXPECT_EQ(NULL,
|
| @@ -752,7 +752,7 @@ TEST_F(PeopleHandlerTest, ShowSetupSyncEverything) {
|
| SetupInitializedProfileSyncService();
|
| SetDefaultExpectationsForConfigPage();
|
| // This should display the sync setup dialog (not login).
|
| - handler_->OpenSyncSetup(false /* creating_supervised_user */);
|
| + handler_->OpenSyncSetup();
|
|
|
| const base::DictionaryValue* dictionary = ExpectSyncPrefsChanged();
|
| CheckBool(dictionary, "syncAllDataTypes", true);
|
| @@ -782,7 +782,7 @@ TEST_F(PeopleHandlerTest, ShowSetupManuallySyncAll) {
|
| sync_prefs.SetKeepEverythingSynced(false);
|
| SetDefaultExpectationsForConfigPage();
|
| // This should display the sync setup dialog (not login).
|
| - handler_->OpenSyncSetup(false /* creating_supervised_user */);
|
| + handler_->OpenSyncSetup();
|
|
|
| const base::DictionaryValue* dictionary = ExpectSyncPrefsChanged();
|
| CheckConfigDataTypeArguments(dictionary, CHOOSE_WHAT_TO_SYNC, GetAllTypes());
|
| @@ -806,7 +806,7 @@ TEST_F(PeopleHandlerTest, ShowSetupSyncForAllTypesIndividually) {
|
| WillRepeatedly(Return(types));
|
|
|
| // This should display the sync setup dialog (not login).
|
| - handler_->OpenSyncSetup(false /* creating_supervised_user */);
|
| + handler_->OpenSyncSetup();
|
|
|
| // Close the config overlay.
|
| LoginUIServiceFactory::GetForProfile(profile_)->LoginUIClosed(
|
| @@ -830,7 +830,7 @@ TEST_F(PeopleHandlerTest, ShowSetupOldGaiaPassphraseRequired) {
|
| SetDefaultExpectationsForConfigPage();
|
|
|
| // This should display the sync setup dialog (not login).
|
| - handler_->OpenSyncSetup(false /* creating_supervised_user */);
|
| + handler_->OpenSyncSetup();
|
|
|
| const base::DictionaryValue* dictionary = ExpectSyncPrefsChanged();
|
| CheckBool(dictionary, "passphraseRequired", true);
|
| @@ -846,7 +846,7 @@ TEST_F(PeopleHandlerTest, ShowSetupCustomPassphraseRequired) {
|
| SetDefaultExpectationsForConfigPage();
|
|
|
| // This should display the sync setup dialog (not login).
|
| - handler_->OpenSyncSetup(false /* creating_supervised_user */);
|
| + handler_->OpenSyncSetup();
|
|
|
| const base::DictionaryValue* dictionary = ExpectSyncPrefsChanged();
|
| CheckBool(dictionary, "passphraseRequired", true);
|
| @@ -864,7 +864,7 @@ TEST_F(PeopleHandlerTest, ShowSetupEncryptAll) {
|
| .WillRepeatedly(Return(true));
|
|
|
| // This should display the sync setup dialog (not login).
|
| - handler_->OpenSyncSetup(false /* creating_supervised_user */);
|
| + handler_->OpenSyncSetup();
|
|
|
| const base::DictionaryValue* dictionary = ExpectSyncPrefsChanged();
|
| CheckBool(dictionary, "encryptAllData", true);
|
| @@ -881,7 +881,7 @@ TEST_F(PeopleHandlerTest, ShowSetupEncryptAllDisallowed) {
|
| .WillRepeatedly(Return(false));
|
|
|
| // This should display the sync setup dialog (not login).
|
| - handler_->OpenSyncSetup(false /* creating_supervised_user */);
|
| + handler_->OpenSyncSetup();
|
|
|
| const base::DictionaryValue* dictionary = ExpectSyncPrefsChanged();
|
| CheckBool(dictionary, "encryptAllData", false);
|
|
|