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

Unified Diff: components/gcm_driver/crypto/gcm_encryption_provider.cc

Issue 1701973003: Remove associated keying material when unregistering from GCM (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 10 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
Index: components/gcm_driver/crypto/gcm_encryption_provider.cc
diff --git a/components/gcm_driver/crypto/gcm_encryption_provider.cc b/components/gcm_driver/crypto/gcm_encryption_provider.cc
index 2da9a458da9f466a87aae85d585aeecddeeb6917..bb6d4ab441a0194263ac8200dc64f433eb751f64 100644
--- a/components/gcm_driver/crypto/gcm_encryption_provider.cc
+++ b/components/gcm_driver/crypto/gcm_encryption_provider.cc
@@ -82,6 +82,13 @@ void GCMEncryptionProvider::GetEncryptionInfo(
weak_ptr_factory_.GetWeakPtr(), app_id, callback));
}
+void GCMEncryptionProvider::RemoveEncryptionInfo(
+ const std::string& app_id,
+ const base::Closure& callback) {
+ DCHECK(key_store_);
+ key_store_->RemoveKeys(app_id, callback);
+}
+
bool GCMEncryptionProvider::IsEncryptedMessage(const IncomingMessage& message)
const {
// The Web Push protocol requires the encryption and crypto-key properties to
« no previous file with comments | « components/gcm_driver/crypto/gcm_encryption_provider.h ('k') | components/gcm_driver/crypto/gcm_key_store.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698