| Index: chrome/browser/ui/webui/chromeos/drive_internals_ui.cc
|
| diff --git a/chrome/browser/ui/webui/chromeos/drive_internals_ui.cc b/chrome/browser/ui/webui/chromeos/drive_internals_ui.cc
|
| index c4e28374cd5a33ff79ef253fc7882acdf36b185e..023b1301ed1432bd41a08b0e1b4fd9d3ea7e5c28 100644
|
| --- a/chrome/browser/ui/webui/chromeos/drive_internals_ui.cc
|
| +++ b/chrome/browser/ui/webui/chromeos/drive_internals_ui.cc
|
| @@ -24,6 +24,8 @@
|
| #include "chrome/browser/google_apis/auth_service.h"
|
| #include "chrome/browser/google_apis/drive_api_parser.h"
|
| #include "chrome/browser/google_apis/drive_api_util.h"
|
| +#include "chrome/browser/google_apis/drive_notification_manager.h"
|
| +#include "chrome/browser/google_apis/drive_notification_manager_factory.h"
|
| #include "chrome/browser/google_apis/drive_service_interface.h"
|
| #include "chrome/browser/google_apis/drive_switches.h"
|
| #include "chrome/browser/google_apis/gdata_errorcode.h"
|
| @@ -515,13 +517,16 @@ void DriveInternalsWebUIHandler::UpdateDeltaUpdateStatusSection() {
|
| void DriveInternalsWebUIHandler::OnGetFilesystemMetadataForDeltaUpdate(
|
| const drive::DriveFileSystemMetadata& metadata) {
|
| DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI));
|
| - drive::DriveSystemService* const system_service = GetSystemService();
|
| - if (!system_service)
|
| + Profile* profile = Profile::FromWebUI(web_ui());
|
| + google_apis::DriveNotificationManager* drive_notification_manager =
|
| + google_apis::DriveNotificationManagerFactory::GetForProfile(profile);
|
| + if (!drive_notification_manager)
|
| return;
|
|
|
| base::DictionaryValue delta_update_status;
|
| - delta_update_status.SetBoolean("push-notification-enabled",
|
| - system_service->PushNotificationEnabled());
|
| + delta_update_status.SetBoolean(
|
| + "push-notification-enabled",
|
| + drive_notification_manager->IsPushNotificationEnabled());
|
| delta_update_status.SetString(
|
| "last-update-check-time",
|
| google_apis::util::FormatTimeAsStringLocaltime(
|
|
|