summaryrefslogtreecommitdiffstats
path: root/chrome/app
Commit message (Collapse)AuthorAgeFilesLines
* Retry landing the chrome-as-chromeos-login-manager changecmasone@google.com2009-12-141-0/+2
| | | | | | | Old CL: http://codereview.chromium.org/449023 Review URL: http://codereview.chromium.org/488007 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@34463 0039d316-1c4b-4281-b951-d872f2087c98
* Add image to fix builddavemoore@chromium.org2009-12-111-0/+0
| | | | | | Review URL: http://codereview.chromium.org/491048 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@34354 0039d316-1c4b-4281-b951-d872f2087c98
* Creating new CL for uploading a picture from ChromiumOSdavemoore@chromium.org2009-12-111-0/+1
| | | | | | | | | TEST=none BUG=none Review URL: http://codereview.chromium.org/452016 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@34351 0039d316-1c4b-4281-b951-d872f2087c98
* .png assets that the chrome-login-for-chromeos change relies uponcmasone@google.com2009-12-103-0/+0
| | | | | | Review URL: http://codereview.chromium.org/491012 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@34295 0039d316-1c4b-4281-b951-d872f2087c98
* Only load resources for renderer, extension, and zygote processestony@chromium.org2009-12-101-9/+29
| | | | | | | | | | | | (and plugins processes on Windows). We used to always try to load them, even if we didn't use them. It would work fine if an update happened (because we didn't use them) and the files were replaced. Review URL: http://codereview.chromium.org/487001 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@34292 0039d316-1c4b-4281-b951-d872f2087c98
* Linux: Adjust /proc/pid/oom_adj to sacrifice plugin and renderer processes ↵thestig@chromium.org2009-12-101-0/+37
| | | | | | | | | | to the OOM killer. BUG=29752 TEST=During out of memory conditions, Linux kernel picks a plugin/renderer over the browser process. Review URL: http://codereview.chromium.org/467058 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@34222 0039d316-1c4b-4281-b951-d872f2087c98
* Linux: Implement RecordBreakpadStatusUMA.thestig@chromium.org2009-12-102-0/+8
| | | | | | | | BUG=21732 TEST=none Review URL: http://codereview.chromium.org/489002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@34220 0039d316-1c4b-4281-b951-d872f2087c98
* Share the code that builds the page menu in a common model, make Mac and Win ↵pinkerton@chromium.org2009-12-091-655/+55
| | | | | | | | | | use it. Implement a mac menu controller that takes this model and generates an NSMenu. Remove the Page Menu NSMenu from Toolbar.xib since it's now created in code. BUG=22646 TEST=page menu should work as before Review URL: http://codereview.chromium.org/465130 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@34179 0039d316-1c4b-4281-b951-d872f2087c98
* Chromium: support custom WebCore context menu items in Chromium port ↵pfeldman@chromium.org2009-12-091-0/+4
| | | | | | | | (downstream). Review URL: http://codereview.chromium.org/465123 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@34154 0039d316-1c4b-4281-b951-d872f2087c98
* Revert 34134 - Viewsbased login window for Chrome OS. Doesn't yet actually ↵jrg@chromium.org2009-12-094-2/+0
| | | | | | | | | | | do anything Review URL: http://codereview.chromium.org/449023 TBR=cmasone@google.com Review URL: http://codereview.chromium.org/467060 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@34135 0039d316-1c4b-4281-b951-d872f2087c98
* Views-based login window for Chrome OS. Doesn't yet actually do anythingcmasone@google.com2009-12-094-0/+2
| | | | | | Review URL: http://codereview.chromium.org/449023 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@34134 0039d316-1c4b-4281-b951-d872f2087c98
* Add Cocoa window interposing for plugin processstuartmorgan@chromium.org2009-12-081-4/+4
| | | | | | | | | | | | | | Adds support for noticing window show/hide done via Cocoa APIs. Also adds interposing on a couple more Carbon calls that I came across while debugging. Refactors to make things a bit less messy: - Moves responsibility for re-activating the browser when the last plugin window closes into the browser, to simplify that logic. - Moves utility method for activating the plugin process into the plugin, rather than the interpose library, so the Cocoa code can use it too. - Add a data-holder and a couple of wrapper methods to reduce code duplication in the window show/hide handling. BUG=28009, 29321 TEST=Plugin-opened windows (Gmail attachments, full-screen Flash, etc.) should work as expected again. Review URL: http://codereview.chromium.org/465111 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@34074 0039d316-1c4b-4281-b951-d872f2087c98
* Stick tcmalloc heap stats on the stack before crashing due to OOMjamesr@chromium.org2009-12-071-0/+18
| | | | | | | | | | | | | This should make diagnosing OOM crashes a lot easier. TEST=manually force OOM, check the stack BUG=29351 Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=33878 (reverted at 33879) Review URL: http://codereview.chromium.org/462030 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@33993 0039d316-1c4b-4281-b951-d872f2087c98
* Mac: implement "Search the Web..." (Opt-Cmd-F).viettrungluu@chromium.org2009-12-072-6/+53
| | | | | | | | | | | | | | This focuses the Omnibox with '?' in the contents with the text insertion point immediately after (and no selection), unless the Omnibox already has something beginning with '?' in which case it selects the text after the '?'. This is what Ctrl-K does on other platforms. On the Mac, we get a menu item (under Edit -> Find), and the Mac-standard shortcut of Opt-Cmd-F (users can set Cmd-K as a short cut in System Preferences if they really want). Changes to MainMenu.xib: added ^IDS_EDIT_SEARCH_WEB_MAC menu item ("Search the Web...", tag 39002, Opt-Cmd-F as keyboard shortcut, sending -commandDispatch: to first responder) as first item in Find submenu, followed by a separator. BUG=29501 TEST=Check that this feature has the behaviour described above (using both the menu item and using Opt-Cmd-F), with (1) nothing in the Omnibox to begin with, (2) a random URL in the Omnibox, and (3) "?<some search term(s)>". Check that the Omnibox is properly focused (so set focus to various places, and make sure that the Omnibox gets focused). Review URL: http://codereview.chromium.org/460111 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@33971 0039d316-1c4b-4281-b951-d872f2087c98
* [Mac] Implement font and encoding settings in Under the Hood preferencesrsesek@chromium.org2009-12-072-57/+2032
| | | | | | | | | | | | | * Font settings can now be changed for serif, sans serif, and fixed width. * The default encoding can now be changed via preferences. * Language settings are not yet implemented. See http://crbug.com/23828 BUG=20845 TEST=Chromium-->Preferences-->Under the Hood-->Change font and language settings Review URL: http://codereview.chromium.org/461005 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@33963 0039d316-1c4b-4281-b951-d872f2087c98
* Bookmark sync windows for non-English locales were too short, cutting off ↵mirandac@chromium.org2009-12-0552-52/+52
| | | | | | | | | | | the bottom button. BUG= 29447 TEST= sync bookmarks in a non-English locale; window should not be too short. Review URL: http://codereview.chromium.org/467025 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@33907 0039d316-1c4b-4281-b951-d872f2087c98
* Spruce up the notification UI to much more closely match the mocks, ↵johnnyg@chromium.org2009-12-057-1/+5
| | | | | | | | | | | | | including a new stylesheet from Glen for text+icon notifications, and little icons for the buttons. Part of the CL includes new features for TextButton class to control icon placement and appearance on hover. BUG=none TEST=notifications Review URL: http://codereview.chromium.org/450045 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@33899 0039d316-1c4b-4281-b951-d872f2087c98
* POSIX: sanitise signal handling state at startup.agl@chromium.org2009-12-051-0/+16
| | | | | | | | BUG=29279 http://codereview.chromium.org/467028 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@33897 0039d316-1c4b-4281-b951-d872f2087c98
* Reap the crash report uploader process.thestig@chromium.org2009-12-051-0/+1
| | | | | | | | BUG=29459 TEST=see bug. Review URL: http://codereview.chromium.org/465080 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@33896 0039d316-1c4b-4281-b951-d872f2087c98
* Linux: Record the list of plugins loaded in browser process crash reports.thestig@chromium.org2009-12-043-0/+58
| | | | | | | | BUG=none TEST=none Review URL: http://codereview.chromium.org/459015 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@33888 0039d316-1c4b-4281-b951-d872f2087c98
* Update translations.mal@chromium.org2009-12-04102-338/+8022
| | | | | | | | | TBR= tc BUG= none TEST= none Review URL: http://codereview.chromium.org/463036 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@33883 0039d316-1c4b-4281-b951-d872f2087c98
* Revert 33878 - Stick tcmalloc heap stats on the stack before crashing due to OOMjamesr@chromium.org2009-12-041-11/+0
| | | | | | | | | | | | | | This should make diagnosing OOM crashes a lot easier. TEST=manually force OOM, check the stack BUG=29351 Review URL: http://codereview.chromium.org/462030 TBR=jamesr@chromium.org Review URL: http://codereview.chromium.org/460084 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@33879 0039d316-1c4b-4281-b951-d872f2087c98
* Stick tcmalloc heap stats on the stack before crashing due to OOMjamesr@chromium.org2009-12-041-0/+11
| | | | | | | | | | | This should make diagnosing OOM crashes a lot easier. TEST=manually force OOM, check the stack BUG=29351 Review URL: http://codereview.chromium.org/462030 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@33878 0039d316-1c4b-4281-b951-d872f2087c98
* Add nacl .globl symbols to framework.order.jrg@chromium.org2009-12-041-0/+4
| | | | | | | | TBR=mark@chromium.org, thomasvl@chromium.org Review URL: http://codereview.chromium.org/464046 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@33871 0039d316-1c4b-4281-b951-d872f2087c98
* Fix truncation in Options panel for various locales.finnur@chromium.org2009-12-0413-21/+21
| | | | | | | | | | | | | | (Got permission to check this in on a closed tree, since this won't affect the tree). BUG=24821 TEST=Manual inspection on XP should reveal no truncation in first two tabs of the Options panel for locales listed in bug (see CL for --lang=xx values). Review URL: http://codereview.chromium.org/460076 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@33834 0039d316-1c4b-4281-b951-d872f2087c98
* Add support for 64-bit Windows build: base and chrome/appgregoryd@google.com2009-12-042-1/+5
| | | | | | | | | | | This is required to support Native Client on 64-bit Windows. Native Client will use a small 64-bit executable to load NaCl modules on 64-bit Windows. This 64-bit executable will use Chrome code, but some functionality has to be removed to minimize dependencies. This functionality may be enabled later if we decide that it is necessary. TEST=None BUG=28176 Review URL: http://codereview.chromium.org/371073 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@33823 0039d316-1c4b-4281-b951-d872f2087c98
* List the gcov symbols to get the mac code coverage bot happy.thomasvl@chromium.org2009-12-041-0/+17
| | | | | | | | TEST=code coverage bot doesn't compile fail on verify_order. BUG=none Review URL: http://codereview.chromium.org/464036 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@33820 0039d316-1c4b-4281-b951-d872f2087c98
* Make bookmark sync menu item use title case.pinkerton@chromium.org2009-12-041-6/+13
| | | | | | | | BUG=none TEST=none Review URL: http://codereview.chromium.org/468006 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@33817 0039d316-1c4b-4281-b951-d872f2087c98
* Fix download dialog truncation in German locale.finnur@chromium.org2009-12-0452-0/+110
| | | | | | | | | BUG=23178 TEST=Requires manual inspection for text trunction on --lang=de (when closing Chrome while downloading) Review URL: http://codereview.chromium.org/465041 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@33798 0039d316-1c4b-4281-b951-d872f2087c98
* Mac: remove hacky way the New Tab button is obtained from the nib.viettrungluu@chromium.org2009-12-041-4/+16
| | | | | | | | | | | | | | | I added a member variable and an accessor/mutator ... and hooked up that up in the nib. Changes to BrowserWindow.xib: hook up the New Tab button to |newTabButton| in TabBar. Unit test fixed. Previously committed at r33758, reverted at r33761. BUG=none TEST=Make sure it builds, runs, and that the New Tab button still works. Review URL: http://codereview.chromium.org/460058 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@33771 0039d316-1c4b-4281-b951-d872f2087c98
* Revert 33758 - Mac: remove hacky way the New Tab button is obtained from the ↵viettrungluu@chromium.org2009-12-041-16/+4
| | | | | | | | | | | | | | | | | | nib. I added a member variable and an accessor/mutator ... and hooked up that up in the nib. Changes to BrowserWindow.xib: hook up the New Tab button to |newTabButton| in TabBar. BUG=none TEST=Make sure it builds, runs, and that the New Tab button still works. Review URL: http://codereview.chromium.org/465042 TBR=viettrungluu@chromium.org Review URL: http://codereview.chromium.org/465045 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@33761 0039d316-1c4b-4281-b951-d872f2087c98
* Mac: remove hacky way the New Tab button is obtained from the nib.viettrungluu@chromium.org2009-12-041-4/+16
| | | | | | | | | | | | | I added a member variable and an accessor/mutator ... and hooked up that up in the nib. Changes to BrowserWindow.xib: hook up the New Tab button to |newTabButton| in TabBar. BUG=none TEST=Make sure it builds, runs, and that the New Tab button still works. Review URL: http://codereview.chromium.org/465042 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@33758 0039d316-1c4b-4281-b951-d872f2087c98
* Implement "Email Link To Page" menu command.snej@chromium.org2009-12-032-6/+17
| | | | | | | | | | | | | | | | | | | This menu item only exists in the Mac build, but the code is cross-platform so it could be hooked up on other platforms as well, if desired. It works by generating a URL of the form mailto:?subject=Fwd:%20PAGETITLE&body=%0A%0APAGEURL and telling platform_utils to open it. This is my first patch involving command handling; I've tried to follow the way similar menu commands like Print are implemented, but feel free to tell me if there are better ways. I didn't find any place for unit tests for TabContents; if this needs tests, let me know where they should go. BUG=29232 TEST=none Review URL: http://codereview.chromium.org/466019 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@33746 0039d316-1c4b-4281-b951-d872f2087c98
* Make no-tcmalloc (really, non-base/allocator) builds work again,dank@chromium.org2009-12-031-4/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | (i.e. this is a plain vanilla build used when layers like base/allocator are getting in the way of debugging) and make sure they use msvcrt rather than libcmt (libcmt is used to help shim malloc/free, but it gets in the way of valgrind doing the same thing). Sadly, this is now a gyp-time operation rather than a Configuration option. Had to remove hardcoded C prototype for _set_new_mode, as that caused link errors. Also add variables win_{release,debug}_{Optimization,RuntimeLibrary} to let the valgrind build override those settings. Fix calling convention on _set_new_mode to match the one in <new.h> BUG=none TEST=build with ~/.gyp/include.gypi set as described in comment in common.gypi, gclient runhooks, do release build, verify all exe's and dll's linked against msvcrt dll Review URL: http://codereview.chromium.org/455037 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@33719 0039d316-1c4b-4281-b951-d872f2087c98
* Add regex escaping code to Mac sandbox implementation and re-enable the ↵jeremy@chromium.org2009-12-031-2/+7
| | | | | | | | | | | | | | | utility process on OS X. Other changes: * An error initializing the sandbox on OS X is now treated as fatal. * Improved error reporting for sandbox-related failures. BUG=26492,23837 TEST=Installing extensions and themes should still work on OS X. Review URL: http://codereview.chromium.org/434077 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@33682 0039d316-1c4b-4281-b951-d872f2087c98
* Remove a unused message, IDS_DEFAULT_BROWSER_INFOBAR_TEXT.hayato@chromium.org2009-12-032-6/+0
| | | | | | | | | TEST=None BUG=28909 Review URL: http://codereview.chromium.org/463002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@33664 0039d316-1c4b-4281-b951-d872f2087c98
* Basic console output for diagnostics mode windows-onlycpu@chromium.org2009-12-031-0/+7
| | | | | | | | | | | | Also Wires --diagnostics to the diagnostics entry point start chrome with --diagnostics and watch pretty output BUG=27885 TEST= unit tests included Review URL: http://codereview.chromium.org/454020 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@33663 0039d316-1c4b-4281-b951-d872f2087c98
* Linux: Uptime in Breakpad is measured in milliseconds.thestig@chromium.org2009-12-021-29/+66
| | | | | | | | BUG=none TEST=Crashes report uptime in milliseconds instead of seconds. Review URL: http://codereview.chromium.org/463004 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@33616 0039d316-1c4b-4281-b951-d872f2087c98
* Fix crash reporting on Windows.aa@chromium.org2009-12-021-1/+3
| | | | | | | | BUG=29217 Review URL: http://codereview.chromium.org/460028 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@33614 0039d316-1c4b-4281-b951-d872f2087c98
* Ok, here is a different approach at this change.aa@chromium.org2009-12-022-65/+80
| | | | | | | | | | | | Instead of storing pointers into a vector, store offsets. That way, if the vector resizes, we should still be OK. Also, add a DCHECK that we only enter this method once, which is my current assumption. Review URL: http://codereview.chromium.org/457028 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@33541 0039d316-1c4b-4281-b951-d872f2087c98
* Linux: Use upstream google-breakpad instead of our fork.thestig@chromium.org2009-12-021-5/+5
| | | | | | | | BUG=28276 TEST=dump_syms works with ToT Chrome. Review URL: http://codereview.chromium.org/414049 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@33534 0039d316-1c4b-4281-b951-d872f2087c98
* Use new CJK Vista fonts for DOM UI by listing them in IDS_WEB_FONT_FAMILY ↵jshin@chromium.org2009-12-014-5/+8
| | | | | | | | | | | | | | | before the old CJK Win fonts (available on Win XP, Vista / 7). Vista fonts are better looking that the old CJK fonts. Also, list Arial at the beginning so that Arial is used for the 'ASCII portion' than not-so-nice glyphs for the ASCII portion in CJK fonts. BUG=NONE TEST=1. On Win Vista/7, run Chrome with '--lang=zh-CN' (zh-TW, ja and ko). The font in DOM UI (history, download, new tab) look nicer than on WIn XP. 2. Even on XP, the ASCII portion (Latin letters and numbers) in CJK Chrome looks nicer than before in DOM UI pages. Review URL: http://codereview.chromium.org/437071 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@33504 0039d316-1c4b-4281-b951-d872f2087c98
* Mark the help menu as such so Cocoa adds the search item.thomasvl@chromium.org2009-12-011-5/+15
| | | | | | | | BUG=28987 TEST=set lang to french, launch, the help menu should have search option on 10.6 Review URL: http://codereview.chromium.org/452011 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@33450 0039d316-1c4b-4281-b951-d872f2087c98
* Replace programmer art with ui-team sanctioned icon for the multidownload ↵thakis@chromium.org2009-12-011-0/+0
| | | | | | | | | | infobar. BUG=TEST=none. Review URL: http://codereview.chromium.org/453011 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@33425 0039d316-1c4b-4281-b951-d872f2087c98
* Change the default sans-serif font back to Simsun from Simhei. Simhei is ↵jshin@chromium.org2009-12-011-1/+1
| | | | | | | | | | | | | more like sans-serif while Simsun is more like serif, but a lot of pages just specify 'arial, sans-serif' and SC Chrome ends up using Simhei which is less liked by SC speakers than Simsun. We'll reconsider this later. At least for Chrome 4, we'd better do what we used to do. BUG=28498 TEST=NONE TBR=laforge Review URL: http://codereview.chromium.org/456017 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@33399 0039d316-1c4b-4281-b951-d872f2087c98
* Adds link to bookmark bar that when clicked imports bookmarks. I alsosky@chromium.org2009-11-301-1/+4
| | | | | | | | | | | | added support for baselines to GridLayout. BUG=4374 TEST=On a new profile make sure the bookmark bar has a link to import bookmarks, click the link and make sure you can import your bookmarks. Review URL: http://codereview.chromium.org/440029 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@33336 0039d316-1c4b-4281-b951-d872f2087c98
* Revert 33255 - Report active extensions in crash reports. This only ↵nsylvain@chromium.org2009-11-302-69/+50
| | | | | | | | | | | | | | | | | | | | | | | | | | | implements Windows right now. Mac and linux will be separate CLs. "Active" is overloaded to mean different things depending on the process type: browser: all enabled extensions renderer: unique set of extensions from all user scripts extension: extensions running in the process BUG=27169 Review URL: http://codereview.chromium.org/437078 -- There are thousands of new crashes with reivison 33256 and 33255, so i'm reverting. the crashes are in chrome_2610000!child_process_logging::SetActiveURL TBR=aa@chromium.org Review URL: http://codereview.chromium.org/448006 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@33269 0039d316-1c4b-4281-b951-d872f2087c98
* Report active extensions in crash reports. This only implements Windows ↵aa@chromium.org2009-11-302-50/+69
| | | | | | | | | | | | | | | | | right now. Mac and linux will be separate CLs. "Active" is overloaded to mean different things depending on the process type: - browser: all enabled extensions - renderer: unique set of extensions from all user scripts - extension: extensions running in the process BUG=27169 Review URL: http://codereview.chromium.org/437078 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@33255 0039d316-1c4b-4281-b951-d872f2087c98
* In-application Keystone ticket promotion.mark@chromium.org2009-11-285-917/+1107
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The concept of "ticket promotion" is added to the application when Keystone is in use. Ticket promotion is used to turn a user Keystone ticket, which Chrome normally establishes when it launches, into a system Keystone ticket, after successful user authentication and authorization. Having a system Keystone with a system ticket means that updates are applied with root privileges instead of user privileges, essentially eliminating the possibility that a user will fall off of the auto-update train because they can read and execute but not write the application. Two principles of promotion apply: - An application on a user ticket NEEDS promotion if it determines that it doesn't have permission to write to itself. Being on a user ticket, an update attempt would fail. - An application on a user ticket WANTS promotion if it already NEEDS promotion. Additionally, if it is installed in a system-wide location such as /Applications, it will WANT promotion, even if it does not NEED it. If promotion is needed, an info bar will show up on launch requesting it. This info bar works similarly to the default browser info bar: it has a "don't bother me again" button, it will only show up after the first launch, it won't disappear on navigation if the navigation happens very quickly, and it won't show itself if another info bar is up. This means that if both the default browser info bar and the promotion info bar have a shot at showing, only one will win. In my experience, each wins about half of the time. If promotion is needed, the update UI in the About window will be hidden. Checking for updates and offering to apply them doesn't make much sense when the update won't be able to install successfully. All of the auto-update machinery is still working in the background, but the About window UI is hidden. If promotion is wanted, the About window will contain a new button allowing the user to enter promotion. This gives access to the same promotion routine as the promotion info bar. It can be used even from an administrative account that is able to update the application without promotion. It's intended to be used by the system administrator of the family without requiring them to switch to one of the kids' accounts. BUG=16360 TEST=Exhaustively, please. Review URL: http://codereview.chromium.org/437053 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@33241 0039d316-1c4b-4281-b951-d872f2087c98
* Enable TCMalloc on Linux by default.willchan@chromium.org2009-11-251-0/+18
| | | | | | | | | | This change also reworks the tcmalloc dependency to be added only to chrome and test_shell, instead of base. This is necessary since otherwise tcmalloc will be double initialized (by both the main executable and dlopen'd shared objects like the npapitestplugin.so). Add valgrind suppressions. This are invalid reads on static initialization in the VDSOSupport module. I haven't investigated it yet, but I suspect they're benign. BUG=http://crbug.com/28149, http://crbug.com/28385 Review URL: http://codereview.chromium.org/399081 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@33010 0039d316-1c4b-4281-b951-d872f2087c98