• Home
  • History
  • Annotate
Name Date Size #Lines LOC

..03-May-2022-

DEPSH A D16-Feb-2021233 109

OWNERSH A D16-Feb-202117 21

README.mdH A D16-Feb-20212.4 KiB6745

relaunch_notification_controller.ccH A D16-Feb-202112.5 KiB347241

relaunch_notification_controller.hH A D16-Feb-20219 KiB20871

relaunch_notification_controller_platform_impl_chromeos.ccH A D16-Feb-20215.6 KiB156131

relaunch_notification_controller_platform_impl_chromeos.hH A D16-Feb-20213.3 KiB9143

relaunch_notification_controller_platform_impl_desktop.ccH A D16-Feb-20214.8 KiB159110

relaunch_notification_controller_platform_impl_desktop.hH A D16-Feb-20212.9 KiB7533

relaunch_notification_controller_unittest.ccH A D16-Feb-202139.3 KiB1,001697

relaunch_notification_metrics.ccH A D16-Feb-20211.3 KiB4426

relaunch_notification_metrics.hH A D16-Feb-2021697 197

relaunch_recommended_bubble_view.ccH A D16-Feb-20216.1 KiB164123

relaunch_recommended_bubble_view.hH A D16-Feb-20212.3 KiB6335

relaunch_recommended_bubble_view_browsertest.ccH A D16-Feb-20211.1 KiB3322

relaunch_recommended_timer.ccH A D16-Feb-20211.5 KiB4430

relaunch_recommended_timer.hH A D16-Feb-20212.1 KiB5321

relaunch_required_dialog_view.ccH A D16-Feb-20215.3 KiB141113

relaunch_required_dialog_view.hH A D16-Feb-20212.3 KiB6433

relaunch_required_dialog_view_browsertest.ccH A D16-Feb-20211,001 3019

relaunch_required_timer.ccH A D16-Feb-20213.1 KiB8150

relaunch_required_timer.hH A D16-Feb-20212.1 KiB5621

relaunch_required_timer_internal.ccH A D16-Feb-20213.3 KiB8047

relaunch_required_timer_internal.hH A D16-Feb-2021925 238

relaunch_required_timer_internal_unittest.ccH A D16-Feb-20215.9 KiB12692

README.md

1# Relaunch Notifications Overview
2
3This document is an overview of relaunch notifications concepts, terms, and
4architecture.
5
6## Key Classes
7
8### RelaunchNotificationController
9
10An instance of class RelaunchNotificationController observes `UpgradeDetector`
11and controls the notifications shown to the user according to the
12RelaunchNotification and RelaunchNotificationPeriod policies settings.
13An instance of this class is owned by `ChromeBrowserMainExtraPartsViews`, and
14only one instance is created per browser.
15
16### RelaunchNotificationControllerPlatformImpl
17
18An instance of this class represents the implementation of
19RelaunchNotificationController according to specific platforms; Chrome OS,
20Desktop.
21The relaunch notification on Chrome OS is used to relaunch the whole operating
22system to apply updates, but on other platforms is used to only relaunch the
23browser to update it.
24
25### RelaunchRequiredTimer
26
27An instance of this class is responsible for refreshing the title for relaunch
28notification in case `RelaunchNotification` policy is set to required.
29The notification title needs to be refreshed as it displays the remaining time
30for the relaunch.
31
32### **Desktop Chrome**
33
34#### RelaunchRecommendedBubbleView
35
36If the policy setting is recommended, then  an instance of this class manages
37the relaunch recommended notification bubble on desktop Chrome. The remaining
38time until the next recommended relaunch is displayed in the title.
39
40#### RelaunchRecommendedTimer
41
42An instance of this class is responsible for refreshing the title for
43RelaunchRecommendedBubbleView on desktop Chrome.
44
45#### RelaunchRequiredDialogView
46
47If the policy setting is required, then an instance of this class manages the
48relaunch required dialog on desktop Chrome. The remaining time until the next
49required relaunch is displayed in the title.
50
51### **Chrome OS**
52
53The relaunch notifications on Chrome OS uses `SystemTray` notifications, and
54uses `RelaunchRequiredTimer` to update the title in case the
55`RelaunchNotification` policy is set to required.
56
57
58## Metrics
59
60`relaunch_notification::RecordRecommendedShowResult` is responsible for
61recording UMA metrics of the notification showing result in case the
62notification settings was set to recommended.
63
64`relaunch_notification::RecordRequiredShowResult` is responsible for
65recording UMA metrics of the notification showing result in case the
66notification settings was set to required.
67