Commit a2fd9e82 authored by Yusuf Sengul's avatar Yusuf Sengul Committed by Commit Bot

Disable updating credentials by background thread

Bug: 1115255
Change-Id: I29378e7a30a1997480e09580ff172e2e8ac1029b
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2350112
Commit-Queue: Yusuf Sengul <yusufsn@google.com>
Commit-Queue: Rakesh Soma <rakeshsoma@google.com>
Reviewed-by: default avatarRakesh Soma <rakeshsoma@google.com>
Auto-Submit: Yusuf Sengul <yusufsn@google.com>
Cr-Commit-Position: refs/heads/master@{#797011}
parent 18fdc1ab
...@@ -209,6 +209,7 @@ unsigned __stdcall BackgroundTokenHandleUpdater::PeriodicTokenHandleUpdate( ...@@ -209,6 +209,7 @@ unsigned __stdcall BackgroundTokenHandleUpdater::PeriodicTokenHandleUpdate(
"credentials"; "credentials";
} }
if (GetGlobalFlagOrDefault(kRegUpdateCredentialsOnChange, 1))
event_handler->UpdateCredentialsIfNeeded(user_access_changed); event_handler->UpdateCredentialsIfNeeded(user_access_changed);
} }
......
...@@ -51,6 +51,8 @@ constexpr wchar_t kRegDeviceDetailsUploadStatus[] = ...@@ -51,6 +51,8 @@ constexpr wchar_t kRegDeviceDetailsUploadStatus[] =
constexpr wchar_t kRegDeviceDetailsUploadFailures[] = constexpr wchar_t kRegDeviceDetailsUploadFailures[] =
L"device_details_upload_failures"; L"device_details_upload_failures";
constexpr wchar_t kRegGlsPath[] = L"gls_path"; constexpr wchar_t kRegGlsPath[] = L"gls_path";
constexpr wchar_t kRegUpdateCredentialsOnChange[] =
L"update_credentials_on_change";
constexpr wchar_t kRegUserDeviceResourceId[] = L"device_resource_id"; constexpr wchar_t kRegUserDeviceResourceId[] = L"device_resource_id";
constexpr wchar_t kUserPasswordLsaStoreKeyPrefix[] = constexpr wchar_t kUserPasswordLsaStoreKeyPrefix[] =
#if BUILDFLAG(GOOGLE_CHROME_BRANDING) #if BUILDFLAG(GOOGLE_CHROME_BRANDING)
......
...@@ -70,6 +70,10 @@ extern const int kMaxNumConsecutiveUploadDeviceFailures; ...@@ -70,6 +70,10 @@ extern const int kMaxNumConsecutiveUploadDeviceFailures;
// it is empty, developer mode isn't enabled. // it is empty, developer mode isn't enabled.
extern const wchar_t kRegDeveloperMode[]; extern const wchar_t kRegDeveloperMode[];
// Enables updating credentials on login UI when the enforcement of any GCPW
// associated account changes.
extern const wchar_t kRegUpdateCredentialsOnChange[];
// Maximum allowed time delta after which user policies should be refreshed // Maximum allowed time delta after which user policies should be refreshed
// again. // again.
extern const base::TimeDelta kMaxTimeDeltaSinceLastUserPolicyRefresh; extern const base::TimeDelta kMaxTimeDeltaSinceLastUserPolicyRefresh;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment