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

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

Issue 2847923002: [Chromecast] Add method to CastCdm for the session expiration updating. (Closed)
Patch Set: Add InstanceIDFactory class to help with testing. Created 3 years, 5 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_driver.h
diff --git a/components/gcm_driver/instance_id/instance_id_driver.h b/components/gcm_driver/instance_id/instance_id_driver.h
index f0ff94242889353db59a1713067c02b52d1e29b4..e87f8c80a88b3b08374bd6d99963f17cf87dd4d5 100644
--- a/components/gcm_driver/instance_id/instance_id_driver.h
+++ b/components/gcm_driver/instance_id/instance_id_driver.h
@@ -18,6 +18,7 @@ class GCMDriver;
namespace instance_id {
class InstanceID;
+class InstanceIDFactory;
// Bridge between Instance ID users in Chrome and the platform-specific
// implementation.
@@ -26,7 +27,7 @@ class InstanceIDDriver {
// Returns whether InstanceID is enabled.
static bool IsInstanceIDEnabled();
- explicit InstanceIDDriver(gcm::GCMDriver* gcm_driver);
+ InstanceIDDriver(gcm::GCMDriver* gcm_driver, InstanceIDFactory* factory);
virtual ~InstanceIDDriver();
// Returns the InstanceID that provides the Instance ID service for the given
@@ -45,6 +46,7 @@ class InstanceIDDriver {
// Owned by GCMProfileServiceFactory, which is a dependency of
// InstanceIDProfileServiceFactory, which owns this.
gcm::GCMDriver* gcm_driver_;
+ InstanceIDFactory* const factory_;
std::map<std::string, std::unique_ptr<InstanceID>> instance_id_map_;

Powered by Google App Engine
This is Rietveld 408576698