Commit 6d673ee9 authored by David Benjamin's avatar David Benjamin Committed by Commit Bot

Remove test-only logic

This does not appear to be needed anymore.

Bug: none
Change-Id: I299d9e401ea05ec7c67e90b46c571157a27ee291
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1885172Reviewed-by: default avatarXiyuan Xia <xiyuan@chromium.org>
Commit-Queue: David Benjamin <davidben@chromium.org>
Cr-Commit-Position: refs/heads/master@{#710371}
parent aa5d02e5
...@@ -697,18 +697,11 @@ void OwnerSettingsServiceChromeOS::ReloadKeypairImpl(const base::Callback< ...@@ -697,18 +697,11 @@ void OwnerSettingsServiceChromeOS::ReloadKeypairImpl(const base::Callback<
if (waiting_for_tpm_token_ || waiting_for_easy_unlock_operation_finshed_) if (waiting_for_tpm_token_ || waiting_for_easy_unlock_operation_finshed_)
return; return;
bool rv = base::PostTask( base::PostTask(
FROM_HERE, {BrowserThread::IO}, FROM_HERE, {BrowserThread::IO},
base::BindOnce(&LoadPrivateKeyOnIOThread, owner_key_util_, base::BindOnce(&LoadPrivateKeyOnIOThread, owner_key_util_,
ProfileHelper::GetUserIdHashFromProfile(profile_), ProfileHelper::GetUserIdHashFromProfile(profile_),
callback)); callback));
if (!rv) {
// IO thread doesn't exists in unit tests, but it's safe to use NSS from
// BlockingPool in unit tests.
LoadPrivateKeyOnIOThread(owner_key_util_,
ProfileHelper::GetUserIdHashFromProfile(profile_),
callback);
}
} }
void OwnerSettingsServiceChromeOS::StorePendingChanges() { void OwnerSettingsServiceChromeOS::StorePendingChanges() {
......
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