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

Unified Diff: chrome/browser/gcm/instance_id/instance_id_profile_service.cc

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
« no previous file with comments | « no previous file | components/gcm_driver/gcm_profile_service.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/gcm/instance_id/instance_id_profile_service.cc
diff --git a/chrome/browser/gcm/instance_id/instance_id_profile_service.cc b/chrome/browser/gcm/instance_id/instance_id_profile_service.cc
index 445af4840aac227824566c48029d3f05831aa9b6..1d79f590a400535bdd7556e485274199165bb8a5 100644
--- a/chrome/browser/gcm/instance_id/instance_id_profile_service.cc
+++ b/chrome/browser/gcm/instance_id/instance_id_profile_service.cc
@@ -24,8 +24,10 @@ bool InstanceIDProfileService::IsInstanceIDEnabled(Profile* profile) {
InstanceIDProfileService::InstanceIDProfileService(Profile* profile) {
DCHECK(!profile->IsOffTheRecord());
- driver_.reset(new InstanceIDDriver(
- gcm::GCMProfileServiceFactory::GetForProfile(profile)->driver()));
+ gcm::GCMProfileService* profile_service =
+ gcm::GCMProfileServiceFactory::GetForProfile(profile);
+ driver_.reset(new InstanceIDDriver(profile_service->driver(),
+ profile_service->instance_id_factory()));
}
InstanceIDProfileService::~InstanceIDProfileService() {
« no previous file with comments | « no previous file | components/gcm_driver/gcm_profile_service.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698