summaryrefslogtreecommitdiffstats
path: root/chrome/app/chrome_dll_main.cc
Commit message (Collapse)AuthorAgeFilesLines
* Linux/GTK: implement update notification.estade@chromium.org2010-06-031-0/+11
| | | | | | | | | 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
* Enable warning 4389 as an error on windows builds. This will make mbelshe@chromium.org2010-05-271-2/+2
| | | | | | | | | | | | windows builds more similar to linux/mac, which already treat signed/ unsigned equality comparisons as warnings (and hence errors). BUG=44471 TEST=none Review URL: http://codereview.chromium.org/2222002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@48395 0039d316-1c4b-4281-b951-d872f2087c98
* Revert "Another dependency the bbot missed!!!"rafaelw@chromium.org2010-05-261-2/+2
| | | | | | | | | | | | | | | | | | This reverts commit 161f7fd3bdd425167af9fe26fdc5373a2ff44c98. Revert "Missed a file as part of checkin for r48186" This reverts commit cff86beba5938209393a6c3bccced62a7f3ff36b. Revert "Enable warning 4389 as an error on windows builds. This will make" This reverts commit c78936bcfc65b98edf288191d927a495b0364621. TBR=mbelshe Review URL: http://codereview.chromium.org/2253001 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@48238 0039d316-1c4b-4281-b951-d872f2087c98
* Enable warning 4389 as an error on windows builds. This will makembelshe@chromium.org2010-05-251-2/+2
| | | | | | | | | | | | windows builds more similar to linux/mac, which already treat signed/ unsigned equality comparisons as warnings (and hence errors). BUG=44471 TEST=none Review URL: http://codereview.chromium.org/2081007 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@48186 0039d316-1c4b-4281-b951-d872f2087c98
* Call mac_util::SerOverrideAppBundlePath before invoking DiagnosticsMain for ↵csilv@chromium.org2010-05-251-7/+7
| | | | | | | | | | | | | | | Mac builds. This fixes any tests that rely on the bundle paths. (Currently this affects the 'Inspector Directory' test. BUG=none TEST=Launch Mac client from command line with --diagnostics switch. The 'Inspector Directory' test should pass. Review URL: http://codereview.chromium.org/2107017 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@48165 0039d316-1c4b-4281-b951-d872f2087c98
* - Made the writing of boot times happen on the file thread.davemoore@chromium.org2010-05-191-6/+5
| | | | | | | | | | | | | - Also combined two different ways of writing these times into common code. - Tweaked the color / font of the output BUG=NONE TEST=Ensure that boot times still display on login screen. Review URL: http://codereview.chromium.org/2112006 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@47682 0039d316-1c4b-4281-b951-d872f2087c98
* Remove a performance trace that seems to have caused a perf regression on ↵siggi@chromium.org2010-05-131-5/+0
| | | | | | | | | | | XP, presumably because initializing ETW on Windows XP is somewhat expensive. BUG=44109 TEST=XP page cycler buildbot should un-regress. Review URL: http://codereview.chromium.org/2102002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@47192 0039d316-1c4b-4281-b951-d872f2087c98
* Fixed Linux build.sanjeevr@chromium.org2010-05-121-4/+2
| | | | | | | | | BUG=None. TEST=Buildbots. TBR=darin Review URL: http://codereview.chromium.org/2014014 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@47059 0039d316-1c4b-4281-b951-d872f2087c98
* Created a new process type called the service process to host background ↵sanjeevr@chromium.org2010-05-121-2/+14
| | | | | | | | | | tasks such as the Cloud Print Proxy. BUG=None. TEST=None. Review URL: http://codereview.chromium.org/2001009 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@47055 0039d316-1c4b-4281-b951-d872f2087c98
* Instrument Chrome and Chrome Frame for some perf measurements.siggi@chromium.org2010-05-101-0/+5
| | | | | | | | | BUG=none TEST=none Review URL: http://codereview.chromium.org/1989005 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@46812 0039d316-1c4b-4281-b951-d872f2087c98
* Fix Chrome build break when building inside of x86-generic chroot.scherkus@chromium.org2010-05-061-5/+6
| | | | | | | | | BUG=none TEST=chromeos-base/chromeos-chrome builds inside of x86-generic chroot. Review URL: http://codereview.chromium.org/1998007 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@46604 0039d316-1c4b-4281-b951-d872f2087c98
* Allows browser tests to run with recent changedavemoore@chromium.org2010-05-061-2/+4
| | | | | | | | | http://codereview.chromium.org/2003001 broke browser tests for login / wizard screens. This fixes them. Review URL: http://codereview.chromium.org/1995005 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@46575 0039d316-1c4b-4281-b951-d872f2087c98
* Add time for when chrome's main() is called.davemoore@chromium.org2010-05-051-1/+5
| | | | | | | | Also output chrome's time to launch on the login screen. Review URL: http://codereview.chromium.org/2003001 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@46526 0039d316-1c4b-4281-b951-d872f2087c98
* Add --enable-nacl switch that enables both NaCl and GPU plugins.gregoryd@google.com2010-03-261-0/+7
| | | | | | | | | BUG=38554 TEST=nacl_ui_tests Review URL: http://codereview.chromium.org/1445001 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@42829 0039d316-1c4b-4281-b951-d872f2087c98
* Linux: fix SELinux support.agl@chromium.org2010-03-171-2/+3
| | | | | | | | (First of a series to improve our SELinux support) http://codereview.chromium.org/1000008 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@41867 0039d316-1c4b-4281-b951-d872f2087c98
* Run NaCl itself in Chromium's Linux sandboxmseaborn@chromium.org2010-03-091-1/+12
| | | | | | | | | | | | | | | | This is achieved by forking the NaCl loader process (Chromium's compiled-in sel_ldr) from the Zygote process. This leaves the sel_ldr with a little excess authority, because it has access to the IPC methods (e.g. for fonts) implemented in render_sandbox_host_linux.cc. BUG=36676 TEST=nacl_ui_tests Review URL: http://codereview.chromium.org/669274 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@41056 0039d316-1c4b-4281-b951-d872f2087c98
* Zygote: Clarify relationship between HandleForkRequest() and ChromeMain()mseaborn@chromium.org2010-03-081-0/+1
| | | | | | | | | | | | | | HandleForkRequest() returns to ChromeMain() multiple times, once per fork(). Add comments to indicate this, because this type of control flow is unusual. HandleReapRequest() and HandleDidProcessCrash() never spawn a new renderer, so remove the possibility that these can do "return true" to do so. Review URL: http://codereview.chromium.org/669065 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@40894 0039d316-1c4b-4281-b951-d872f2087c98
* Pulls the latest googleurl to get the fix forbrettw@chromium.org2010-03-061-0/+6
| | | | | | | | | | | | | | | | BUG=http://crbug.com/160 and integrates the update to IsStandard in that version. Adds several internal schemes as "standard" and initializes them at startup. Fixes a few hardcoded URL schemes I noticed. Make typing "//foo" into the URL bar treat slashes in "strict" mode on Windows, which means we'll only accept UNC if you use backslashes. This matches IE's behavior. BUG=http://crbug.com/33038 TEST=covered by unit tests git-svn-id: svn://svn.chromium.org/chrome/trunk/src@40818 0039d316-1c4b-4281-b951-d872f2087c98
* [Mac] Use the process type to tweak the name showed in Activity Montior to ↵thomasvl@chromium.org2010-02-261-0/+31
| | | | | | | | | | better label what process it is. BUG=none TEST=Don't see "Helper" in actvitiy monitor. Review URL: http://codereview.chromium.org/660140 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@40123 0039d316-1c4b-4281-b951-d872f2087c98
* linux: fix warning message that was bugging meevan@chromium.org2010-02-261-1/+1
| | | | | | | | (It lacked a space after the process type.) Review URL: http://codereview.chromium.org/661180 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@40116 0039d316-1c4b-4281-b951-d872f2087c98
* Give Mac plugin processes descriptive names for Activity Monitorstuartmorgan@chromium.org2010-02-241-1/+2
| | | | | | | | | BUG=none TEST=Open Activity Monitor, and visit a page with a plugin. The plugin process should show the name of the plugin. Review URL: http://codereview.chromium.org/659007 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@39950 0039d316-1c4b-4281-b951-d872f2087c98
* Implement the broker process that launches NaCl loader processes on 64-bit ↵gregoryd@google.com2010-02-011-3/+7
| | | | | | | | | | | | Windows systems. BUG=28176 TEST=none Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=37578 Review URL: http://codereview.chromium.org/542030 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@37720 0039d316-1c4b-4281-b951-d872f2087c98
* BSD port: chrome/app and chrome/browser ifdef cleaningpvalchev@google.com2010-02-011-7/+10
| | | | | | Review URL: http://codereview.chromium.org/548203 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@37714 0039d316-1c4b-4281-b951-d872f2087c98
* Revert 37578 - Implement the broker process that launches NaCl loader ↵gregoryd@google.com2010-01-301-7/+3
| | | | | | | | | | | | processes on 64bit Windows systems. BUG=28176 TEST=none Review URL: http://codereview.chromium.org/542030 TBR=gregoryd@google.com git-svn-id: svn://svn.chromium.org/chrome/trunk/src@37580 0039d316-1c4b-4281-b951-d872f2087c98
* Implement the broker process that launches NaCl loader processes on 64-bit ↵gregoryd@google.com2010-01-301-3/+7
| | | | | | | | | | Windows systems. BUG=28176 TEST=none Review URL: http://codereview.chromium.org/542030 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@37578 0039d316-1c4b-4281-b951-d872f2087c98
* Create initial GPU backing store in the GPU process for X windows applications.brettw@chromium.org2010-01-261-1/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | This gets the window from the RenderWidgetHostViewGtk and just does OpenGL calls directly into it. There are a lot of bugs, especially around expose events, which aren't really processed at all, and also tab teardown and reparenting. The new backing store defaults to off. This does some refactoring of the existing Windows GPU process backing store implementation to make some of it sharable by this Linux verion. This removes some previously defunct in-process GL backing store code and moves it to the GPU process. This patch does some refactoring around how child processes are created using zygoes or not. I found there were many places where a command line would be checked with special logic to know whether to enable zygote code or not. I tried to unify this so it could be computed once for each process type. This is what most of the changed files in chrome/browser are related to. BUG=none TEST=none Review URL: http://codereview.chromium.org/548112 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@37088 0039d316-1c4b-4281-b951-d872f2087c98
* Linux: Add Certificate Info dialog (part 1)mattm@chromium.org2010-01-141-1/+1
| | | | | | | | | | | Rename base/nss_init.{h,cc} to base/nss_util.{h,cc}, move PRTimeToBaseTime there. BUG=18119 TEST=Load https://www.google.com, compare to firefox cert dialog. Review URL: http://codereview.chromium.org/500141 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@36291 0039d316-1c4b-4281-b951-d872f2087c98
* Add the ability for the GPU process to be used to paint the backing store of abrettw@chromium.org2010-01-131-0/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | tab. This is the first pass and is currently a bit buggy and incomplete. This patch refactors the backing store to make it a virtual interface which is then implemented by the platform-specific backing stores. This cleans up the multi-platform aspects of the old code, and also makes it possible to create different backing stores (such as ones in another process). This renames the BackingStore::PaintRect function to PaintToBackingStore which clears up what it does. I would often get confused and think that it paints the backing store to the screen. This makes a common way to capture backing store information and adds it to the backing store API. This removed a bunch of ugly ifdefs. This adds the ability for a backing store to specify that the TransportDIB should not be freed by RenderWidgetHost when painting is complete. This is necessary since the out-of-process version needs to use it after the RenderWidget paint function has returned. This pushes up the vector of copy_rect from RenderWidgetHost to the actual BackingStores. This prevents us from sending duplicate data over IPC. It also makes the common non-IPC case more efficient, since we end up setting up various surfaces only once when there are multiple update rects. BUG=none TEST=none Review URL: http://codereview.chromium.org/523028 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@36075 0039d316-1c4b-4281-b951-d872f2087c98
* Reland: Add a minimum_chrome_version key to the manifest.aa@chromium.org2010-01-061-1/+2
| | | | | | | BUG=24737 TBR=mpcomplete@chromium.org git-svn-id: svn://svn.chromium.org/chrome/trunk/src@35618 0039d316-1c4b-4281-b951-d872f2087c98
* Revert 35602 - Add a "minimum_chrome_version" key to the manifest.arv@chromium.org2010-01-061-2/+1
| | | | | | | | | | | | | Broke unit_test on Mac10.5 Tests (dbg)(1) BUG=24737 Review URL: http://codereview.chromium.org/521036 TBR=aa@chromium.org Review URL: http://codereview.chromium.org/527003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@35604 0039d316-1c4b-4281-b951-d872f2087c98
* Add a "minimum_chrome_version" key to the manifest.aa@chromium.org2010-01-061-1/+2
| | | | | | | | BUG=24737 Review URL: http://codereview.chromium.org/521036 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@35602 0039d316-1c4b-4281-b951-d872f2087c98
* linux: make --no-sandbox workpiman@chromium.org2010-01-041-1/+1
| | | | | | Review URL: http://codereview.chromium.org/515019 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@35474 0039d316-1c4b-4281-b951-d872f2087c98
* Speculative fix for a chrome browser crash which occurs with ChromeFrame. ↵ananta@chromium.org2009-12-151-2/+0
| | | | | | | | | | | | | | | | | | | | Based on the crash dump, the crash occurs when the external tab container is being destroyed which in turn takes down the automation provider and the channel, etc. All this occurs in the context of OleUninitialize, which executes after BrowserMain returns, i.e. the message loop is now invalid, thus causing a crash while attempting to post a task to it. Based on this call stack it looks like it happens due to the enable-renderer-accessisibility flag. Fix is to move the OleInitialize/OleUnitialize calls to Platform::WillInitializeMainMessageLoop and Platform::DidEndMainMessageLoop. The Platform::DidEndMainMessageLoop function now executes as a task which is posted to the message loop prior to quitting it. This would ensure that the cleanup happens correctly. Fixes http://code.google.com/p/chromium/issues/detail?id=30383 Bug=30383 Review URL: http://codereview.chromium.org/501011 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@34611 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
* 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
* 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
* 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 support for 64-bit Windows build: base and chrome/appgregoryd@google.com2009-12-041-0/+3
| | | | | | | | | | | 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
* 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
* 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
* Don't show --help on ChromeOS.thestig@chromium.org2009-11-241-1/+1
| | | | | | | | BUG=none TEST=none Review URL: http://codereview.chromium.org/437030 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@32893 0039d316-1c4b-4281-b951-d872f2087c98
* Add compiler-specific "examine printf format" attributes to printfs.evan@chromium.org2009-11-201-2/+3
| | | | | | | | | | | | Functions that take a printf-style format get a new annotation, which produces a bunch of compiler warnings when you use printf impoperly. This change adds the annotations and fixes the warnings. We now must use PRId64 for 64-bit numbers and the PRIsz for size_t. Review URL: http://codereview.chromium.org/339059 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@32600 0039d316-1c4b-4281-b951-d872f2087c98
* Use GetSwitchValuePath.evan@chromium.org2009-11-161-2/+2
| | | | | | | | | | BUG=24672 TEST=unit_tests Patch by Thiago Farina <thiago.farina@gmail.com>. Review URL: http://codereview.chromium.org/375016 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@32093 0039d316-1c4b-4281-b951-d872f2087c98
* Add an "extension" process type, which mostly gets treated as a renderer ↵mpcomplete@chromium.org2009-11-131-1/+6
| | | | | | | | | | everywhere. BUG=27163 Review URL: http://codereview.chromium.org/384108 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@31955 0039d316-1c4b-4281-b951-d872f2087c98
* Ensure OOM is a killer on the Mac.avi@chromium.org2009-11-121-0/+1
| | | | | | | | | BUG=http://crbug.com/12673 TEST=as in bug Review URL: http://codereview.chromium.org/385054 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@31819 0039d316-1c4b-4281-b951-d872f2087c98
* Move benchmark extension example to new location and clean it up to use ↵erikkay@chromium.org2009-11-121-1/+2
| | | | | | | | | | | browser actions rather than toolstrips. BUG=26106 TEST=none Review URL: http://codereview.chromium.org/384065 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@31815 0039d316-1c4b-4281-b951-d872f2087c98
* TBR: mark@chromium.orgjeremy@chromium.org2009-11-051-0/+11
| | | | git-svn-id: svn://svn.chromium.org/chrome/trunk/src@31091 0039d316-1c4b-4281-b951-d872f2087c98