• Home
  • History
  • Annotate
  • only in /external/libchrome/base/files/
History log of /external/libchrome/base/files/
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
0c4f26a46430b8c503c65f5cae1d2b6876d53e30 16-Jul-2016 Luis Hector Chavez <lhchavez@google.com> libchrome: Uprev the library to r405848 from Chromium

Pulled the latest and greatest version of libchrome from Chromium.

The merge was done against r405848 which corresponds to git commit
909e5d3ecab27bb09cc570c1c215d0221bd6fe53 of Jul 15, 2016

Notable changes are:
- base::Bind() now explicitly disallows captures in lambdas (which was
never allowed in the style guide).
- base::ListValue::iterator now exposes std::unique_ptr<base::Value>
instead of raw base::Value*.

BUG: 29104761
TEST: All tests in libchrome_test pass on dragonboard-eng build

Change-Id: I94b285a3be074efa30c4e71ae93c8f2a99fb0b87
ile.h
ile_path.cc
ile_path_watcher_fsevents.cc
ile_path_watcher_fsevents.h
ile_path_watcher_linux.cc
ile_path_watcher_unittest.cc
ile_util.h
ile_util_posix.cc
mportant_file_writer_unittest.cc
coped_file.cc
94ffa55491333f3dcc701befd0d2652922916d99 26-May-2016 Luis Hector Chavez <lhchavez@google.com> libchrome: Uprev the library to r395517 from Chromium

Pulled the latest and greatest version of libchrome from Chromium.

The merge was done against r395517 which corresponds to git commit
ebdcb576bb346af95b8ad219f6250daf63122f98 of May 23, 2016

Notable changes are:
- scoped_ptr was removed in favor of std::unique_ptr
- base/thread_task_runner_handle.h was moved to base/threading.

BUG: 28985443
TEST: All tests in libchrome_test pass on dragonboard-eng build

Change-Id: Ic9f9ed1cafe754c96cd2f007984514e091aaba39
ile_path.cc
ile_path_unittest.cc
ile_path_watcher.cc
ile_path_watcher_fsevents.cc
ile_path_watcher_kqueue.cc
ile_path_watcher_linux.cc
ile_path_watcher_unittest.cc
ile_util.cc
ile_util.h
ile_util_linux.cc
ile_util_posix.cc
mportant_file_writer.cc
mportant_file_writer.h
mportant_file_writer_unittest.cc
emory_mapped_file.cc
emory_mapped_file.h
emory_mapped_file_posix.cc
coped_file.h
45779228f8c9e40851cfd23f727e2bd8ffdd4714 17-Mar-2016 Alex Vakulenko <avakulenko@google.com> Update libchrome to r381699

TEST=Build all

Change-Id: I962a83a044a102515c316d04bb65e7c9302e0f0c
ile_path.cc
ile_path.h
ile_util.cc
ile_util.h
ile_util_posix.cc
1ac3a5e3e15a0a3db48c4cb13736ce38033831fe 25-Jan-2016 Alex Vakulenko <avakulenko@google.com> libchrome: Add files needed by some veyron variants on Chrome OS

These files are needed for Chrome IPC. These will be compiled on
Chrome OS, so no impact on AOSP.

BUG: 26772882
TEST: make -j32 for dragonboard
./build_packages on CrOS for various boards.

Change-Id: Ibca0a04692a59f245cab2d5c9707cff109ca144f
emory_mapped_file.cc
emory_mapped_file_posix.cc
0d205d712abd16eeed2f5d5b1052a367d23a223f 15-Jan-2016 Alex Vakulenko <avakulenko@google.com> libchrome: Uprev the library to r369476 from Chromium

Pulled the latest and greatest version of libchrome from Chromium.

The merge was done against r369476 which corresponds to git commit
0471d0e2e2ef4a544a63481a389e1df33ea7c00a of Jan 14, 2016

Notable changes are:
- base::scoped_ptr<T> is now almost identical to std::unique_ptr<T>
No Pass() method, now std::move() is used on scoped pointers
- basictypes.h is removed and custom int types such as int32 are now
replaced with the standard int32_t and similar from <stdint.h>
- String utility functions are cleaned up/refactored. Now all are in
base:: namespace, many now return values rather than take pointers
for results, ambiguous Booleans are replaced with enums, such as:
base::StartsWithASCII(current_url, "https://", false);
now is:
base::StartsWith(current_url, "https://",
base::CompareCase::INSENSITIVE_ASCII);
- COMPILE_ASSERT() is now replaced with standard static_assert()
- Numeric range constants such as kuint64max are removed in favor of
standard <limits> constructs such as std::numeric_limits<uint64_t>::max()
- base::Value and derived classes use scoped_ptr<> more and support
for raw pointers to base::Value is deprecated and/or removed in
many places.
- base::MessageLoopProxy is completely removed (was marked deprecated before)
- base::MessageLoop::Quit() and QuitClosure are renamed to QuitWhenIdle
and QuitWhenIdleClosure for more semantic clarity.

Change-Id: I1f5436d253a0a32b2299160a76993752d818736f
WNERS
ir_reader_fallback.h
ir_reader_linux.h
ir_reader_posix_unittest.cc
ile.cc
ile.h
ile_enumerator.h
ile_enumerator_posix.cc
ile_path.cc
ile_path.h
ile_path_constants.cc
ile_path_unittest.cc
ile_path_watcher.cc
ile_path_watcher.h
ile_path_watcher_fsevents.cc
ile_path_watcher_fsevents.h
ile_path_watcher_kqueue.cc
ile_path_watcher_kqueue.h
ile_path_watcher_linux.cc
ile_path_watcher_mac.cc
ile_path_watcher_unittest.cc
ile_posix.cc
ile_tracing.cc
ile_tracing.h
ile_unittest.cc
ile_util.cc
ile_util.h
ile_util_mac.mm
ile_util_posix.cc
mportant_file_writer.cc
mportant_file_writer.h
mportant_file_writer_unittest.cc
emory_mapped_file.h
coped_file.cc
coped_temp_dir.h
coped_temp_dir_unittest.cc
fc6fa02470e7d005f9492d41d4a149e4f61c24d1 15-Jan-2016 Alex Vakulenko <avakulenko@google.com> libchrome: Delete unused source files

In order to help with uprev maintenance, remove all the source files
that are not being built on AOSP/ChromeOS

Change-Id: Iec3221ae8aa02a17326949085b33925382968673
ile_enumerator_win.cc
ile_path_watcher_stub.cc
ile_path_watcher_win.cc
ile_proxy.cc
ile_proxy.h
ile_proxy_unittest.cc
ile_util_android.cc
ile_util_posix.cc
ile_util_proxy.cc
ile_util_proxy.h
ile_util_proxy_unittest.cc
ile_util_unittest.cc
ile_util_win.cc
ile_win.cc
emory_mapped_file.cc
emory_mapped_file_posix.cc
emory_mapped_file_unittest.cc
emory_mapped_file_win.cc
3bf7081cf806cd9ebedb47b3eff76671794efa68 30-Dec-2015 Christopher Wiley <wiley@google.com> Fix mac specific warnings

Fix a number of unused parameter warnings and two uninitlialized member
warnings.

Bug: 26228533
Change-Id: I46e40115c1087882821a51a978591d013f911b73
Test: Compiles on mac for x86_64-eng
ir_reader_fallback.h
ile_path_watcher_kqueue.cc
60d96a4a9e0d8c78d46c1f86dec60f9ecdbedbdb 29-Dec-2015 Christopher Wiley <wiley@google.com> Fix unused parameter warnings in libchrome

Bug: 26228533
Test: libchrome builds under clang and gcc with this change

Change-Id: Ie534056c7557652fbbd7c2a134131d1cd25824e5
ile_path.cc
ile_util_posix.cc
88ee374b55dcee26c0712f33ed88dde272225ff9 29-Dec-2015 Christopher Wiley <wiley@google.com> Revert "Fix compiler warnings in libchrome"

This reverts commit b636ff6a8ac3b54b3067289f01848252ab71eceb.

This broke trunk with messages like:

In file included from external/libchrome/base/time/time_posix.cc:29:0:
external/libchrome/base/lazy_instance.h:51:36: error: missing initializer for member 'base::LazyInstance<base::Lock, base::internal::LeakyLazyInstanceTraits<base::Lock> >::private_instance_' [-Werror=missing-field-initializers]
#define LAZY_INSTANCE_INITIALIZER {}
^
external/libchrome/base/time/time_posix.cc:39:38: note: in expansion of macro 'LAZY_INSTANCE_INITIALIZER'
g_sys_time_to_time_struct_lock = LAZY_INSTANCE_INITIALIZER;
^
external/libchrome/base/lazy_instance.h:51:36: error: missing initializer for member 'base::LazyInstance<base::Lock, base::internal::LeakyLazyInstanceTraits<base::Lock> >::private_buf_' [-Werror=missing-field-initializers]
#define LAZY_INSTANCE_INITIALIZER {}
^
external/libchrome/base/time/time_posix.cc:39:38: note: in expansion of macro 'LAZY_INSTANCE_INITIALIZER'
g_sys_time_to_time_struct_lock = LAZY_INSTANCE_INITIALIZER;
^
cc1plus: all warnings being treated as errors

Change-Id: I0c0308e716bd1ed7914e2a032e439a9261d38e56
ile_path.cc
ile_util_posix.cc
b636ff6a8ac3b54b3067289f01848252ab71eceb 17-Dec-2015 Christopher Wiley <wiley@google.com> Fix compiler warnings in libchrome

Also fix compiler warnings in unit tests, except for unused parameter.
There are a ton of unused parameters in unit tests, and those errors
have no risk of spreading through the platform.

Bug: 26228533
Test: libchrome builds, unittests pass

Change-Id: I50431c8e143902c4b71b4381e4dbbc67cdc4507c
ile_path.cc
ile_util_posix.cc
27bb2e0191b22cde0bb6a56f36abd28c08804b67 07-Jul-2015 Daniel Erat <derat@google.com> Make base::WriteFile use mode 0666 instead of 0640.

Temporarily revert base::WriteFile to the behavior in older
revision of libchrome until we sort out the expected file
permissions at all call sites of base::WriteFile in Chrome
OS code (crbug.com/412057).

This is benchan@chromium.org's
base-334380-revert-writefile-permissions.patch from Chrome
OS. The original commit was
https://chromium-review.googlesource.com/216584.

Bug: 22317122
Change-Id: Ia86ef66122b6cf148bad56d13ef82624e1db8a5b
ile_util_posix.cc
f0d9a7aa9bcf9e047928bf55d2174eebd1a14aa6 18-Aug-2015 Daniel Erat <derat@google.com> Enable logging and use __ANDROID__ instead of __BRILLO__.

Drop the __BRILLO__ #define, instead using the existing
__ANDROID__ define set by the toolchain and setting a new
__ANDROID_HOST__ define when building for the host.

Also use Android logging when __ANDROID__ is defined.

Bug: 23358460
Change-Id: I0d86eac8af381b002a3d46d8a95434c7e24518bd
ile_util_posix.cc
999773c87b1935713c309e6209255570ec4c7c88 04-Aug-2015 Ari Hausman-Cohen <arihc@google.com> Fixing unit tests to pass when run.

Submitted before chromium cl 1273243002 went through, CQ found
issue that is fixed here.

BUG: 22884411, 22947438
Change-Id: Ib91967ce6cdd60d4c923822b0fa52c40661070fe
ile_path_unittest.cc
1ad3000647abb4e86484f68aa387def88294d82b 04-Aug-2015 Ari Hausman-Cohen <arihc@google.com> Fixing unit tests to pass when run.

See discussion on bug. Summary:
* When building for brillo not on host tmp dir now defaults to the
android "/data/local/tmp"
* Command line is temporary fix because current test runner
doesn't Init.
* Dir reader posix was using an outdated method of getting a temp
dir. (checked with agl)
* String conversions used incorrect capitalization of locales.
* File path needed localization on host machine (checked with rvargas)

BUG: 22884411, 22947438
Change-Id: Ib7ffa58a84c8d93c819ba572e2fbd04dd1719e55
ir_reader_posix_unittest.cc
ile_path_unittest.cc
ile_util_posix.cc
ad1211cda01878c1d60b7d05ea597d46bef3f997 24-Jul-2015 Christopher Wiley <wiley@google.com> Fix compilation on 32bit hosts

statfs_buf.f_type is apparently an int on some architectures. However,
the macros we compare it with do not fit in a signed 32 bit number. Fix
this by casting up to a sufficiently large unsigned type.

Bug: 22608897
Change-Id: I2de2520a9094c4ce154ab2cc16f0d56564dfdc4f
ile_util_linux.cc
96074fa37c50405bb055408ea7753159eb9c3e50 07-Jul-2015 Daniel Erat <derat@google.com> Add missing virtual destructors.

Update the following classes:

base::FileTracing::Provider
base::internal::PostTaskAndReplyImpl
base::PostTaskAndReplyWorkerPool
base::TraceLog::EnabledStateObserver

Also remove -Wnon-virtual-dtor.

This is avakulenko@chromium.org's
base-334380-file-tracing-provider-virt-dtor.patch from
Chrome OS with a few more classes added. The original commit
was https://chromium-review.googlesource.com/278013.

Bug: 22317122
Change-Id: Ib7e68ed5b92867ad07128ad9279d059a0eb25864
ile_tracing.h
b910a63ff3111067e79c016f40a7c1baac943405 07-Jul-2015 Daniel Erat <derat@google.com> Build libchrome as shared library on Android.

Add Android.mk and build_config.h files, along with stubs
for gmock, gtest, and protobuf headers in the locations
where Chromium expects them to be. Also patch a few source
files so they'll build.

Bug: 22317122
Change-Id: If4d603b35a23fe4b4caa678935f8ed8f4de6ca7c
ile_posix.cc
b8cf94937c52feb53b55c39e3f82094d27de464c 06-Jul-2015 Daniel Erat <derat@google.com> Add upstream code as of Chromium r334380.

Copy the unchanged source from
https://chromium.googlesource.com/chromium/src/base/ as of
r334380 (really r334285 a.k.a. 23911a0c in the base/
subtree).

Also add MODULE_LICENSE_BSD and copy Chromium's current
LICENSE file to NOTICE.

Bug: 22317122
Change-Id: I89863bfeca67b3a1ff05e6078f2f9ee4e31c5c99
WNERS
ir_reader_fallback.h
ir_reader_linux.h
ir_reader_posix.h
ir_reader_posix_unittest.cc
ile.cc
ile.h
ile_enumerator.cc
ile_enumerator.h
ile_enumerator_posix.cc
ile_enumerator_win.cc
ile_path.cc
ile_path.h
ile_path_constants.cc
ile_path_unittest.cc
ile_path_watcher.cc
ile_path_watcher.h
ile_path_watcher_fsevents.cc
ile_path_watcher_fsevents.h
ile_path_watcher_kqueue.cc
ile_path_watcher_kqueue.h
ile_path_watcher_linux.cc
ile_path_watcher_mac.cc
ile_path_watcher_stub.cc
ile_path_watcher_unittest.cc
ile_path_watcher_win.cc
ile_posix.cc
ile_proxy.cc
ile_proxy.h
ile_proxy_unittest.cc
ile_tracing.cc
ile_tracing.h
ile_unittest.cc
ile_util.cc
ile_util.h
ile_util_android.cc
ile_util_linux.cc
ile_util_mac.mm
ile_util_posix.cc
ile_util_proxy.cc
ile_util_proxy.h
ile_util_proxy_unittest.cc
ile_util_unittest.cc
ile_util_win.cc
ile_win.cc
mportant_file_writer.cc
mportant_file_writer.h
mportant_file_writer_unittest.cc
emory_mapped_file.cc
emory_mapped_file.h
emory_mapped_file_posix.cc
emory_mapped_file_unittest.cc
emory_mapped_file_win.cc
coped_file.cc
coped_file.h
coped_temp_dir.cc
coped_temp_dir.h
coped_temp_dir_unittest.cc