29 lines
1.5 KiB
Diff
29 lines
1.5 KiB
Diff
diff --git a/chrome/browser/ui/webui/settings/people_handler.cc b/chrome/browser/ui/webui/settings/people_handler.cc
|
|
index 4b17209486857d75934356f15b796ef62d4ce762..06655e0ba36993198d56e29d450ca7f8bd7edcc3 100644
|
|
--- a/chrome/browser/ui/webui/settings/people_handler.cc
|
|
+++ b/chrome/browser/ui/webui/settings/people_handler.cc
|
|
@@ -1163,6 +1163,7 @@ void PeopleHandler::OnSyncShutdown(syncer::SyncService* sync_service) {
|
|
|
|
void PeopleHandler::BeforeUnloadDialogCancelled() {
|
|
// The before unload dialog is only shown during the first sync setup.
|
|
+ if (false)
|
|
DCHECK(IdentityManagerFactory::GetForProfile(profile_)->HasPrimaryAccount(
|
|
signin::ConsentLevel::kSync));
|
|
syncer::SyncService* service = GetSyncService();
|
|
@@ -1212,6 +1213,7 @@ base::DictValue PeopleHandler::GetSyncStatusDictionary() const {
|
|
service && !disallowed_by_policy && service->IsSetupInProgress() &&
|
|
!service->GetUserSettings()->IsInitialSyncFeatureSetupComplete() &&
|
|
identity_manager->HasPrimaryAccount(signin::ConsentLevel::kSync));
|
|
+ BRAVE_GET_SYNC_STATUS_DICTIONARY
|
|
|
|
SyncStatusLabels status_labels = GetSyncStatusLabelsForSettings(
|
|
SyncServiceFactory::GetForProfile(profile_));
|
|
@@ -1421,6 +1423,7 @@ void PeopleHandler::MaybeMarkSyncConfiguring() {
|
|
}
|
|
|
|
bool PeopleHandler::IsProfileAuthNeededOrHasErrors() {
|
|
+ return false;
|
|
return !IdentityManagerFactory::GetForProfile(profile_)->HasPrimaryAccount(
|
|
signin::ConsentLevel::kSync) ||
|
|
SigninErrorControllerFactory::GetForProfile(profile_)->HasError();
|