summaryrefslogtreecommitdiffstats
path: root/chrome/browser/upgrade_detector.cc
Commit message (Collapse)AuthorAgeFilesLines
* Refactor version-getting info into a chrome::VersionInfo object.evan@chromium.org2010-08-271-5/+3
| | | | | | | | | | | | | | | I was trying to replace wstring usage in base::FileVersionInfo, but that class is rather Windows-specific with strange fields like "private_build()" where the value and encoding aren't clear. 95% of the users of FileVersionInfo actually just care about the current Chrome version, so we can provide a much simpler interface for them. We still use FileVersionInfo for retrieving information from e.g. plugin DLLs, but in those cases the usage is clearer. Review URL: http://codereview.chromium.org/3135028 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@57725 0039d316-1c4b-4281-b951-d872f2087c98
* Move prefs-related files under chrome/browser/ into a prefs/ subdir.evan@chromium.org2010-08-261-1/+1
| | | | | | | | | | | | Rename includes, resort header include order in places where the rename changed the order. BUG=50548 TEST=compiles Review URL: http://codereview.chromium.org/3203008 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@57434 0039d316-1c4b-4281-b951-d872f2087c98
* FBTF: Remove unneeded headers from base/ (part 3)thestig@chromium.org2010-08-061-1/+0
| | | | | | | | BUG=none TEST=none Review URL: http://codereview.chromium.org/3037044 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@55192 0039d316-1c4b-4281-b951-d872f2087c98
* base/ header cleanup. Forward declaration instead of including.erg@google.com2010-07-281-0/+1
| | | | | | | | | BUG=none TEST=none Review URL: http://codereview.chromium.org/3068004 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@53969 0039d316-1c4b-4281-b951-d872f2087c98
* Wording change for the upgrade detection mechanism and increase timer to ↵finnur@chromium.org2010-07-241-7/+3
| | | | | | | | | | | check daily (as opposed to every hour). BUG=50070 TEST=None (everything should work as before, with new wording for the upgrade reminder and a longer timer to trigger) Review URL: http://codereview.chromium.org/3009021 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@53577 0039d316-1c4b-4281-b951-d872f2087c98
* Cleanup: Break another common->app dependency.thestig@chromium.org2010-07-201-2/+4
| | | | | | | | BUG=46666 TEST=none Review URL: http://codereview.chromium.org/3007008 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@53113 0039d316-1c4b-4281-b951-d872f2087c98
* Make UpgradeDetector work on the Mac.mark@chromium.org2010-07-151-18/+27
| | | | | | | | | | This is the backend work only. There's no UI yet. BUG=45147 TEST=manual Review URL: http://codereview.chromium.org/3032001 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@52524 0039d316-1c4b-4281-b951-d872f2087c98
* Fix windows buildestade@chromium.org2010-06-151-3/+3
| | | | | | | | | | BUG=none TEST=compile TBR=michaeln Review URL: http://codereview.chromium.org/2808005 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@49825 0039d316-1c4b-4281-b951-d872f2087c98
* Avoid a crash when installed version info is not obtainable.estade@chromium.org2010-06-151-3/+12
| | | | | | | | | | | I'm pretty sure the problem is due to users downgrading to versions where --product-version is not available. See the bug for more details. BUG=46547 TEST=none Review URL: http://codereview.chromium.org/2813005 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@49824 0039d316-1c4b-4281-b951-d872f2087c98
* Linux/GTK: implement update notification.estade@chromium.org2010-06-031-44/+123
| | | | | | | | | 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
* Fix warning: Unused variable.finnur@chromium.org2010-05-271-2/+4
| | | | | | | | | | TBR=ananta BUG=None TEST=None Review URL: http://codereview.chromium.org/2225006 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@48369 0039d316-1c4b-4281-b951-d872f2087c98
* Make sure the upgrade notification only happens on the official build, not ↵finnur@chromium.org2010-05-271-4/+2
| | | | | | | | | | | | on Chromium. TBR=ben BUG=None TEST=None Review URL: http://codereview.chromium.org/2282005 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@48368 0039d316-1c4b-4281-b951-d872f2087c98
* Add initialization for a member variable.finnur@chromium.org2010-05-271-1/+3
| | | | | | | | | TEST=None BUG=None TBR=huanr Review URL: http://codereview.chromium.org/2283004 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@48363 0039d316-1c4b-4281-b951-d872f2087c98
* Implement upgrade notifications.finnur@chromium.org2010-05-261-0/+96
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