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

Unified Diff: components/gcm_driver/gcm_driver.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/gcm_driver.cc
diff --git a/components/gcm_driver/gcm_driver.cc b/components/gcm_driver/gcm_driver.cc
index db98afa9bb6029d7807797037e1c5cbc64576a86..4569f796fff1dc607a53b6db2a8131f4dd28f770 100644
--- a/components/gcm_driver/gcm_driver.cc
+++ b/components/gcm_driver/gcm_driver.cc
@@ -187,6 +187,13 @@ void GCMDriver::RegisterFinished(const std::string& app_id,
callback.Run(registration_id, result);
}
+void GCMDriver::UnregisterRemoveEncryptionInfo(const std::string& app_id,
+ GCMClient::Result result) {
+ encryption_provider_.RemoveEncryptionInfo(
+ app_id, base::Bind(&GCMDriver::UnregisterFinished,
+ weak_ptr_factory_.GetWeakPtr(), app_id, result));
+}
+
void GCMDriver::UnregisterFinished(const std::string& app_id,
GCMClient::Result result) {
std::map<std::string, UnregisterCallback>::iterator callback_iter =

Powered by Google App Engine
This is Rietveld 408576698