| Index: chrome/browser/chromeos/drive/drive_integration_service.cc
|
| diff --git a/chrome/browser/chromeos/drive/drive_integration_service.cc b/chrome/browser/chromeos/drive/drive_integration_service.cc
|
| index 6ae980a22ea5ebf49c4a1d08c8cc8bf4e4abfd31..1af4edc9e01ddd613deb027c6cc31d29ab91e719 100644
|
| --- a/chrome/browser/chromeos/drive/drive_integration_service.cc
|
| +++ b/chrome/browser/chromeos/drive/drive_integration_service.cc
|
| @@ -252,6 +252,9 @@ void DriveIntegrationService::OnNotificationReceived() {
|
| }
|
|
|
| void DriveIntegrationService::OnPushNotificationEnabled(bool enabled) {
|
| + if (enabled)
|
| + drive_app_registry_->Update();
|
| +
|
| const char* status = (enabled ? "enabled" : "disabled");
|
| util::Log("Push notification is %s", status);
|
| }
|
| @@ -368,9 +371,11 @@ void DriveIntegrationService::InitializeAfterMetadataInitialized(
|
| drive_notification_manager->push_notification_registered();
|
| const char* status = (registered ? "registered" : "not registered");
|
| util::Log("Push notification is %s", status);
|
| +
|
| + if (drive_notification_manager->push_notification_enabled())
|
| + drive_app_registry_->Update();
|
| }
|
|
|
| - drive_app_registry_->Update();
|
| AddDriveMountPoint();
|
| }
|
|
|
|
|