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/fake_gcm_driver.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_driver.cc
diff --git a/components/gcm_driver/fake_gcm_driver.cc b/components/gcm_driver/fake_gcm_driver.cc
index 6f4e5d863dade39fc64c50cd4d44bdfee4135d1d..9974f92bfc45a0c03179fc0ea71ca53a737ef8bd 100644
--- a/components/gcm_driver/fake_gcm_driver.cc
+++ b/components/gcm_driver/fake_gcm_driver.cc
@@ -4,8 +4,10 @@
#include "components/gcm_driver/fake_gcm_driver.h"
+#include "base/bind.h"
#include "base/files/file_path.h"
#include "base/sequenced_task_runner.h"
+#include "base/threading/thread_task_runner_handle.h"
namespace gcm {
@@ -20,6 +22,15 @@ FakeGCMDriver::FakeGCMDriver(
FakeGCMDriver::~FakeGCMDriver() {
}
+void FakeGCMDriver::ValidateRegistration(
+ const std::string& app_id,
+ const std::vector<std::string>& sender_ids,
+ const std::string& registration_id,
+ const ValidateRegistrationCallback& callback) {
+ base::ThreadTaskRunnerHandle::Get()->PostTask(
+ FROM_HERE, base::Bind(callback, true /* is_valid */));
+}
+
void FakeGCMDriver::OnSignedIn() {
}

Powered by Google App Engine
This is Rietveld 408576698