| Index: chrome/browser/ui/sync/one_click_signin_sync_starter.cc
|
| diff --git a/chrome/browser/ui/sync/one_click_signin_sync_starter.cc b/chrome/browser/ui/sync/one_click_signin_sync_starter.cc
|
| index e075f48aef18b9524d38e98ff9d06ba89f8f82d9..7b8991a94a1543842e30ba0aceb5ef49ee4904af 100644
|
| --- a/chrome/browser/ui/sync/one_click_signin_sync_starter.cc
|
| +++ b/chrome/browser/ui/sync/one_click_signin_sync_starter.cc
|
| @@ -18,6 +18,7 @@
|
| #include "chrome/browser/profiles/profile_io_data.h"
|
| #include "chrome/browser/profiles/profile_manager.h"
|
| #include "chrome/browser/profiles/profile_window.h"
|
| +#include "chrome/browser/profiles/profiles_state.h"
|
| #include "chrome/browser/signin/signin_manager.h"
|
| #include "chrome/browser/signin/signin_manager_factory.h"
|
| #include "chrome/browser/sync/profile_sync_service.h"
|
| @@ -366,6 +367,15 @@ void OneClickSigninSyncStarter::SigninFailed(
|
| }
|
|
|
| void OneClickSigninSyncStarter::SigninSuccess() {
|
| + if (!profiles::IsNewProfileManagementEnabled())
|
| + MergeSessionComplete(GoogleServiceAuthError(GoogleServiceAuthError::NONE));
|
| +}
|
| +
|
| +void OneClickSigninSyncStarter::MergeSessionComplete(
|
| + const GoogleServiceAuthError& error) {
|
| + // Regardless of whether the merge session completed sucessfully or not,
|
| + // continue with sync starting.
|
| +
|
| if (!sync_setup_completed_callback_.is_null())
|
| sync_setup_completed_callback_.Run(SYNC_SETUP_SUCCESS);
|
|
|
|
|