Index: chrome/browser/chromeos/login/easy_unlock/easy_unlock_key_manager.cc |
diff --git a/chrome/browser/chromeos/login/easy_unlock/easy_unlock_key_manager.cc b/chrome/browser/chromeos/login/easy_unlock/easy_unlock_key_manager.cc |
index 824b0dd1fbaeada1edd34b22f904ebf434dbb4d8..4ba4709a026e05d71916c453980cad1b4e082d19 100644 |
--- a/chrome/browser/chromeos/login/easy_unlock/easy_unlock_key_manager.cc |
+++ b/chrome/browser/chromeos/login/easy_unlock/easy_unlock_key_manager.cc |
@@ -51,8 +51,7 @@ void EasyUnlockKeyManager::RefreshKeys(const UserContext& user_context, |
devices, |
base::Bind(&EasyUnlockKeyManager::OnKeysCreated, |
weak_ptr_factory_.GetWeakPtr(), |
- user_context, |
- devices, |
+ devices.size(), |
callback))); |
create_keys_op_->Start(); |
} |
@@ -172,8 +171,7 @@ int EasyUnlockKeyManager::GetNextOperationId() { |
} |
void EasyUnlockKeyManager::OnKeysCreated( |
- const UserContext& user_context, |
- const EasyUnlockDeviceKeyDataList& devices, |
+ size_t remove_start_index, |
const RefreshKeysCallback& callback, |
bool create_success) { |
scoped_ptr<EasyUnlockCreateKeysOperation> op = create_keys_op_.Pass(); |
@@ -181,7 +179,7 @@ void EasyUnlockKeyManager::OnKeysCreated( |
callback.Run(create_success); |
// Remove extra existing keys. |
- RemoveKeys(user_context, devices.size(), RemoveKeysCallback()); |
+ RemoveKeys(op->user_context(), remove_start_index, RemoveKeysCallback()); |
} |
void EasyUnlockKeyManager::OnKeysRemoved(const RemoveKeysCallback& callback, |