summaryrefslogtreecommitdiffstats
path: root/chrome/browser/upgrade_detector.h
Commit message (Collapse)AuthorAgeFilesLines
* When critical updates have been installed and the user has been idle for ↵finnur@chromium.org2011-10-131-6/+41
| | | | | | | | | | quite some time, show a bubble anchored to the wrench menu with a countdown clock for auto-restarting. BUG=97665 TEST=The testing for this is a bit too long-windy to describe here. Contact me for details. Review URL: http://codereview.chromium.org/8142028 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@105298 0039d316-1c4b-4281-b951-d872f2087c98
* Move ui/gfx/image* to ui/gfx/image/.rsesek@chromium.org2011-06-131-1/+1
| | | | | | | | | BUG=none TEST=ui_unittests Review URL: http://codereview.chromium.org/6995155 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@88852 0039d316-1c4b-4281-b951-d872f2087c98
* Refactor UpgradeDetector.xiyuan@chromium.org2011-06-121-29/+15
| | | | | | | | | | | | | | | | - Move peroidically timer based detection code into UpgradeDetectorImpl for use on non-ChromeOS platform; - Implement ChromeOS upgrade detection via UpdateLibrary observer and apply a slightly different advisory timing for showing the badges (show green arrow immediately on upgrade detected, then 2, 4, 7 days for yellow, red and orange color); BUG=chromium-os:16146 TEST=Verify fix for chromium-os:16146. Review URL: http://codereview.chromium.org/7046096 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@88800 0039d316-1c4b-4281-b951-d872f2087c98
* Make sure right badge shows up on the Wrench menu for Linux and Mac.finnur@chromium.org2011-05-031-3/+13
| | | | | | | | | | Also make sure the icon shows up on Linux and Mac (we were accidentally returning false from GetIconForCommandId, which works on Windows because we were not checking the return value). BUG=80647 TEST=Same as in http://codereview.chromium.org/6840038/, but for Linux and Mac. Review URL: http://codereview.chromium.org/6904129 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@83879 0039d316-1c4b-4281-b951-d872f2087c98
* Fix users of platform_util::GetVersionStringModifier that really only caremark@chromium.org2011-04-251-2/+2
| | | | | | | | | | | | | | | about the channel name to use the new platform_util::GetInstallationChannel. GetVersionStringModifier should only be used for display purposes. Use GetInstallationChannel to determine the channel name for comparisons. Fix the upgrade detector to treat the canary channel the same way that it treats the dev channel, using a shorter notification interval. BUG=79814 TEST=none Review URL: http://codereview.chromium.org/6899034 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@82888 0039d316-1c4b-4281-b951-d872f2087c98
* Change the upgrade reminder as time passes without user action.finnur@chromium.org2011-04-141-3/+26
| | | | | | | | | | | | | | | | | | | | Dev channel will show the green arrow badge on the Wrench menu after 1 hour, as before. For stable and beta, I'm changing it so that: After 2 days you get a green arrow. After 4 days you get an orange arrow. After 7 days you get a red arrow. After 14 days you get an exlamation point. Also make it use wall-clock time instead of ticks when calculating when to show the reminder. BUG=78406, 71202. TEST=Pass in --check-for-update-interval=10 as a command line into Chrome and when a new build is available the numbers above change into minutes (instead of hours). Note the part about the dev build above (it won't get more than a green arrow). Review URL: http://codereview.chromium.org/6840038 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@81598 0039d316-1c4b-4281-b951-d872f2087c98
* This is a continuation of http://codereview.chromium.org/5519016/, adds a ↵satish@chromium.org2010-12-091-2/+6
| | | | | | | | | | | | | new GetInstance() method for remaining files with singleton classes under chrome/browser. For types declared and used within the same .cc file, I changed them over to LazyInstance<T>. BUG=65298 TEST=all existing tests should continue to pass. Review URL: http://codereview.chromium.org/5711001 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@68739 0039d316-1c4b-4281-b951-d872f2087c98
* `#pragma once` for app, base, chrome, gfx, ipc, net, skia, viewsthakis@chromium.org2010-07-261-0/+1
| | | | | | | | | BUG=50273 TEST=everything still builds, build is 10% faster on windows, same speed on mac/linux TBR: erg git-svn-id: svn://svn.chromium.org/chrome/trunk/src@53716 0039d316-1c4b-4281-b951-d872f2087c98
* Linux/GTK: implement update notification.estade@chromium.org2010-06-031-5/+13
| | | | | | | | | BUG=45148 TEST=compile chrome with PRODUCT_VERSION manually set to something higher than the current version (e.g. 7.0.0.0), and manually set the upgrade detector time to something short (like 10 seconds). Launch chrome and wait a short time for the update notification to appear. The update notification should pulse every few seconds, and should stop pulsing when the user opens the wrench menu. The about menu item should launch a dialog that allows the user to restart chrome, restoring the current session. Review URL: http://codereview.chromium.org/2365003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@48795 0039d316-1c4b-4281-b951-d872f2087c98
* Implement upgrade notifications.finnur@chromium.org2010-05-261-0/+57
When we detect that the installed version is newer than the version you are running we show a little throbbing orange dot over the wrench menu. If you open the wrench menu and close it again, the throbbing will stop. However, if you look at the contents of the wrench menu you'll notice that the About box menu item has been removed and in its place is a menu item "Update Chrome Now" with a bright orange icon to draw your attention to it. Clicking on the icon shows a dialog box asking whether you want to restart Chrome. If you do, the browser restarts with your session restored (even if you have Session Restore turned off). Known issues: - Currently this is Windows only. We'll have to port this to Linux and do something differnet for Mac (which doesn't have the wrench menu). - Showing an icon in front of Update Chrome causes the checkbox for the bookmark bar menu to go away. Given that we will soon redesign the menus I'm not going to spend much time trying to fix it. BUG=27941 TEST=Wait for Chrome to be upgraded in the background, an orange dot should appear over the wrench menu and if you select Update Chrome your session should be retained. Review URL: http://codereview.chromium.org/2225003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@48318 0039d316-1c4b-4281-b951-d872f2087c98