summaryrefslogtreecommitdiffstats
path: root/base
Commit message (Collapse)AuthorAgeFilesLines
* Increase Bind/Callback Arity from 6 -> 11: These go to eleven.ajwong@chromium.org2011-11-238-5/+4792
| | | | | | | | | | | | | | | | | | | | | | | | This is only for a build time stress test only. I will revert back to 6 after getting the data. 11 allows for binding of 11 arguments to a function, and 10 arguments to a method. 10 seemed like a nice round number to try (MSVC's tr1::bind() only supports 10). Template Growth rate (n == arity): bind.h: n bind_internal.h: (n^2 + 20n)/2 bind_internal_win.h: n callback.h: n Template growth equation: (n^2 + 26n) / 2 Template growth: 96 -> 203 types BUG=98542 TEST=try bots. Then we get to watch the bot cycle times. Review URL: http://codereview.chromium.org/8682015 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@111410 0039d316-1c4b-4281-b951-d872f2087c98
* Remove custom Task implementations in base.dcheng@chromium.org2011-11-237-104/+61
| | | | | | | | | | | | I left a few unconverted in this one, because they made my head hurt. BUG=none TEST=base_unittests Review URL: http://codereview.chromium.org/8653006 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@111407 0039d316-1c4b-4281-b951-d872f2087c98
* base::Bind: Convert FilePathWatcher.jhawkins@chromium.org2011-11-235-70/+44
| | | | | | | | | | | BUG=none TEST=none R=willchan@chromium.org Review URL: http://codereview.chromium.org/8677015 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@111405 0039d316-1c4b-4281-b951-d872f2087c98
* Make ObserverListThreadSafe key its observers by PlatformThreadId instead of ↵rsesek@chromium.org2011-11-232-16/+70
| | | | | | | | | | | | | | MessageLoop. This fixes a subtle behavior that drops RemoveObserver operations when the current() loop is NULL. Now those operations will always succeed. BUG=104826 TEST=base_unittests Review URL: http://codereview.chromium.org/8635002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@111404 0039d316-1c4b-4281-b951-d872f2087c98
* Move the ProcessWatcher methods out of content/common/process_watcher into ↵jam@chromium.org2011-11-235-0/+394
| | | | | | | | | | | base/process_util, alongside the other process methods. The only non-trivial move change is to the Windows implementation, where I changed KillProcess to use an exit code of kProcessKilledExitCode instead of content::RESULT_CODE_HUNG. cpu said that the existing code was incorrect, since GetTerminationStatus() should be mapping that result to TERMINATION_STATUS_PROCESS_WAS_KILLED. So I changed the exit code to kProcessKilledExitCode. This might make the UMA stats for killed processes to go up (and crashed to go down), but that will be an accounting change and should be zero-sum. BUG=98716 Review URL: http://codereview.chromium.org/8674003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@111371 0039d316-1c4b-4281-b951-d872f2087c98
* Add CHECKs for file descriptors used in select() by InotifyReaderTaskmnissler@chromium.org2011-11-231-0/+5
| | | | | | | | | | | | Since these are used in an fd_set, there's the possibility that invalid file descriptors cause stack overflow/corruption. BUG=chromium:105162 TEST=No functional changes, compiles and passes tests. Review URL: http://codereview.chromium.org/8681006 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@111369 0039d316-1c4b-4281-b951-d872f2087c98
* DefaultDispatcher for MessagePumpXoshima@chromium.org2011-11-232-5/+22
| | | | | | | | | | | | | | MPX itself doesn't know how to handle events and we've been converting MessageLoop::Run() -> Desktop::Run() or RunAllPending to use ui_test_utils::RunAllPendingInMessageLoop(). It's no longer necessary with this CL. Windows's message pump can dispatch events without dispatcher. BUG=none TEST=none, but I believe some of browser_tests on aura is flaky because of this, and this CL should make them less/non flaky. Review URL: http://codereview.chromium.org/8635014 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@111324 0039d316-1c4b-4281-b951-d872f2087c98
* Remove obsolete usage of TOUCH_UI.saintlou@chromium.org2011-11-233-4/+4
| | | | | | | | | | BUG=105046 TEST=none Review URL: http://codereview.chromium.org/8660001 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@111287 0039d316-1c4b-4281-b951-d872f2087c98
* Move PropertyBag to base. Originally this was in chrome\common because only ↵jam@chromium.org2011-11-235-0/+310
| | | | | | | | | chrome used it. Now that chrome and content use it, and that we want to only expose interface through the content API, this belongs in base. BUG=98716 Review URL: http://codereview.chromium.org/8652002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@111266 0039d316-1c4b-4281-b951-d872f2087c98
* replace platform conditions with os_posix and os_bsd where applicablerobert.nagy@gmail.com2011-11-221-1/+1
| | | | | | | | | | | | | this patch also adds a comment that describes why EAI_NODATA is disabled on FreeBSD BUG= TEST= TBR=wtc Review URL: http://codereview.chromium.org/8598010 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@111253 0039d316-1c4b-4281-b951-d872f2087c98
* Revert 111074 - ASAN timeout on OutOfProcessPPAPITest.*dhollowa@chromium.org2011-11-221-1/+1
| | | | | | | | | | | | | | | Increases the ASAN timeout multiplier in an attempt to avoid timeout errors in OutOfProcessPPAPITest.* test when running under ASAN. BUG=104832 TEST=ASAN bot runs green TBR=glider@chromium.org Review URL: http://codereview.chromium.org/8618014 TBR=dhollowa@chromium.org Review URL: http://codereview.chromium.org/8653002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@111228 0039d316-1c4b-4281-b951-d872f2087c98
* Allows base to be built for host on android.bulach@chromium.org2011-11-221-20/+39
| | | | | | | | | | | | | | ssl_false_start_blacklist_process needs to be built and executed in the host environment. This was introduced by r95907. BUG= TEST= Review URL: http://codereview.chromium.org/8586054 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@111158 0039d316-1c4b-4281-b951-d872f2087c98
* Upstream: Gyp changes to build net_unittests for Android.jingzhao@chromium.org2011-11-221-8/+15
| | | | | | | | | | BUG= TEST= Review URL: http://codereview.chromium.org/8610006 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@111114 0039d316-1c4b-4281-b951-d872f2087c98
* ASAN timeout on OutOfProcessPPAPITest.*dhollowa@chromium.org2011-11-221-1/+1
| | | | | | | | | | | | Increases the ASAN timeout multiplier in an attempt to avoid timeout errors in OutOfProcessPPAPITest.* test when running under ASAN. BUG=104832 TEST=ASAN bot runs green TBR=glider@chromium.org Review URL: http://codereview.chromium.org/8618014 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@111074 0039d316-1c4b-4281-b951-d872f2087c98
* Remove TOUCH_UI definition and make use_virtual_keyboard an independant ↵saintlou@chromium.org2011-11-221-1/+1
| | | | | | | | | | | | variable. BUG=105046 TEST=none Review URL: http://codereview.chromium.org/8527025 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@111069 0039d316-1c4b-4281-b951-d872f2087c98
* Replace ScopedCommandLineOverride with TestSuite listener.miket@chromium.org2011-11-222-1/+30
| | | | | | | | | | | | This was split out of http://codereview.chromium.org/8588067/. BUG=none TEST=none, but this does make testing easier. Review URL: http://codereview.chromium.org/8561031 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@111057 0039d316-1c4b-4281-b951-d872f2087c98
* Some dead-code removal from message_pump_x and touch_factory.sadrul@chromium.org2011-11-212-202/+7
| | | | | | | | | BUG=none TEST=none Review URL: http://codereview.chromium.org/8575017 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@110980 0039d316-1c4b-4281-b951-d872f2087c98
* Callback API Change: Reimplement Bind(); support IgnoreResult, full ↵ajwong@chromium.org2011-11-2119-2638/+3218
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | currying, and use less types. The main API change IgnoreResult() and fully currying. See unittest for what the new API looks like. The rest of the changes are done to support that. Previously, IgnoreReturn could not be used with WeakPtr<> Bind()s as it was applied after the fact to the Callback object. Now, IgnoreResult() wraps the function like Unretained(). As an incidental benefit, the new implementation gave us fully currying for free. Also, the new implementation scales better when supporting higher arities of functions. The new type growth is: (n^2 + 20n) / 2 as opposed to (3n^2 + 17n) / 2 where n == arity. For n = 6 and n=10, the new implementation has 81 and 155 templates respectively. The old implementation had 105 and 235 templates respectively. BUG=35233,98919,98542 TEST=existing unittests Review URL: http://codereview.chromium.org/8483003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@110975 0039d316-1c4b-4281-b951-d872f2087c98
* Fixing some warning due to different signess of charkristianm@chromium.org2011-11-211-2/+8
| | | | | | | | | | | BUG=None TEST=None Review URL: http://codereview.chromium.org/8354008 Review URL: http://codereview.chromium.org/8354008 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@110968 0039d316-1c4b-4281-b951-d872f2087c98
* compositor_unittests target is unimplmented on Macdhollowa@chromium.org2011-11-211-1/+1
| | | | | | | | | | | | | | | | Adds necessary pieces to get the WebKit compositor working with compositor_unittests target on Mac. Required gyp build flags are: 'use_aura': 1, 'use_webkit_compositor': 1, 'use_skia': 1, BUG=104390, 104555 TEST=compositor_unittests --gtest_filter=LayerWithRealCompositorTest.* passes and shows correct visual results. Review URL: http://codereview.chromium.org/8486020 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@110875 0039d316-1c4b-4281-b951-d872f2087c98
* Switch to a simple linked-list for worker thread pooljar@chromium.org2011-11-202-123/+73
| | | | | | | | | | | | The goal was to avoid alloc/free during the thread teardown callback, and this CL provides a very simple and clear implementation. r=rtenneti BUG=104696 Review URL: http://codereview.chromium.org/8597017 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@110856 0039d316-1c4b-4281-b951-d872f2087c98
* wayland: use message_pump_observer common codemsb@chromium.org2011-11-182-23/+1
| | | | | | | | | | | | | | BUG=102903 TEST=compile Change-Id: I96c63b55a6be4623f8edd202a1642ae6f7a6eb7a R=mark@chromium.org,oshima@chromium.org,dnicoara@chromium.org Review URL: http://codereview.chromium.org/8561018 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@110771 0039d316-1c4b-4281-b951-d872f2087c98
* base::Bind: Convert chrome_frame/.jhawkins@chromium.org2011-11-181-1/+1
| | | | | | | | | | | BUG=none TEST=none R=csilv@chromium.org Review URL: http://codereview.chromium.org/8555001 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@110744 0039d316-1c4b-4281-b951-d872f2087c98
* Create files readable by grp and oth in base::PlatformFile for posix.tbarzic@chromium.org2011-11-181-2/+7
| | | | | | | | | | | | | | | | | | | Main motivation for this is webkit's createFile. While creating files with permission 0600 is not an issue on other platforms, on ChromeOs FileBrowser may access external filesystem, so it makes sense to create files with permission 0644. Further more creating files with mode 0600 on ChromeOS external fielsystem may cause some problems with zip file support (see bug). Note this is M16 release blocker... BUG=chromium-os:22263 TEST=linux_chromeos trybots verified copying files in FileBrowser on ChromeOs creates files with permission 644 Review URL: http://codereview.chromium.org/8590020 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@110740 0039d316-1c4b-4281-b951-d872f2087c98
* Avoid any possibility of an Alloc during TLS thread teardownjar@chromium.org2011-11-182-23/+86
| | | | | | | | | | | | | | | GIven that TCMalloc might get its thread teardown notifgication ahead of the profiler, we need to be careful to not do an alloc in the teardown handler. If we did, we might bring TCMalloc back to life on this thread... and it might not get a second teardown notification. r=rtenneti BUG=104696 Review URL: http://codereview.chromium.org/8587031 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@110706 0039d316-1c4b-4281-b951-d872f2087c98
* Implement TRACE_COUNTERnduca@chromium.org2011-11-183-2/+119
| | | | | | Review URL: http://codereview.chromium.org/8579001 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@110675 0039d316-1c4b-4281-b951-d872f2087c98
* Attempt to fix Windows shared builder following r110206/r110595rsleevi@chromium.org2011-11-181-2/+3
| | | | | | | | | | | Add BASE_EXPORT to classes that were previously exported via MessageLoop BUG=none TBR=jhawkins@chromium.org Review URL: http://codereview.chromium.org/8549017 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@110665 0039d316-1c4b-4281-b951-d872f2087c98
* Allow JSONWriter and JSONValueSerializer to ignore binary values when ↵ericdingle@chromium.org2011-11-185-29/+120
| | | | | | | | | | | | | | | | instructed to do so. Design discussion is available here: http://groups.google.com/a/chromium.org/group/chromium-dev/browse_thread/thread/967eb64325c24f9c BUG=None TEST=base_unittests Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=110021 Review URL: http://codereview.chromium.org/8505033 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@110640 0039d316-1c4b-4281-b951-d872f2087c98
* ChromeFrame: Convert TaskMarshallerThroughMessageQueue to new Callback system.jhawkins@chromium.org2011-11-174-8/+6
| | | | | | | | | | | BUG=none TEST=none R=willchan@chromium.org,stoyan@chromium.org Review URL: http://codereview.chromium.org/8591009 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@110595 0039d316-1c4b-4281-b951-d872f2087c98
* Allow trailing comma in JSON policy files.pastarmovj@chromium.org2011-11-174-1/+165
| | | | | | | | | | | | | This is not really part of the JSON standard but a common practice and is harmless in most of the cases so we can enable it for JSON policy files. BUG=101141 TEST=none Review URL: http://codereview.chromium.org/8423079 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@110503 0039d316-1c4b-4281-b951-d872f2087c98
* Valgrind: Fix a leak in GetValueFromDictionary for cocoa.jhawkins@chromium.org2011-11-161-2/+4
| | | | | | | | | | | BUG=none TEST=none R=mark@chromium.org Review URL: http://codereview.chromium.org/8513019 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@110359 0039d316-1c4b-4281-b951-d872f2087c98
* base::Bind() conversion for chrome/browser/search_enginesdcheng@chromium.org2011-11-165-243/+0
| | | | | | | | | | BUG=none TEST=compiles and passes tests Review URL: http://codereview.chromium.org/8570022 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@110342 0039d316-1c4b-4281-b951-d872f2087c98
* Convert NewRunnableMethod() to base::Bind() in base::TestThreadHelper.dcheng@chromium.org2011-11-161-2/+3
| | | | | | | | | | BUG=none TEST=trybot compile Review URL: http://codereview.chromium.org/8572034 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@110281 0039d316-1c4b-4281-b951-d872f2087c98
* Remove about:tracking.eroman@chromium.org2011-11-163-779/+0
| | | | | | | | | | | | It has been subsumed by about:profiler. I also added a button to about:profiler that matches the behavior of "about:tracking/reset" (nukes the tracked objects). That way there shouldn't be any functionality loss in deleting about:tracking. BUG=100992 Review URL: http://codereview.chromium.org/8568036 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@110252 0039d316-1c4b-4281-b951-d872f2087c98
* Add OVERRIDE to base/.avi@chromium.org2011-11-1621-98/+107
| | | | | | | | | BUG=104314 TEST=no change Review URL: http://codereview.chromium.org/8520018 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@110218 0039d316-1c4b-4281-b951-d872f2087c98
* Handle null timer values when profiling sectionsjar@chromium.org2011-11-151-1/+3
| | | | | | | | | | | Null time values can appear if the profiler is not ACTIVE, and the Now() function returns a Null value (to avoid wasting time and calling the OS Time). r=rtenneti Review URL: http://codereview.chromium.org/8573017 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@110215 0039d316-1c4b-4281-b951-d872f2087c98
* wayland: forward declare WaylandEventmsb@chromium.org2011-11-151-1/+5
| | | | | | | | | | | | | | | | | Don't pollute the namespace with defines from C header files and forward declare WaylandEvent. BUG=102903 TEST=compiles Change-Id: I5cd50c04361d4d053bdf8c193071a4c7808c51d7 R=oshima@chromium.org,dnicoara@chromium.org,mark@chromium.org Review URL: http://codereview.chromium.org/8572030 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@110211 0039d316-1c4b-4281-b951-d872f2087c98
* base: Refactor PendingTask out of MessageLoop.jhawkins@chromium.org2011-11-158-146/+147
| | | | | | | | | | | | | Also removes copy/pasted instances of this class. BUG=none TEST=none R=willchan@chromium.org Review URL: http://codereview.chromium.org/8565024 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@110206 0039d316-1c4b-4281-b951-d872f2087c98
* Crash on error or assert message in Debug buildjar@chromium.org2011-11-151-4/+31
| | | | | | | | r=rvargas bug=102940 Review URL: http://codereview.chromium.org/8487004 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@110181 0039d316-1c4b-4281-b951-d872f2087c98
* Reduce race potential for lazy testing initialization of profilerjar@chromium.org2011-11-151-8/+23
| | | | | | | | | | | | | | | | | | Initialization of the profiler is supposed to happen while single threaded. The tests however often skip affirmative initialization, and rely on lazy initialization. This CL tightens up that process, to reduce changes of races (even benign races) during testing. I also added a suppression for examination of the state, which is always a benign race. At initialization time we rely on a lock (now) to ensure race freedom (if we get a racy value of state). r=rtenneti Review URL: http://codereview.chromium.org/8570007 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@110180 0039d316-1c4b-4281-b951-d872f2087c98
* Maximize RLIMIT_AS resource limit in nacl_helper child before execmcgrathr@chromium.org2011-11-152-1/+26
| | | | | | | | | | | | | | | | | | | | | | NaCl processes need an unusually large amount of address space, because they do huge PROT_NONE mappings to reserve contiguous regions much larger than the memory that will actually be used. An ambient RLIMIT_AS setting can break this, so we need to raise the soft limit to the hard limit (which is usually unlimited). We cannot rely on doing this inside the nacl_helper child itself, so we must do it in the zygote before it exec's nacl_helper_bootstrap. That exec itself could fail if the limit is too small, because nacl_helper_bootstrap uses ELF program headers to reserve a large region of address space. BUG= http://code.google.com/p/nativeclient/issues/detail?id=2438 TEST= nacl apps work when "ulimit -S -v 5376320" was run before starting chrome R=mark@chromium.org,bsy@google.com,bradchen@google.com Review URL: http://codereview.chromium.org/8528041 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@110123 0039d316-1c4b-4281-b951-d872f2087c98
* Allow linker initialization of lazy instancejoth@chromium.org2011-11-1520-127/+135
| | | | | | | | | | | | | | Using the initializer list construct = {0} allows the object to be linker initialized. Modify the LazyInstance class design to make it a pod aggregate type that can be linker initialized this way. Also combines the instance and state members, in line with the Singleton<> class design. Introduces a new LAZY_INSTANCE_INITIALIZER macro specifically for using to init all lazy instances + modify all existing callsites to use it. (Old code would no longer compile) BUG=94925 TEST=existing tests pass. http://build.chromium.org/f/chromium/perf/linux-release/sizes/report.html?history=150&header=chrome-si&graph=chrome-si&rev=-1 should step downward. TBR=jam@chromium.org,rvargas@chromium.org,darin@chromium.org,ben@chromium.org,apatrick@chromium.org,akalin@chromium.org Review URL: http://codereview.chromium.org/8491043 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@110076 0039d316-1c4b-4281-b951-d872f2087c98
* Multiply the timeouts by 2 if the tests are ran under AddressSanitizer.glider@chromium.org2011-11-151-4/+14
| | | | | | | | | | I've preferred using kTimeoutMultiplier only once to duplicating it for each timeout. This however makes InitializeTimeout(0, 0, &value) non-unipotent. BUG=103371 Review URL: http://codereview.chromium.org/8510053 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@110058 0039d316-1c4b-4281-b951-d872f2087c98
* Revert 110021 - Broke CrOS compilersleevi@chromium.org2011-11-155-126/+33
| | | | | | | | | | | | | | | | | Allow JSONWriter and JSONValueSerializer to ignore binary values when instructed to do so. Design discussion is available here: http://groups.google.com/a/chromium.org/group/chromium-dev/browse_thread/thread/967eb64325c24f9c BUG=None TEST=base_unittests Review URL: http://codereview.chromium.org/8505033 TBR=ericdingle@chromium.org Review URL: http://codereview.chromium.org/8528051 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@110027 0039d316-1c4b-4281-b951-d872f2087c98
* Allow JSONWriter and JSONValueSerializer to ignore binary values when ↵ericdingle@chromium.org2011-11-155-33/+126
| | | | | | | | | | | | | | instructed to do so. Design discussion is available here: http://groups.google.com/a/chromium.org/group/chromium-dev/browse_thread/thread/967eb64325c24f9c BUG=None TEST=base_unittests Review URL: http://codereview.chromium.org/8505033 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@110021 0039d316-1c4b-4281-b951-d872f2087c98
* add base/i18n OWNERS file (with just jshin in it)estade@chromium.org2011-11-151-0/+1
| | | | | | | | | | BUG=none TEST=none Review URL: http://codereview.chromium.org/8137002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@110018 0039d316-1c4b-4281-b951-d872f2087c98
* Send WM_DEVICECHANGE message through SystemMonitorscottmg@chromium.org2011-11-153-12/+95
| | | | | | | | | | | | | | | | | WM_DEVICECHANGE is sent when there's been a change to devices or the computer; specifically when a USB device is connected or disconnected. This is intended for use in support of Gamepads for more performant polling and connect/disconnect testing. Currently only on Windows, though seems reasonable to add for other platforms in the future. BUG=79050 Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=109960 Review URL: http://codereview.chromium.org/8523021 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@110014 0039d316-1c4b-4281-b951-d872f2087c98
* Set the profiler's thread name at a central placejar@chromium.org2011-11-153-13/+21
| | | | | | | | | | | | | | | | | This will automatically catch thread names in several of the child processes we are after, and it also catches the name for a webkcore thread. The underlying function uses a try/catch clause, which contaminates the entire function. As a result, I needed to factor out that section, so that I could still call to set the profiler thread name. Without this, the shared dbg build will fail to compile. r=rtenneti Review URL: http://codereview.chromium.org/8565036 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@110003 0039d316-1c4b-4281-b951-d872f2087c98
* Cleanup: Remove unneeded forward declarations in base, dbug, gpu, ipc, ↵thestig@chromium.org2011-11-152-10/+3
| | | | | | | | | | jingle, and media. BUG=none TEST=none Review URL: http://codereview.chromium.org/8511045 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@109998 0039d316-1c4b-4281-b951-d872f2087c98
* define OS_BSD on *BSD and replace the ifdefs to use thatrobert.nagy@gmail.com2011-11-154-14/+12
| | | | | | | | | | BUG= TEST=compile Review URL: http://codereview.chromium.org/8564020 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@109986 0039d316-1c4b-4281-b951-d872f2087c98