tree: 3466525db121a669c5d0daa8fbeee07983cb37a7 [path history] [tgz]
  1. DEPS
  2. OWNERS
  3. README.md
  4. relaunch_notification_controller.cc
  5. relaunch_notification_controller.h
  6. relaunch_notification_controller_platform_impl_chromeos.cc
  7. relaunch_notification_controller_platform_impl_chromeos.h
  8. relaunch_notification_controller_platform_impl_desktop.cc
  9. relaunch_notification_controller_platform_impl_desktop.h
  10. relaunch_notification_controller_unittest.cc
  11. relaunch_recommended_bubble_view.cc
  12. relaunch_recommended_bubble_view.h
  13. relaunch_recommended_bubble_view_browsertest.cc
  14. relaunch_recommended_timer.cc
  15. relaunch_recommended_timer.h
  16. relaunch_required_dialog_view.cc
  17. relaunch_required_dialog_view.h
  18. relaunch_required_dialog_view_browsertest.cc
  19. relaunch_required_timer.cc
  20. relaunch_required_timer.h
  21. relaunch_required_timer_internal.cc
  22. relaunch_required_timer_internal.h
  23. relaunch_required_timer_internal_unittest.cc
chrome/browser/ui/views/relaunch_notification/README.md

Relaunch Notifications Overview

This document is an overview of relaunch notifications concepts, terms, and architecture.

Key Classes

RelaunchNotificationController

An instance of class RelaunchNotificationController observes UpgradeDetector and controls the notifications shown to the user according to the RelaunchNotification and RelaunchNotificationPeriod policies settings. An instance of this class is owned by ChromeBrowserMainExtraPartsViews, and only one instance is created per browser.

RelaunchNotificationControllerPlatformImpl

An instance of this class represents the implementation of RelaunchNotificationController according to specific platforms; Chrome OS, Desktop. The relaunch notification on Chrome OS is used to relaunch the whole operating system to apply updates, but on other platforms is used to only relaunch the browser to update it.

RelaunchRequiredTimer

An instance of this class is responsible for refreshing the title for relaunch notification in case RelaunchNotification policy is set to required. The notification title needs to be refreshed as it displays the remaining time for the relaunch.

Desktop Chrome

RelaunchRecommendedBubbleView

If the policy setting is recommended, then an instance of this class manages the relaunch recommended notification bubble on desktop Chrome. The remaining time until the next recommended relaunch is displayed in the title.

RelaunchRecommendedTimer

An instance of this class is responsible for refreshing the title for RelaunchRecommendedBubbleView on desktop Chrome.

RelaunchRequiredDialogView

If the policy setting is required, then an instance of this class manages the relaunch required dialog on desktop Chrome. The remaining time until the next required relaunch is displayed in the title.

Chrome OS

The relaunch notifications on Chrome OS uses SystemTray notifications, and uses RelaunchRequiredTimer to update the title in case the RelaunchNotification policy is set to required.