Index: components/proximity_auth/cryptauth/cryptauth_gcm_manager_impl.cc |
diff --git a/components/proximity_auth/cryptauth/cryptauth_gcm_manager_impl.cc b/components/proximity_auth/cryptauth/cryptauth_gcm_manager_impl.cc |
index 77680e8f31f40be707e320f2f0acdb05c644797b..ed447d2d0f823642df08736c6de710166720a22d 100644 |
--- a/components/proximity_auth/cryptauth/cryptauth_gcm_manager_impl.cc |
+++ b/components/proximity_auth/cryptauth/cryptauth_gcm_manager_impl.cc |
@@ -83,6 +83,10 @@ void CryptAuthGCMManagerImpl::RemoveObserver(Observer* observer) { |
void CryptAuthGCMManagerImpl::ShutdownHandler() { |
} |
+void CryptAuthGCMManagerImpl::OnStoreReset() { |
+ pref_service_->ClearPref(prefs::kCryptAuthGCMRegistrationId); |
+} |
+ |
void CryptAuthGCMManagerImpl::OnMessage(const std::string& app_id, |
const gcm::IncomingMessage& message) { |
std::vector<std::string> fields; |