Searched refs:UpgradeDetector (Results 1 – 8 of 8) sorted by relevance
24 class UpgradeDetector {36 static UpgradeDetector* GetInstance();38 ~UpgradeDetector();49 friend struct DefaultSingletonTraits<UpgradeDetector>;51 UpgradeDetector();66 base::RepeatingTimer<UpgradeDetector> detect_upgrade_timer_;70 base::RepeatingTimer<UpgradeDetector> upgrade_notification_timer_;75 ScopedRunnableMethodFactory<UpgradeDetector> method_factory_;90 DISALLOW_COPY_AND_ASSIGN(UpgradeDetector);
153 void UpgradeDetector::RegisterPrefs(PrefService* prefs) { in RegisterPrefs()157 UpgradeDetector::UpgradeDetector() in UpgradeDetector() function in UpgradeDetector175 this, &UpgradeDetector::CheckForUpgrade); in UpgradeDetector()180 UpgradeDetector::~UpgradeDetector() { in ~UpgradeDetector()184 UpgradeDetector* UpgradeDetector::GetInstance() { in GetInstance()185 return Singleton<UpgradeDetector>::get(); in GetInstance()188 void UpgradeDetector::CheckForUpgrade() { in CheckForUpgrade()191 method_factory_.NewRunnableMethod(&UpgradeDetector::UpgradeDetected); in CheckForUpgrade()201 void UpgradeDetector::UpgradeDetected() { in UpgradeDetected()211 Source<UpgradeDetector>(this), in UpgradeDetected()[all …]
280 UpgradeDetector::UpgradeNotificationAnnoyanceLevel stage = in GetIconForCommandId()281 UpgradeDetector::GetInstance()->upgrade_notification_stage(); in GetIconForCommandId()283 case UpgradeDetector::UPGRADE_ANNOYANCE_SEVERE: in GetIconForCommandId()286 case UpgradeDetector::UPGRADE_ANNOYANCE_HIGH: in GetIconForCommandId()289 case UpgradeDetector::UPGRADE_ANNOYANCE_ELEVATED: in GetIconForCommandId()333 return UpgradeDetector::GetInstance()->notify_upgrade(); in IsCommandIdVisible()
583 return (UpgradeDetector::GetInstance()->notify_upgrade()); in IsUpgradeRecommended()591 switch (UpgradeDetector::GetInstance()->upgrade_notification_stage()) { in GetUpgradeRecommendedBadge()592 case UpgradeDetector::UPGRADE_ANNOYANCE_SEVERE: in GetUpgradeRecommendedBadge()594 case UpgradeDetector::UPGRADE_ANNOYANCE_HIGH: in GetUpgradeRecommendedBadge()596 case UpgradeDetector::UPGRADE_ANNOYANCE_ELEVATED: in GetUpgradeRecommendedBadge()
101 UpgradeDetector::RegisterPrefs(local_state); in RegisterLocalState()
206 if (UpgradeDetector::GetInstance()->notify_upgrade()) { in OnChannelConnected()
631 if (UpgradeDetector::GetInstance()->notify_upgrade()) { in OnWrenchMenuButtonExpose()
546 if (UpgradeDetector::GetInstance()->notify_upgrade()) {