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

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
« no previous file with comments | « components/gcm_driver/gcm_driver.h ('k') | components/gcm_driver/gcm_driver_android.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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..9594492da8fb63fcc7746cbfd0f307f0f3e086d5 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::RemoveEncryptionInfoAfterUnregister(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 =
« no previous file with comments | « components/gcm_driver/gcm_driver.h ('k') | components/gcm_driver/gcm_driver_android.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698