summaryrefslogtreecommitdiff
path: root/dbus/bus.cc
AgeCommit message (Collapse)Author
2018-10-12Uprev libchrome to r576279 (1/many)Jakub Pawlowski
This patch brings the latest and greatest features of libchrome to android. It contains ~2600 patches. Reason for uprev: libbluetooth want to use some of the most recent features avaliable. Test: libchrome_test Change-Id: Iccdec267948daab29e6328694f4c7d2f71ea26ca Merged-In: Iccdec267948daab29e6328694f4c7d2f71ea26ca
2018-02-20Remove modification to deal with unused-parameter warning.Hidehiko Abe
libchrome used to hit unused-parameter warning. Now, libchrome is built with -Wno-unused-parameter flag, and its client libraries/executables are built with the header files containing pragma to suppress the warning from libchrome. Thus, the modification can be removed to reduce the diff from Chrome upstream. Bug: 73270448 Test: Built locally. Treehugger. Change-Id: I51b6349bfdb28ed15df1d12b836adccffabe53bb
2017-12-13libchrome: Uprev the library to r456626 from ChromiumHidehiko Abe
Pulled the latest and greatest version of libchrome from Chromium. The merge was done against r456626 which corresponds to git commit 08266b3fca707804065a2cfd60331722ade41969 of Mar 14, 2017 Notable changes are: - FOR_EACH_OBSERVER macro removed (replaced by use of C++ 11 range-base for loop) - base::Values no more FundamentalValue - stl_util moved to base namespace - some scoped pointers removed in crypto/ in favor of BoringSSL UniquePtr. - path() accessor renamed to GetPath() in ScopedTempDir (and other classes) - introduction of base::CallbackOnce Test: All unit-tests should still pass. Change-Id: I1e65efb167fa708e35ed7c6492f1cb66a6a46104 Merged-In: I180f9defc7607f462389fae17701fff553c4a2d0
2017-07-26Revert "libchrome: Uprev the library to r456626 from Chromium"android-o-iot-preview-5o-iot-preview-5Luis Hector Chavez
This reverts commit 0601274935e7f632eb0d6ce0fd223b744349d20b. Reason for revert: Broke the mac_sdk Exempt-From-Owner-Approval: Fixing mac_sdk Change-Id: I2cab1818261f3b75dcf7dfc3edf6d6b7bab541a8
2017-07-26libchrome: Uprev the library to r456626 from ChromiumJay Civelli
Pulled the latest and greatest version of libchrome from Chromium. The merge was done against r456626 which corresponds to git commit 08266b3fca707804065a2cfd60331722ade41969 of Mar 14, 2017 Notable changes are: - FOR_EACH_OBSERVER macro removed (replaced by use of C++ 11 range-base for loop) - base::Values no more FundamentalValue - stl_util moved to base namespace - some scoped pointers removed in crypto/ in favor of BoringSSL UniquePtr. - path() accessor renamed to GetPath() in ScopedTempDir (and other classes) - introduction of base::CallbackOnce Test: All unit-tests should still pass. Change-Id: I5c2cb41ea4c037fe69fbb425e711b1399d55d591
2016-07-27libchrome: Uprev the library to r405848 from ChromiumLuis Hector Chavez
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
2016-05-27libchrome: Uprev the library to r395517 from ChromiumLuis Hector Chavez
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
2016-01-20libchrome: Uprev the library to r369476 from ChromiumAlex Vakulenko
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
2016-01-06ChromeOS: Don't abort when the dbus connection drops.brillo-m9-releasebrillo-m9-devBertrand SIMONNET
We don't abort when the dbus bus disconnects on Android, we should do the same on Chrome OS. Bug: 26267381 Change-Id: I7b4060e91c89916fdaca33a617cdcae6c98e21e3
2015-12-30Fix unused parameter warnings in libchromeChristopher Wiley
Bug: 26228533 Test: libchrome builds under clang and gcc with this change Change-Id: Ie534056c7557652fbbd7c2a134131d1cd25824e5
2015-12-29Revert "Fix compiler warnings in libchrome"Christopher Wiley
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
2015-12-29Fix compiler warnings in libchromeChristopher Wiley
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
2015-12-21dbus: Don't abort when the dbus connection drops.Bertrand SIMONNET
Instead, rely on libdbus' mechanism to handle this. libdbus has been patched to raise a SIGTERM signal, allowing the client to clean up and exit cleanly when the dbus daemon disappears. Bug: 26267381 Test: Stop dbus. Daemons using dbus exit cleanly. Test: unit tests. Change-Id: Id7aa816a336ae6444fb8bb4bde7c35928195e7b3
2015-08-28Revert "libchrome: dbus: allow null callback for Bus::RemoveObjectProxy"Peter Qiu
This reverts commit 038d81c71ac34d0bf9b626836e47e5c27e4103a5. Change-Id: I399c18a6a1c4dd47318cbfaf385ac4764b19c77a
2015-08-27libchrome: dbus: allow null callback for Bus::RemoveObjectProxyPeter Qiu
Some callers might not care when the object proxy destruction is completed. So this make it easier/cleaner for such callers. BUG=23560086 TEST=compile Change-Id: I59fc45f9ec038ded5c1d0644314e3f1d35c8badd
2015-08-26Pull dbus/ directory forward to r337732.Daniel Erat
Chrome OS was using a version of dbus/ (r337732, c1a556b) that's newer than the rest of libchrome (r334380). Pull the newer code into AOSP. This change keeps the addition of a virtual d'tor for PropertyBase (previously committed here in addition to being upstreamed as r339031). BUG=chromium:521005 Change-Id: Id62156187b042ff0a9d9ff95bf15672ac5dde37a
2015-07-15Add upstream dbus/ code as of Chromium r334380.Daniel Erat
Copy the unchanged source from https://chromium.googlesource.com/chromium/src/dbus/ as of r334380 (really r334285 a.k.a. d04f83ef in the dbus/ subtree). Bug: 22317122 Change-Id: I598920914a737fe12e2f8199d6826f113991dc5b