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

Unified Diff: components/gcm_driver/instance_id/instance_id.cc

Issue 1785613006: Make GCMDriver::GetInstanceIDHandler protected, to avoid misuse (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Address peter's review comments Created 4 years, 9 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/instance_id.cc
diff --git a/components/gcm_driver/instance_id/instance_id.cc b/components/gcm_driver/instance_id/instance_id.cc
index 9e875a02ab4a6852f20f4557e54f3a4a06535183..d89c997efe3d91cd39b861df3ce75a2eda2cacaa 100644
--- a/components/gcm_driver/instance_id/instance_id.cc
+++ b/components/gcm_driver/instance_id/instance_id.cc
@@ -6,8 +6,10 @@
namespace instance_id {
-InstanceID::InstanceID(const std::string& app_id)
- : app_id_(app_id) {
+InstanceID::InstanceID(const std::string& app_id,
+ gcm::InstanceIDHandler* handler)
+ : handler_(handler), app_id_(app_id) {
+ DCHECK(handler_);
}
InstanceID::~InstanceID() {

Powered by Google App Engine
This is Rietveld 408576698