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

Unified Diff: components/gcm_driver/instance_id/fake_gcm_driver_for_instance_id.h

Issue 2387483002: Push API: Refactor and fix unsubscribe API (Closed)
Patch Set: Added enum reuse comments Created 4 years, 3 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/instance_id/fake_gcm_driver_for_instance_id.h
diff --git a/components/gcm_driver/instance_id/fake_gcm_driver_for_instance_id.h b/components/gcm_driver/instance_id/fake_gcm_driver_for_instance_id.h
index 7d31a36e4898a22bbaad64ed52defa2629e6ca2f..a914c89aa005c6ba35a8b115aeb491cd821738bb 100644
--- a/components/gcm_driver/instance_id/fake_gcm_driver_for_instance_id.h
+++ b/components/gcm_driver/instance_id/fake_gcm_driver_for_instance_id.h
@@ -51,16 +51,19 @@ class FakeGCMDriverForInstanceID : public gcm::FakeGCMDriver,
const std::string& last_gettoken_app_id() const {
return last_gettoken_app_id_;
}
-
const std::string& last_gettoken_authorized_entity() const {
return last_gettoken_authorized_entity_;
}
+ const std::string& last_deletetoken_app_id() const {
+ return last_deletetoken_app_id_;
+ }
private:
std::map<std::string, std::pair<std::string, std::string>> instance_id_data_;
std::map<std::string, std::string> tokens_;
std::string last_gettoken_app_id_;
std::string last_gettoken_authorized_entity_;
+ std::string last_deletetoken_app_id_;
DISALLOW_COPY_AND_ASSIGN(FakeGCMDriverForInstanceID);
};

Powered by Google App Engine
This is Rietveld 408576698