| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
|
|
|
|
|
|
| |
build on 64-bit host.
Previous implementation caused DCHECK when value exceeded 32-bit size_t.
BUG=
Review URL: https://codereview.chromium.org/1000933002
Cr-Commit-Position: refs/heads/master@{#325034}
|
|
|
|
|
|
|
|
|
|
|
|
| |
It's only called from one place, so move it there:
- chrome/browser/metrics/drive_metrics_provider.cc
R=rvargas@chromium.org,asvitkine@chromium.org
BUG=463209
Review URL: https://codereview.chromium.org/1051663002
Cr-Commit-Position: refs/heads/master@{#323526}
|
|
|
|
|
|
|
|
|
|
| |
BUG=463209
R=rvargas@chromium.org
TBR=asvitkine@chromium.org
Review URL: https://codereview.chromium.org/1011433002
Cr-Commit-Position: refs/heads/master@{#321224}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Prefer DCHECK_EQ(a, b) over DCHECK(a == b) when possible as this
provides more data on a failure. Similar for other operators such as
>=, <, !=, etc.
This also applies to CHECK, EXPECT, and ASSERT macros.
R=Nico
BUG=464816
Review URL: https://codereview.chromium.org/985723003
Cr-Commit-Position: refs/heads/master@{#319751}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
A recent Linux kernel change changed this to a number larger than 63 bits which causes us to compute 0 size.
I kept the size_t overflow check for cases where size_t is 32-bits.
BUG=403869
R=jamesr@chromium.org
Review URL: https://codereview.chromium.org/471893003
Cr-Commit-Position: refs/heads/master@{#289903}
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@289903 0039d316-1c4b-4281-b951-d872f2087c98
|
|
|
|
|
|
|
|
|
|
|
| |
This updates the includes in base but leaves a forwarding header for the rest of the project for now.
R=yzshen@chromium.org
Review URL: https://codereview.chromium.org/468253002
Cr-Commit-Position: refs/heads/master@{#289360}
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@289360 0039d316-1c4b-4281-b951-d872f2087c98
|
|
|
|
|
|
|
|
|
|
|
|
| |
We need to cache the value, so we can request it from blink after
the sandbox was already turned on.
BUG=321060
R=jam@chromium.org,mark@chromium.org,jamesr@chromium.org
Review URL: https://codereview.chromium.org/67373006
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@236224 0039d316-1c4b-4281-b951-d872f2087c98
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
> 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
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
| |
BUG=
Review URL: https://codereview.chromium.org/19579005
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@220612 0039d316-1c4b-4281-b951-d872f2087c98
|
|
|
|
|
|
|
|
|
| |
BUG=237294
TEST=none
Review URL: https://chromiumcodereview.appspot.com/14872004
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@198378 0039d316-1c4b-4281-b951-d872f2087c98
|
|
|
|
|
|
|
|
|
| |
Adds AmountOfAvailablePhysicalMemory (based on Linux's implementation)
and CPUModelName() (based on OS X's implementation).
Review URL: https://chromiumcodereview.appspot.com/13945012
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@193295 0039d316-1c4b-4281-b951-d872f2087c98
|
|
|
|
|
|
|
|
|
|
| |
This only updates includes in base and keeps a forwarding header for now to keep the change under control.
BUG=
Review URL: https://codereview.chromium.org/12092078
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@181161 0039d316-1c4b-4281-b951-d872f2087c98
|
|
|
|
|
|
|
|
|
| |
BUG=136519
TEST=browser_tests --gtest_filter=SystemInfoMemoryApiTest.*
Review URL: https://chromiumcodereview.appspot.com/11185049
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@164518 0039d316-1c4b-4281-b951-d872f2087c98
|
|
|
|
|
|
|
|
|
|
|
| |
and Linux.
BUG=136519
TEST=browser_test --gtest_filter=SystemInfoCpuApiTest.*
Review URL: https://chromiumcodereview.appspot.com/10914060
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@155575 0039d316-1c4b-4281-b951-d872f2087c98
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
base/base.gyp:
- exclude test/test_file_util_linux.cc on OpenBSD because of
missing fdatasync()
base/base.gypi:
- include linux_util.cc on OpenBSD too
- exclude some linux specific files from the OpenBSD build
because the openbsd implementation is different
base/file_util_posix.cc:
- Use file_util::GetTempDir directly to get the shm dir
on !linux
base/sys_info_freebsd.cc:
- return 0 and do a NOTREACHED() in case sysctlbyname() fails
base/sys_info_openbsd.cc:
- cleanup includes
- use arraysize() in the sysctl() call
- implement SysInfo::MaxSharedMemorySize()
build/common.gypi:
- -Wno-deprecated is C++ only flag so move it to cflags_cc
- Do not exclude linux specific files, dirs on OpenBSD since
90% of it is sharable
base/sys_info_linux.cc:
- DCHECK if the read string is empty
- Use base::StringToInt64() to convert the string
to an int64
- DCHECK if the returned int64 is okay for a size_t
- call NOTREACHED() and return 0 if fails
BUG=
TEST=runs on linux?
Review URL: http://codereview.chromium.org/8382001
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@106984 0039d316-1c4b-4281-b951-d872f2087c98
|
|
Split into Linux and BSD-specific files.
Review URL: http://codereview.chromium.org/427010
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@32860 0039d316-1c4b-4281-b951-d872f2087c98
|