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

Unified Diff: components/gcm_driver/fake_gcm_client.cc

Issue 2697793004: Push API: Validate storage before returning cached subscriptions (Closed)
Patch Set: Comment out PUSH_GETREGISTRATION_STATUS_PUBLIC_KEY_UNAVAILABLE Created 3 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/fake_gcm_client.cc
diff --git a/components/gcm_driver/fake_gcm_client.cc b/components/gcm_driver/fake_gcm_client.cc
index eaa66c894d182fea831ea919e8b275cdc9edd992..ece564a68c9a825c0f76ce203219f1fc34e02dd5 100644
--- a/components/gcm_driver/fake_gcm_client.cc
+++ b/components/gcm_driver/fake_gcm_client.cc
@@ -141,6 +141,12 @@ void FakeGCMClient::Register(
registration_id));
}
+bool FakeGCMClient::ValidateRegistration(
+ const linked_ptr<RegistrationInfo>& registration_info,
+ const std::string& registration_id) {
+ return true;
+}
+
void FakeGCMClient::Unregister(
const linked_ptr<RegistrationInfo>& registration_info) {
DCHECK(io_thread_->RunsTasksOnCurrentThread());

Powered by Google App Engine
This is Rietveld 408576698