History log of /external/libchrome/base/lazy_instance.h
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
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
/external/libchrome/base/lazy_instance.h
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
/external/libchrome/base/lazy_instance.h
b8803f9a9cde62141aebc7566550995910e0bd3f 29-Dec-2015 Christopher Wiley <wiley@google.com> Fix no-missing-field-initializers warnings

Bug: 26228533
Test: Compiles under clang/gcc, unittests pass for same

Change-Id: I1cd4f5b7307f2316b2b55e8823382d52cf641826
/external/libchrome/base/lazy_instance.h
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
/external/libchrome/base/lazy_instance.h
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
/external/libchrome/base/lazy_instance.h
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
/external/libchrome/base/lazy_instance.h
69420b8b1f03c3a610b9d9291a3802799c18c99b 21-Dec-2015 Christopher Wiley <wiley@google.com> Remove dynamic annotations

This is an outdated library that added support for thread/memory safety
annotations before clang was extended to support the same. We don't
run those tools on Chrome OS or Android, and it is easiest just to
remove the library and includes.

Bug: 26253162
Test: Compiles, libchrome unittests pass, brilloemulator_arm64 builds

Change-Id: I72f3bdad82fa830c9c76922d98b16dfeebfb5389
/external/libchrome/base/lazy_instance.h
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
/external/libchrome/base/lazy_instance.h