| Index: chrome/browser/ui/sync/one_click_signin_helper_unittest.cc
|
| diff --git a/chrome/browser/ui/sync/one_click_signin_helper_unittest.cc b/chrome/browser/ui/sync/one_click_signin_helper_unittest.cc
|
| index 13bfd6573afdcd7c1d12bff23aa92c9c7c91ddd0..e2f5dbbb5fd3b83ade20422263c423beb6c4cb85 100644
|
| --- a/chrome/browser/ui/sync/one_click_signin_helper_unittest.cc
|
| +++ b/chrome/browser/ui/sync/one_click_signin_helper_unittest.cc
|
| @@ -669,43 +669,6 @@ TEST_F(OneClickSigninHelperIncognitoTest, ShowInfoBarUIThreadIncognito) {
|
| rvh()->GetRoutingID());
|
| }
|
|
|
| -// If Chrome signin is triggered from a webstore install, and user chooses to
|
| -// config sync, then Chrome should redirect immediately to sync settings page,
|
| -// and upon successful setup, redirect back to webstore.
|
| -TEST_F(OneClickSigninHelperTest, SigninFromWebstoreWithConfigSyncfirst) {
|
| - SetUpSigninManager(std::string());
|
| - EXPECT_CALL(*signin_manager_, IsAllowedUsername(_))
|
| - .WillRepeatedly(Return(true));
|
| -
|
| - OneClickTestProfileSyncService* sync_service =
|
| - static_cast<OneClickTestProfileSyncService*>(
|
| - ProfileSyncServiceFactory::GetInstance()->SetTestingFactoryAndUse(
|
| - profile(), OneClickTestProfileSyncService::Build));
|
| - sync_service->set_sync_initialized(true);
|
| -
|
| - content::WebContents* contents = web_contents();
|
| -
|
| - OneClickSigninHelper::CreateForWebContentsWithPasswordManager(contents, NULL);
|
| - OneClickSigninHelper* helper =
|
| - OneClickSigninHelper::FromWebContents(contents);
|
| - helper->SetDoNotClearPendingEmailForTesting();
|
| - helper->set_do_not_start_sync_for_testing();
|
| -
|
| - GURL continueUrl("https://chrome.google.com/webstore?source=5");
|
| - OneClickSigninHelper::ShowInfoBarUIThread(
|
| - "session_index", "user@gmail.com",
|
| - OneClickSigninHelper::AUTO_ACCEPT_EXPLICIT,
|
| - signin::SOURCE_WEBSTORE_INSTALL,
|
| - continueUrl, process()->GetID(), rvh()->GetRoutingID());
|
| -
|
| - SubmitGAIAPassword(helper);
|
| -
|
| - NavigateAndCommit(GURL("https://chrome.google.com/webstore?source=3"));
|
| - helper->DidStopLoading(rvh());
|
| - sync_service->NotifyObservers();
|
| - EXPECT_EQ(GURL(continueUrl), contents->GetVisibleURL());
|
| -}
|
| -
|
| // Checks that the state of OneClickSigninHelper is cleaned when there is a
|
| // navigation away from the sign in flow that is not triggered by the
|
| // web contents.
|
|
|