Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1415)

Unified Diff: chrome/browser/extensions/api/easy_unlock_private/easy_unlock_private_api.cc

Issue 569813002: Minor cleanup in EasyUnlockClient (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: . Created 6 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | chrome/browser/extensions/api/easy_unlock_private/easy_unlock_private_api_chromeos_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/extensions/api/easy_unlock_private/easy_unlock_private_api.cc
diff --git a/chrome/browser/extensions/api/easy_unlock_private/easy_unlock_private_api.cc b/chrome/browser/extensions/api/easy_unlock_private/easy_unlock_private_api.cc
index 703ba392b708e8649f2b84763496e7de6a45eaa1..52fdf3186adf0fd938ba235b261b14b8940179e4 100644
--- a/chrome/browser/extensions/api/easy_unlock_private/easy_unlock_private_api.cc
+++ b/chrome/browser/extensions/api/easy_unlock_private/easy_unlock_private_api.cc
@@ -263,8 +263,7 @@ bool EasyUnlockPrivatePerformECDHKeyAgreementFunction::RunAsync() {
EXTENSION_FUNCTION_VALIDATE(params);
GetCryptoDelegate(browser_context())->PerformECDHKeyAgreement(
- params->private_key,
- params->public_key,
+ *params,
base::Bind(&EasyUnlockPrivatePerformECDHKeyAgreementFunction::OnData,
this));
return true;
@@ -316,18 +315,7 @@ bool EasyUnlockPrivateCreateSecureMessageFunction::RunAsync() {
EXTENSION_FUNCTION_VALIDATE(params);
GetCryptoDelegate(browser_context())->CreateSecureMessage(
- params->payload,
- params->key,
- params->options.associated_data ?
- *params->options.associated_data : std::string(),
- params->options.public_metadata ?
- *params->options.public_metadata : std::string(),
- params->options.verification_key_id ?
- *params->options.verification_key_id : std::string(),
- params->options.decryption_key_id ?
- *params->options.decryption_key_id : std::string(),
- params->options.encrypt_type,
- params->options.sign_type,
+ *params,
base::Bind(&EasyUnlockPrivateCreateSecureMessageFunction::OnData,
this));
return true;
@@ -355,12 +343,7 @@ bool EasyUnlockPrivateUnwrapSecureMessageFunction::RunAsync() {
EXTENSION_FUNCTION_VALIDATE(params);
GetCryptoDelegate(browser_context())->UnwrapSecureMessage(
- params->secure_message,
- params->key,
- params->options.associated_data ?
- *params->options.associated_data : std::string(),
- params->options.encrypt_type,
- params->options.sign_type,
+ *params,
base::Bind(&EasyUnlockPrivateUnwrapSecureMessageFunction::OnData,
this));
return true;
« no previous file with comments | « no previous file | chrome/browser/extensions/api/easy_unlock_private/easy_unlock_private_api_chromeos_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698