summaryrefslogtreecommitdiffstats
path: root/base
Commit message (Collapse)AuthorAgeFilesLines
...
* x11: Move XInput2 availability information out of the message pump.sadrul@chromium.org2013-11-062-14/+1
| | | | | | | | | BUG=302696 R=darin@chromium.org, derat@chromium.org Review URL: https://codereview.chromium.org/52823002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@233414 0039d316-1c4b-4281-b951-d872f2087c98
* Avoid threading races on TraceSamplingThread's membersharaken@chromium.org2013-11-063-40/+30
| | | | | | | | | | | The original CL was landed in https://codereview.chromium.org/26541005/ but the CL caused a dead lock. This CL fixed the issue. NOTRY=true Review URL: https://codereview.chromium.org/28593003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@233266 0039d316-1c4b-4281-b951-d872f2087c98
* Fix parsing of vmstat, improve meminfo parsing, and add unittestssonnyrao@chromium.org2013-11-052-80/+311
| | | | | | | | | | | | | | | | | | | | | | The parsing of both vmstat and meminfo was previously based on fixed positions for various entries with the files, and meminfo already had some iteration code for where this assumption wasn't working. Neither of those files make guarantees about positions or even existence of some of the entries. This fixes the issue entirely by iterating through the files for all entries, and adds unit tests to make sure they work properly with files from different kernels. This does change the behavior of the meminfo parsing code a bit to make it more permissive than previously, but that should also ensure that it works better on older or different kernels. BUG=295111,309930 TEST=base_unittests --gtest_filter=SystemMetricsTest.* R=brettw@chromium.org Review URL: https://codereview.chromium.org/34683007 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@233102 0039d316-1c4b-4281-b951-d872f2087c98
* Fix iOS device builds broken by r232181kiyun@chromium.org2013-11-051-1/+1
| | | | | | | | | | | | | | | | | | | | | | r232181 changed build/common.gypi to set ARCHS=i386 explicitly for target_arch==ia32. However, we don't want to set ARCHS=i386 for iOS device builds (because iOS devices are a different architecture entirely). This CL arranges to leaved ARCHS untouched for iOS builds, so that Xcode will use its defaults; this was the behavior before r232181. The non-intuitive aspect is that target_arch==ia32 for OS=="ios", because host_arch is set to 'ia32' at line 88 of build/common.gypi for 'OS=="win" or OS=="mac" or OS=="ios"' and target_arch is set from host_arch at line 117. With build/common.gypi fixed, we also need to fix discardable_memory_provider_unittest.cc for iOS device builds, now that it is being compiled with the correct architecture. BUG=314712 Review URL: https://codereview.chromium.org/58373003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@233050 0039d316-1c4b-4281-b951-d872f2087c98
* Use pread and pwrite in NaCl PlatformFile now that they're available.bbudge@chromium.org2013-11-051-25/+5
| | | | | | | | BUG=298967 Review URL: https://codereview.chromium.org/58583003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@232947 0039d316-1c4b-4281-b951-d872f2087c98
* more spell checkingthakis@chromium.org2013-11-052-2/+2
| | | | | | | | | BUG=none NOTRY=true Review URL: https://codereview.chromium.org/57463003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@232902 0039d316-1c4b-4281-b951-d872f2087c98
* Fix WM_POWERBROADCAST handlingyukawa@chromium.org2013-11-052-59/+36
| | | | | | | | | | | | | This is a follow up CL of r185433, which mistook |message| for |wparam|. With this CL, base::PowerMonitor and base::PowerObserver become functional again on Windows. BUG=314477, 149059 TEST=manually done with a debugger (by disconnecting the power supply cable) Review URL: https://codereview.chromium.org/57383002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@232900 0039d316-1c4b-4281-b951-d872f2087c98
* GTTF: Make it possible to pass sharding settings from command line.phajdan.jr@chromium.org2013-11-053-5/+44
| | | | | | | | | | | | | | | This overrides any environment variables (a message is printed that clearly says which settings are applied). Main rationale is that runtest.py is well suited to pass command line flags but not environment variables. BUG=236893 R=sky@chromium.org Review URL: https://codereview.chromium.org/58413003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@232869 0039d316-1c4b-4281-b951-d872f2087c98
* Android: adds ptr_type to jni_generator.bulach@chromium.org2013-11-052-8/+102
| | | | | | | | | | Allows ptr_type to be configurable. BUG= Review URL: https://codereview.chromium.org/49913003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@232858 0039d316-1c4b-4281-b951-d872f2087c98
* Don't use select() in SyncSocket when handle > FD_SETSIZE.dalecurtis@google.com2013-11-051-1/+7
| | | | | | | | | | BUG=314364 TEST=audio playback still works, just glitches in 48->44 R=ajwong@chromium.org Review URL: https://codereview.chromium.org/49303008 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@232845 0039d316-1c4b-4281-b951-d872f2087c98
* Adds the concept of a 'safe mode' hotkey startcpu@chromium.org2013-11-042-1/+15
| | | | | | | | | | | | | | | | The issue is that with Aura if something goes horribly wrong with the GPU, the user can get a 'black window' with no UI. So for ConOps it is nice to have a way to start chrome with a set of flags that we know should get you a working chrome that they can troubleshoot. To do this we add a hotkey combo to the start menu shortcut, in this case ctrl-shift-f10 which is not taken by windows. This shortcut can start chrome in this safe mode. BUG=271719 TEST=see bug R=robertshield@chromium.org Review URL: https://codereview.chromium.org/57173002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@232825 0039d316-1c4b-4281-b951-d872f2087c98
* Revert https://src.chromium.org/viewvc/chrome?view=rev&revision=231330bbudge@chromium.org2013-11-042-4/+4
| | | | | | | | | | This is a speculative revert to see if it's the cause of hanging renderers. BUG=313112 Review URL: https://codereview.chromium.org/57783006 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@232819 0039d316-1c4b-4281-b951-d872f2087c98
* Reland "Enable SysInfo::AmountOfPhysicalMemory to be called from within the ↵rmcilroy@chromium.org2013-11-042-24/+53
| | | | | | | | | | | | | Linux Sandbox" Trigger caching of SysInfo::AmountOfPhysicalMemory in PreSandboxInit() to enable it to be called by the renderer process after the sandbox is sealed. BUG=312241 Review URL: https://codereview.chromium.org/55913004 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@232790 0039d316-1c4b-4281-b951-d872f2087c98
* Refactor parsing of /proc files into separate functionsdavemoore@chromium.org2013-11-022-22/+54
| | | | | | | | | | | | | This refactors out the non-trivial parsing functions from GetSystemMemoryInfo in preparation for fixing them and adding unit-tests. BUG=309930 TEST=about:memory still works R=brettw@chromium.org, davemoore@chromium.org Review URL: https://codereview.chromium.org/32253007 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@232627 0039d316-1c4b-4281-b951-d872f2087c98
* Ensure TimeOffset is applied to timestamps of traceswangxianzhu@chromium.org2013-11-023-15/+53
| | | | | | | | | | | | | Previously TraceLog::UpdateTraceEventDuration() doesn't consider time_offset_. Added OffsetNow() and OffsetTimestamp() to avoid TimeTicks::NowFromSystemTraceTime() in most part of TraceLog. TEST=TraceEventTestFixture.TimeOffset BUG=none Review URL: https://codereview.chromium.org/52973006 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@232549 0039d316-1c4b-4281-b951-d872f2087c98
* GTTF: Unify parallel test launching.phajdan.jr@chromium.org2013-11-016-359/+249
| | | | | | | | | BUG=236893, 312747 R=sky@chromium.org Review URL: https://codereview.chromium.org/55473002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@232491 0039d316-1c4b-4281-b951-d872f2087c98
* Ensure handle_ fits in FD_SETSIZE.dalecurtis@chromium.org2013-11-011-21/+20
| | | | | | | | | | | Speculative attempt to diagnose stack corruption issues. BUG=313843 TEST=none Review URL: https://codereview.chromium.org/54993006 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@232449 0039d316-1c4b-4281-b951-d872f2087c98
* Disable C4146 warning in pickle_unittest.cc.halyavin@google.com2013-11-011-0/+7
| | | | | | | | | | | | Unary minus is used on unsigned type deliberately. TEST= None BUG= None TBR= jar@chromium.org Review URL: https://codereview.chromium.org/54073005 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@232320 0039d316-1c4b-4281-b951-d872f2087c98
* Avoid undefined behaviour in Pickle::FindNext.halyavin@google.com2013-11-013-6/+29
| | | | | | | | | | TEST=base_unittests --gtest_filter=PickleTest.* BUG=312250 R=jar@chromium.org Review URL: https://codereview.chromium.org/50473002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@232315 0039d316-1c4b-4281-b951-d872f2087c98
* Revert 232274 "Reland "Enable SysInfo::AmountOfPhysicalMemory to..."dglazkov@chromium.org2013-11-012-49/+24
| | | | | | | | | | | | | | | | | | | | Broke all linux dbg layout tests (again): http://build.chromium.org/p/chromium.webkit/builders/WebKit%20Linux%20%28dbg%29/builds/14495 > Reland "Enable SysInfo::AmountOfPhysicalMemory to be called from within the Linux Sandbox" > > Trigger caching of SysInfo::AmountOfPhysicalMemory in PreSandboxInit() to enable > it to be called by the renderer process after the sandbox is sealed. > > BUG=312241 > > Review URL: https://codereview.chromium.org/52403002 TBR=rmcilroy@chromium.org Review URL: https://codereview.chromium.org/54923005 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@232282 0039d316-1c4b-4281-b951-d872f2087c98
* Reland "Enable SysInfo::AmountOfPhysicalMemory to be called from within the ↵rmcilroy@chromium.org2013-11-012-24/+49
| | | | | | | | | | | | | Linux Sandbox" Trigger caching of SysInfo::AmountOfPhysicalMemory in PreSandboxInit() to enable it to be called by the renderer process after the sandbox is sealed. BUG=312241 Review URL: https://codereview.chromium.org/52403002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@232274 0039d316-1c4b-4281-b951-d872f2087c98
* Change the PrefService::GetPreferenceValues() interface to return a scoped_ptr.earthdok@chromium.org2013-11-012-9/+10
| | | | | | | | | | | Fix leak of DictionaryValue in PrefsFunctionalTest.TestHaveLocalStatePrefs. BUG=313722 TBR=bauerb@chromium.org, phajdan.jr@chromium.org Review URL: https://codereview.chromium.org/46763006 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@232255 0039d316-1c4b-4281-b951-d872f2087c98
* GTTF: Make the new test launcher exit early if many tests are broken.phajdan.jr@chromium.org2013-10-314-47/+110
| | | | | | | | | | | Also tag the JSON results indicating this was an early exit. BUG=236893 R=sky@chromium.org Review URL: https://codereview.chromium.org/53353005 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@232208 0039d316-1c4b-4281-b951-d872f2087c98
* Change to calculate the real NTP in TimeTicks.pwestin@google.com2013-10-312-0/+32
| | | | | | | | Added static method to correlate the TimeTicks to a real date and time; in this case UnixEpoch since that is a commonly known time/date. Review URL: https://codereview.chromium.org/34623008 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@232194 0039d316-1c4b-4281-b951-d872f2087c98
* ScopedNativeLibrary.Basic test fixtmoniuszko@opera.com2013-10-311-6/+12
| | | | | | | | | | | | IsBadCodePtr() function was returning zero value randomly and the test was raising false alarms sometimes. This fix changes the test to use GetFunctionPointerFromNativeLibrary() instead. BUG= Review URL: https://codereview.chromium.org/32303002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@232192 0039d316-1c4b-4281-b951-d872f2087c98
* Avoid crashing if the crash key system is not initialized.jochen@chromium.org2013-10-311-2/+4
| | | | | | | | | | | | I don't want to initialize it from content shell, because I would have to duplicate all crash key registration we do in chrome. BUG=none R=mark@chromium.org, rsesek@chromium.org Review URL: https://codereview.chromium.org/54363004 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@232119 0039d316-1c4b-4281-b951-d872f2087c98
* Enable profile pinning by setting browser window relaunch detailscalamity@chromium.org2013-10-311-2/+4
| | | | | | | | | | | | | | | Make it possible to pin shortcuts by setting the relaunch data for each browser window. BUG=177490,107080,146647 TEST=Create separate profiles and pin the taskbar icons. Clicking the pinned icons should relaunch chrome with the appropriate profile. TBR=cpu@chromium.org Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=231295 Review URL: https://codereview.chromium.org/14122006 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@232109 0039d316-1c4b-4281-b951-d872f2087c98
* Use swarming_client instead of swarm_client.maruel@chromium.org2013-10-311-1/+1
| | | | | | | | | | | | | Modify all the references to use src/tools/swarming_client/. The build scripts already support both. R=csharp@chromium.org, torne@chromium.org BUG= Review URL: https://codereview.chromium.org/29993003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@232104 0039d316-1c4b-4281-b951-d872f2087c98
* Unmap unpinned ashmem regions. ↵pliard@chromium.org2013-10-311-4/+26
| | | | | | | | | | | | | | This partly reverts r229838 and is only a temporary change that will be reverted soon. It is needed to stabilize memory metrics so that other regressions can be caught. BUG=311633 Review URL: https://codereview.chromium.org/52303002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@232081 0039d316-1c4b-4281-b951-d872f2087c98
* Add a test restriction type for non-low end devices.tedchoc@chromium.org2013-10-311-2/+5
| | | | | | | | | | | | Renames small memory -> low end device to be consistent with our APIs. BUG=308353 NOTRY=true R=dtrainor@chromium.org Review URL: https://codereview.chromium.org/52953003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@232073 0039d316-1c4b-4281-b951-d872f2087c98
* Force virtual contexts on Chrome OS ARMpiman@chromium.org2013-10-311-0/+7
| | | | | | | | | | | | | | | The Mali driver (which is currently the only ARM Chrome OS driver) doesn't support strict ordering between contexts, so we need virtual contexts. Currently we can't gather the GL_VENDOR/GL_RENDERER on Chrome OS for use in the workarounds list, so we enable it on all Chrome OS ARM. BUG=285292,chrome-os-partner:22688 R=ajwong@chromium.org, zmo@chromium.org Review URL: https://codereview.chromium.org/46663009 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@232009 0039d316-1c4b-4281-b951-d872f2087c98
* Pickle::Write* micro-optimizationspiman@chromium.org2013-10-313-91/+91
| | | | | | | | | | | | | | | Pickle is hot in some benchmarks. This helps by reworking WriteBytes in a few of ways: 1- Fold BeginWrite and EndWrite into WriteBytes since it's the only caller now. 2- keep track of the write offset, always aligned, separately, so that we can do alignment checks on the field sizes rather than the payload size (for next point). 3- provides a template version of WriteBytes with specializations for predefined sizes, that inline/optimize away alignment checks, padding, and memcpy. 4- change the meaning of capacity_ to not take the header size into account. This simplifies some arithmetic. BUG=307480 R=jar@chromium.org Review URL: https://codereview.chromium.org/34413002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@231987 0039d316-1c4b-4281-b951-d872f2087c98
* Remove Pickle::BeginWriteData/TrimWriteData, it's not usedpiman@chromium.org2013-10-303-80/+4
| | | | | | | | | BUG=None R=jar@chromium.org Review URL: https://codereview.chromium.org/38693003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@231911 0039d316-1c4b-4281-b951-d872f2087c98
* Move ScopedUserPrefUpdate to base/prefs.derat@chromium.org2013-10-304-0/+228
| | | | | | | | | | | | Move this outside of Chrome to enable moving ExtensionPrefs to the top-level extensions/ directory. BUG=313284 TBR=sky@chromium.org Review URL: https://codereview.chromium.org/46073004 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@231905 0039d316-1c4b-4281-b951-d872f2087c98
* Make RenderTextMac more efficient by caching fonts and taking advantage of ↵avi@chromium.org2013-10-302-1/+69
| | | | | | | | | | | | | | | | toll-free bridging of CT/NSFont. BUG=312436 TEST=no console spew as in bug R=asvitkine@chromium.org, mark@chromium.org, shess@chromium.org Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=231670 Reverted: https://src.chromium.org/viewvc/chrome?view=rev&revision=231685 Review URL: https://codereview.chromium.org/49503003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@231879 0039d316-1c4b-4281-b951-d872f2087c98
* Add discardable memory emulation for non-android/mac platformsvollick@chromium.org2013-10-3012-56/+869
| | | | | | | | | | | | | | | Adds support for emulated discardable memory. The memory is managed by a provider which listens for memory pressure notifications from the platform. Currently, only android pushes these notifications, but in future patches, we will apply pressure on other platforms in certain situations (e.g., when a tab gets backgrounded). BUG=237681 Review URL: https://codereview.chromium.org/17106004 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@231845 0039d316-1c4b-4281-b951-d872f2087c98
* Change access flags on duplicated shared memory handle to read only when the ↵wfh@chromium.org2013-10-301-6/+7
| | | | | | | | | | | read_only_ parameter is passed BUG=307301 TEST=base_unittests Review URL: https://codereview.chromium.org/27483005 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@231836 0039d316-1c4b-4281-b951-d872f2087c98
* Update order of FieldTrial functions.asvitkine@chromium.org2013-10-302-29/+29
| | | | | | | | | | | | | | Puts the static functions together and moves the constructor to be in the same order in the .cc file as in the .h file. No logic changes. BUG=none Review URL: https://codereview.chromium.org/51233003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@231798 0039d316-1c4b-4281-b951-d872f2087c98
* Revert 231670 "Make RenderTextMac more efficient by caching font..."avi@chromium.org2013-10-302-69/+1
| | | | | | | | | | | | | | | | > Make RenderTextMac more efficient by caching fonts and taking advantage of toll-free bridging of CT/NSFont. > > BUG=312436 > TEST=no console spew as in bug > R=asvitkine@chromium.org, mark@chromium.org, shess@chromium.org > > Review URL: https://codereview.chromium.org/49503003 TBR=avi@chromium.org Review URL: https://codereview.chromium.org/51463003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@231685 0039d316-1c4b-4281-b951-d872f2087c98
* Fix AmIBundled for command-line executions. Again.avi@chromium.org2013-10-291-24/+2
| | | | | | | | | | BUG=304860, 312196 TEST=run from the command line with dots R=mark@chromium.org Review URL: https://codereview.chromium.org/51023003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@231672 0039d316-1c4b-4281-b951-d872f2087c98
* Make RenderTextMac more efficient by caching fonts and taking advantage of ↵avi@chromium.org2013-10-292-1/+69
| | | | | | | | | | | | toll-free bridging of CT/NSFont. BUG=312436 TEST=no console spew as in bug R=asvitkine@chromium.org, mark@chromium.org, shess@chromium.org Review URL: https://codereview.chromium.org/49503003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@231670 0039d316-1c4b-4281-b951-d872f2087c98
* GTTF: Add a flag controlling handling of test stdio by the new launcher.phajdan.jr@chromium.org2013-10-293-3/+28
| | | | | | | | | | | | Pass --test-launcher-test-stdio=always to always include test stdio in test launcher's standard output. BUG=236893 R=hubbe@chromium.org Review URL: https://codereview.chromium.org/46043019 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@231665 0039d316-1c4b-4281-b951-d872f2087c98
* IPC pickling optimization for render passes.danakj@chromium.org2013-10-292-1/+16
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Call Pickle::Reserve() for the size of the data in the shared quad state and quad lists. This prevents the WriteFoo() invocations for all of the quad/shared quad states from causing memory re-allocations and moves. This is based on https://codereview.chromium.org/34413002/ from piman@. This is also based after https://codereview.chromium.org/30593005/ and perf numbers (both before and after) include that CL also. content_perftest results on linux chromeos release official build: BEFORE *RESULT mean_frame_serialization_time: DelegatedFrame_ManyQuads_1_4000= 50 us *RESULT mean_frame_serialization_time: DelegatedFrame_ManyQuads_1_100000= 1888 us *RESULT mean_frame_serialization_time: DelegatedFrame_ManyQuads_4000_4000= 728 us *RESULT mean_frame_serialization_time: DelegatedFrame_ManyQuads_100000_100000= 23771 us *RESULT mean_frame_serialization_time: DelegatedFrame_ManyRenderPasses_10000_100= 24118 us AFTER *RESULT mean_frame_serialization_time: DelegatedFrame_ManyQuads_1_4000= 48 us *RESULT mean_frame_serialization_time: DelegatedFrame_ManyQuads_1_100000= 1626 us *RESULT mean_frame_serialization_time: DelegatedFrame_ManyQuads_4000_4000= 460 us *RESULT mean_frame_serialization_time: DelegatedFrame_ManyQuads_100000_100000= 14771 us *RESULT mean_frame_serialization_time: DelegatedFrame_ManyRenderPasses_10000_100= 15626 us This gives a further ~1.5x improvement in serialization time for shared quad states and render passes. R=jar@chromium.org, piman@chromium.org, tsepez@chromium.org, piman BUG=307480 Review URL: https://codereview.chromium.org/35893002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@231656 0039d316-1c4b-4281-b951-d872f2087c98
* Revert 231613 "Enable SysInfo::AmountOfPhysicalMemory to be call..."dglazkov@chromium.org2013-10-292-68/+36
| | | | | | | | | | | | | | | | | > Enable SysInfo::AmountOfPhysicalMemory to be called from within the Linux sandbox. > > Trigger caching of SysInfo::AmountOfPhysicalMemory in PreSandboxInit() to enable > it to be called by the renderer process after the sandbox is sealed. > > BUG=312241 > > Review URL: https://codereview.chromium.org/28833002 TBR=rmcilroy@chromium.org Review URL: https://codereview.chromium.org/51223003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@231626 0039d316-1c4b-4281-b951-d872f2087c98
* Put back debug break instructions for non-x86 OSsjochen@chromium.org2013-10-291-8/+14
| | | | | | | | | | | | Turns on out OS_IOS also defines OS_MACOSX BUG=none R=justincohen@chromium.org, mark@chromium.org NOTRY=true Review URL: https://codereview.chromium.org/46883007 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@231617 0039d316-1c4b-4281-b951-d872f2087c98
* Enable SysInfo::AmountOfPhysicalMemory to be called from within the Linux ↵rmcilroy@chromium.org2013-10-292-36/+68
| | | | | | | | | | | | | sandbox. Trigger caching of SysInfo::AmountOfPhysicalMemory in PreSandboxInit() to enable it to be called by the renderer process after the sandbox is sealed. BUG=312241 Review URL: https://codereview.chromium.org/28833002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@231613 0039d316-1c4b-4281-b951-d872f2087c98
* Add static FieldTrial::CreateSimulatedFieldTrial function.asvitkine@chromium.org2013-10-293-4/+91
| | | | | | | | | | | | | | This allows creating a field trial not associated with the global field trial list, e.g. to simulate group assignment without affecting global state. See associated bug for more detailed motivation. BUG=281474 TEST=New unit tests. Review URL: https://codereview.chromium.org/23503019 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@231612 0039d316-1c4b-4281-b951-d872f2087c98
* Pass timestamp into trace event callback.alph@chromium.org2013-10-293-7/+21
| | | | | | Review URL: https://codereview.chromium.org/47563004 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@231574 0039d316-1c4b-4281-b951-d872f2087c98
* Take advantage of some newer optimizations of FindFirstFile.brettw@chromium.org2013-10-292-1/+16
| | | | | | | | | | | | | | | This sets the "large buffer" flag for file finding which is supposed increase throughput at potentially increased latency. Since we seldom interrupt find operations and don't block the UI thread, this should improve performance slightly. This also sets the "basic information" flag which will omit the short filename, which the documentation says should make it a bit faster. I checked and there is currently no user of this data. See also: http://blogs.msdn.com/b/oldnewthing/archive/2013/10/24/10459773.aspx BUG= Review URL: https://codereview.chromium.org/48183005 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@231490 0039d316-1c4b-4281-b951-d872f2087c98
* GTTF: increase new test launcher timeout to one compatible with ↵phajdan.jr@chromium.org2013-10-281-1/+1
| | | | | | | | | | | | | | run_test_cases.py Example of a slow test is ExtensionSettingsFrontendTest.QuotaLimitsEnforcedCorrectlyForSyncAndLocal which takes over 50 seconds on Windows debug bots. BUG=236893 R=rmsousa@chromium.org Review URL: https://codereview.chromium.org/46043006 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@231447 0039d316-1c4b-4281-b951-d872f2087c98