109c28d570e1259c3d58e711826f8f22afc9e2f4 |
|
06-Apr-2016 |
Alex Deymo <deymo@google.com> |
Revert "Make transition to "postinstall" domain explicit." This reverts commit 20e3960e245f6dfa57fa5c9124b0fd33e679f723. Bug: 28008031 Change-Id: If5fcb949dee91779bea465793ec2b333d27a704e
/system/update_engine/p2p_manager.cc
|
20e3960e245f6dfa57fa5c9124b0fd33e679f723 |
|
05-Apr-2016 |
Alex Deymo <deymo@google.com> |
Make transition to "postinstall" domain explicit. When running the postinstall program, we were relying on the automatic transition between update_engine domain and postinstall, which required postinstall_file to be an entrypoint for such domain. This patch makes the transition explicit by calling setexeccon(3). Bug: 28008031 TEST=make dist; Deployed an update to edison-eng: postinstall runs as "postinstall" domain. Change-Id: I27d404886841e0bd39589f0274eaaf98929eeac9
/system/update_engine/p2p_manager.cc
|
e384bb2e403b0f0f666e89d5f6acfaec41120cc5 |
|
30-Mar-2016 |
Alex Deymo <deymo@google.com> |
Subprocess: Close all unused file descriptors. This patch extends Subprocess::ExecFlags() method with a list of file descriptors that should be kept open on the child process and mapped to a pipe() in the parent. The remaining file descriptors will be closed. Bug: 27880754 TEST=Added unittests for this functionality. Change-Id: Id96fb6a72f7805a0bfacfbc85422dc7d44750d93
/system/update_engine/p2p_manager.cc
|
0103c36caa2e38e034e0d22185736b9ccfb35c58 |
|
20-Jan-2016 |
Alex Vakulenko <avakulenko@google.com> |
update_engine: Update libchrome APIs to r369476 The new libchrome has been ported from Chromium and some APIs have changed. Make necessary changes at call sites. Change-Id: I42e65bda7f1dbdf6f6e0ebf356d2cfea6b729193
/system/update_engine/p2p_manager.cc
|
39910dcd1d68987ccee7c3031dc269233a8490bb |
|
10-Nov-2015 |
Alex Deymo <deymo@google.com> |
Split payload application code into a subdirectory. This patch splits from the main libupdate_engine code the part that is strictly used to download and apply a payload into a new static library, moving the code to subdirectories. The new library is divided in two subdirectories: common/ and payload_consumer/, and should not depend on other update_engine files outside those two subdirectories. The main difference between those two is that the common/ tools are more generic and not tied to the payload consumer process, but otherwise they are both compiled together. There are still dependencies from the new libpayload_consumer library into the main directory files and DBus generated files. Those will be addressed in follow up CLs. Bug: 25197634 Test: FEATURES=test emerge-link update_engine; `mm` on Brillo. Change-Id: Id8d0204ea573627e6e26ca9ea17b9592ca95bc23
/system/update_engine/p2p_manager.cc
|
3f39d5cc753905874d8d93bef94f857b8808f19e |
|
13-Oct-2015 |
Alex Vakulenko <avakulenko@google.com> |
update_engine: Rename "chromeos" -> "brillo" in include paths and namespaces libchromeos is transitioning to libbrillo and chromeos namespaces and include directory is changing to brillo. Bug: 24872993 Change-Id: I770659a95be380a50fe3b2ba9f91d65818f40945
/system/update_engine/p2p_manager.cc
|
6f20dd4fc8861d93d188cd27323d2f9746464aaf |
|
19-Aug-2015 |
Alex Deymo <deymo@chromium.org> |
Fix includes and DBus headers to build on Android. This patch include a set of small changes to includes and names in order to be compatible with the Android build system. First, the DBus .xml file needs to be renamed to .dbus-xml and the output directory must match the soruce directory, since the headers are generated with automatic Makefile rules. Some headers required by bionic were missing, such as endian.h and xattr.h. In the xattr.h case, we include the header from the glibc (or bionic) instead of libattr, since libattr is not available in AOSP in the first place, and we are not linking against it Chrome OS, so we shold include the right headers. Bug: 23084776 TEST=`FEATURES=test emerge-link update_engine` works; `mma` in AOSP doesn't have these errors anymore (but still doesn't build). Change-Id: Ifeedfe9d894ca78baa03940ac55563cfcd464e76
/system/update_engine/p2p_manager.cc
|
aea4c1cea20dda7ae7e85fc8924a2d784f70d806 |
|
20-Aug-2015 |
Alex Deymo <deymo@google.com> |
Re-license update_engine to Apache2 This patch automatically replaced the license on all text files from Chromium OS (BSD style) to AOSP (Apache2), keeping the original year as a reference. The license header was added to .gyp and .gypi files, the NOTICE was replaced with a copy of the Apache2 license and MODULE_LICENSE_* file was updated. BUG=b/23084294 TEST=grep 'Chromium OS Authors' doesn't find anything. Change-Id: Ie5083750755f5180a8a785b24fe67dbf9195cd10
/system/update_engine/p2p_manager.cc
|
c00c98a1dad941e5cc04ce0b0e766d40b3b384e1 |
|
18-Mar-2015 |
Alex Deymo <deymo@chromium.org> |
update_engine: Use portable string format functions. Replace usage of %zu by PRIuS or calls to std::to_string when possible. This patch includes other minor linter fixes. BUG=None TEST=emerge-link update_engine Change-Id: I9ff2b3677ed4218a140f9e91a2389cc756941b03 Reviewed-on: https://chromium-review.googlesource.com/293629 Reviewed-by: Alex Deymo <deymo@chromium.org> Commit-Queue: Alex Deymo <deymo@chromium.org> Trybot-Ready: Alex Deymo <deymo@chromium.org> Tested-by: Alex Deymo <deymo@chromium.org>
/system/update_engine/p2p_manager.cc
|
305345001d85ca2282112c2a30fe75c7a4773491 |
|
21-Jul-2015 |
Alex Deymo <deymo@chromium.org> |
update_engine: Switch to chrome-dbus for client requests in update_engine update_engine daemon acts as DBus client to send DBus calls to shill, power_manager and chrome, and to listen for signals from shill, chrome and login_manager. This patch migrates these calls and signals to use chrome-dbus framework instead of dbus-glib. All references to dbus-glib code are removed. BUG=chromium:419827 TEST=Updated unittest. Deployed on a link device and tested interactions with shill and chromium. Change-Id: I31b389e0d1690cccb115ff3b6539c876ba81bd0e Reviewed-on: https://chromium-review.googlesource.com/290990 Tested-by: Alex Deymo <deymo@chromium.org> Reviewed-by: Alex Deymo <deymo@chromium.org> Commit-Queue: Alex Deymo <deymo@chromium.org> Trybot-Ready: Alex Deymo <deymo@chromium.org>
/system/update_engine/p2p_manager.cc
|
461b259af8815d782200782c5ba3599d8de4a66c |
|
25-Jul-2015 |
Alex Deymo <deymo@chromium.org> |
update_engine: Use libchromeos to launch subprocesses. The Subprocess class handles the execution of suprocesses in the update_engine such as the post-install script and bspatch operations. This patch migrates this class from using glib functions to use libchromeos classes with equivalent functionality. Callsites and unittests were updated to match the new interface. BUG=chromium:499886 TEST=Unittest still pass. Deployed on link and cros flash another image using a delta payload. Change-Id: Ia64d39734e220675113f393a6049e9a9b0fe8409 Reviewed-on: https://chromium-review.googlesource.com/288837 Trybot-Ready: Alex Deymo <deymo@chromium.org> Tested-by: Alex Deymo <deymo@chromium.org> Reviewed-by: Alex Vakulenko <avakulenko@chromium.org> Commit-Queue: Alex Deymo <deymo@chromium.org>
/system/update_engine/p2p_manager.cc
|
454b798705352bcfbef19759f4dddfe3f0ac490c |
|
10-Jul-2015 |
Alex Deymo <deymo@chromium.org> |
update_engine: Remove directory iteration usage of glib. P2PManager used g_dir_* functions to iterate over the files in a directory. This patch uses the POSIX equivalent functions instead. BUG=chromium:499886 TEST=Unittest still pass. Change-Id: Ia603dcdd5095db8aadf6fbe431b9a92c9d220d04 Reviewed-on: https://chromium-review.googlesource.com/284891 Tested-by: Alex Deymo <deymo@chromium.org> Reviewed-by: Alex Vakulenko <avakulenko@chromium.org> Commit-Queue: Alex Deymo <deymo@chromium.org> Trybot-Ready: Alex Deymo <deymo@chromium.org>
/system/update_engine/p2p_manager.cc
|
29b815316519829f133b39dd1cae7ab6224c9da2 |
|
09-Jul-2015 |
Alex Deymo <deymo@chromium.org> |
update_engine: Watch file descriptors using chromeos::MessageLoop. This patch removes all the calls to g_io_*() functions used to create io_channels from a file descriptor and watch for them in the main loop. Instead, we use the chromeos::MessageLoop backed with the glib implementation. This patch also removes the duplicated process handling work done in P2PManager and uses the common Subprocess class instead. BUG=chromium:499886 TEST=Added and updated unittests. Change-Id: Ia093b060d2396325fce69b2bbdb62957ba7bfbc6 Reviewed-on: https://chromium-review.googlesource.com/284593 Tested-by: Alex Deymo <deymo@chromium.org> Reviewed-by: Alex Vakulenko <avakulenko@chromium.org> Commit-Queue: Alex Deymo <deymo@chromium.org> Trybot-Ready: Alex Deymo <deymo@chromium.org>
/system/update_engine/p2p_manager.cc
|
8d2bbe38da10c8461437fb14454ec20886bc212c |
|
24-Jun-2015 |
Alex Deymo <deymo@chromium.org> |
update_engine: Move glib related utils to glib_utils.h. This patch move the remaining glib.h functions used from utils.h to glib_utils.h. BUG=chromium:499886 TEST=emerge-link update_engine Change-Id: Ia727cf3d4ee29fb33fa4db500ca83ea37d23a335 Reviewed-on: https://chromium-review.googlesource.com/281446 Reviewed-by: Alex Vakulenko <avakulenko@chromium.org> Tested-by: Alex Deymo <deymo@chromium.org> Commit-Queue: Alex Deymo <deymo@chromium.org> Trybot-Ready: Alex Deymo <deymo@chromium.org>
/system/update_engine/p2p_manager.cc
|
610277efc6f7e5239158dfa4bb3b1021804326e0 |
|
12-Nov-2014 |
Alex Deymo <deymo@chromium.org> |
update_engine: Add override when possible. Google Style Guide requires to include the "override" keyword when overriding a method on a derived class, so the compiler will catch errors if the method is not overriding a member of the base class. This patch introduces the "override" keyword when possible. BUG=None TEST=FEATURES=test emerge-link update_engine Change-Id: Ie83d115c5730f3b35b3d95859a54bc1a48e0be7b Reviewed-on: https://chromium-review.googlesource.com/228928 Tested-by: Alex Deymo <deymo@chromium.org> Reviewed-by: Alex Vakulenko <avakulenko@chromium.org> Commit-Queue: Alex Deymo <deymo@chromium.org>
/system/update_engine/p2p_manager.cc
|
4a0321b804524e001b482edea882bd1fc4af98a2 |
|
28-Oct-2014 |
Gilad Arnold <garnold@chromium.org> |
update_engine: Policy determines P2P enabled status. This switches the P2P Manager to use the newly introduced Update Manger policy requests in determining whether P2P is enabled on the system. There is a policy request for the initial state (P2PEnabled, sync) and for tracking changes (P2PEnabledChanged, async), with the latest known value being cached by the P2P Manager. This also reverses a recent change that moved P2P prefs setting into the P2PManager. In the absence of any additional logic (now cleared) there was no point in having a dedicated method just for that, and so dbus_service writes the prefs value directly. This affords us removing the prefs argument when initializing the P2PManager. BUG=chromium:425233 TEST=Unit tests. Change-Id: I53280f05da8fe532b6502c175a8cc9ddc1e15a87 Reviewed-on: https://chromium-review.googlesource.com/226937 Tested-by: Gilad Arnold <garnold@chromium.org> Reviewed-by: David Zeuthen <zeuthen@chromium.org> Commit-Queue: Gilad Arnold <garnold@chromium.org>
/system/update_engine/p2p_manager.cc
|
41f2cf52137dd94ef9115e27ec8729a126edb0ff |
|
05-Nov-2014 |
David Zeuthen <zeuthen@chromium.org> |
update_engine: Share payloads for a maximum of five days only. This helps limit exposure of what version the device may or may not be running. BUG=chromium:424823 TEST=New unit test + unit tests pass. Change-Id: I9db6f8d560e359c2b8a65d1381dc44320ed4b3a1 Reviewed-on: https://chromium-review.googlesource.com/227592 Reviewed-by: Gilad Arnold <garnold@chromium.org> Tested-by: David Zeuthen <zeuthen@chromium.org> Commit-Queue: David Zeuthen <zeuthen@chromium.org>
/system/update_engine/p2p_manager.cc
|
f329b933db41d26644a97afef928eb1b319d6d99 |
|
30-Oct-2014 |
Alex Deymo <deymo@chromium.org> |
update_engine: Fix all the "using" declaration usage. This patch removes unused "using" declarations, that is, declarations included in a .cc file at a global scope such that "using foo::bar" that later don't use the identifier "bar" at all. This also unifies the usage of these identifiers in the .cc files in favor of using the short name defined by the using declaration. For example, in several cases the .h refer to a type like "std::string" because using declarations are forbidden in header files while the .cc includes "using std::string;" with the purpose of just writting "string" in the .cc file. Very rarely, the full identifier is used when a local name ocludes it, for example, StringVectorToGStrv() and StringVectorToString() in utils.cc named its argument just "vector" need to refer to std::vector with the full name. This patch renames those arguments instead. Finally, it also sorts a few lists of using declarations that weren't in order. BUG=None TEST=FEATURES=test emerge-link update_engine Change-Id: I30f6b9510ecb7e03640f1951c48d5bb106309840 Reviewed-on: https://chromium-review.googlesource.com/226423 Reviewed-by: Alex Vakulenko <avakulenko@chromium.org> Commit-Queue: Alex Deymo <deymo@chromium.org> Tested-by: Alex Deymo <deymo@chromium.org>
/system/update_engine/p2p_manager.cc
|
ccd0957b359136aca2d4d5c7728535d8a2e33c51 |
|
27-Oct-2014 |
Gilad Arnold <garnold@chromium.org> |
update_engine: Move P2P enabled pref handling into P2PManager. This makes the P2PManager own the manipulation of the P2P enabled setting, which positions us better toward moving the decision about whether P2P is enabled from P2PManager and into the UpdateManager. Also increases encapsulation and makes it a bit more resilient. BUG=chromium:425233 TEST=Unit tests. Change-Id: Ic91872df84920ae80c5ef973aee99cc46cac264c Reviewed-on: https://chromium-review.googlesource.com/225681 Tested-by: Gilad Arnold <garnold@chromium.org> Reviewed-by: Gaurav Shah <gauravsh@chromium.org> Commit-Queue: Gilad Arnold <garnold@chromium.org>
/system/update_engine/p2p_manager.cc
|
02f7c1dee242f490143791dbb73fa23fa3007cfa |
|
19-Oct-2014 |
Ben Chan <benchan@chromium.org> |
update_engine: Replace scoped_ptr with std::unique_ptr. BUG=None TEST=`FEATURES=test emerge-$BOARD update_engine` TEST=`USE='clang asan' FEATURES=test emerge-$BOARD update_engine` Change-Id: I55a2f7f53675faaac20ba25f72ed52cf938d7744 Reviewed-on: https://chromium-review.googlesource.com/224189 Tested-by: Ben Chan <benchan@chromium.org> Reviewed-by: Alex Deymo <deymo@chromium.org> Commit-Queue: Ben Chan <benchan@chromium.org>
/system/update_engine/p2p_manager.cc
|
9a58e6a2977dea9997234cac71f738f4fff33651 |
|
22-Sep-2014 |
David Zeuthen <zeuthen@chromium.org> |
update_engine: Use p2p when enterprise-enrolled and policy is unset. If au_p2p_enabled is unset in the CPanel and the device is enterprise-enrolled, use p2p. Non-enterprise-enrolled devices will continue to not use p2p (unless specifically requested by the chrosh flag). In effect, this CL enables p2p for enterprises but allows them to opt out. BUG=chromium:415563 TEST=New unit tests + unit tests passes. Change-Id: I8125dfe82c46026e1c97e5dee8abd1e3c4abe12b Reviewed-on: https://chromium-review.googlesource.com/219332 Reviewed-by: Julian Pastarmov <pastarmovj@chromium.org> Reviewed-by: Alex Deymo <deymo@chromium.org> Commit-Queue: David Zeuthen <zeuthen@chromium.org> Tested-by: David Zeuthen <zeuthen@chromium.org>
/system/update_engine/p2p_manager.cc
|
a77939e368597241fe0153bedce196d7152a5de5 |
|
10-Sep-2014 |
Gabe Black <gabeblack@chromium.org> |
update_engine: Use utils::FileSize when finding the size of a file. The utils::FileSize funciton can find the size of a block device correctly. Use it instead of the adhoc methods used around the codebase. BUG=chromium:415867 TEST=Ran a butterfly-paladin tryjob with --hwtest. Change-Id: Id6fd37f04b136b4265bde9b1f56c379a5d9c30f9 Reviewed-on: https://chromium-review.googlesource.com/217418 Reviewed-by: Alex Deymo <deymo@chromium.org> Commit-Queue: Gabe Black <gabeblack@chromium.org> Tested-by: Gabe Black <gabeblack@chromium.org>
/system/update_engine/p2p_manager.cc
|
f9cb98c0cacccca803db48502c7bd461d04cb6b0 |
|
22-Sep-2014 |
Ben Chan <benchan@chromium.org> |
update_engine: Clean up angle brackets in template types. C++11 no longer has the angle bracket pitfall in template types. BUG=None TEST=`FEATURES=test emerge-$BOARD update_engine` Change-Id: I0168b9f208ad8e62ae614b8a3b8bcf31c58fa9f2 Reviewed-on: https://chromium-review.googlesource.com/219203 Commit-Queue: Ben Chan <benchan@chromium.org> Tested-by: Ben Chan <benchan@chromium.org> Reviewed-by: Alex Vakulenko <avakulenko@chromium.org>
/system/update_engine/p2p_manager.cc
|
88b591f24cb3f94f982d7024c2e8ed25c2cc26a2 |
|
29-Aug-2014 |
Alex Vakulenko <avakulenko@chromium.org> |
update_engine: Replace NULL with nullptr Replaced the usage of NULL with nullptr. This also makes it possible to use standard gtest macros to compare pointers in Update Manager's unit tests. So, there is no need in custom UMTEST_... macros which are replaced with the gtest macros (see change in update_engine/update_manager/umtest_utils.h): UMTEST_ASSERT_NULL(p) => ASSERT_EQ(nullptr, p) UMTEST_ASSERT_NOT_NULL(p) => ASSERT_NE(nullptr, p) UMTEST_EXPECT_NULL(p) => EXPECT_EQ(nullptr, p) UMTEST_EXPECT_NOT_NULL(p) => EXPECT_NE(nullptr, p) BUG=None TEST=FEATURES=test emerge-link update_engine USE="clang asan" FEATURES=test emerge-link update_engine Change-Id: I77a42a1e9ce992bb2f9f263db5cf75fe6110a4ec Reviewed-on: https://chromium-review.googlesource.com/215136 Tested-by: Alex Vakulenko <avakulenko@chromium.org> Reviewed-by: Alex Deymo <deymo@chromium.org> Commit-Queue: Alex Vakulenko <avakulenko@chromium.org>
/system/update_engine/p2p_manager.cc
|
44666f97392f1f0f8be292fe6a4edcf9237540df |
|
23-Jul-2014 |
Alex Deymo <deymo@chromium.org> |
update_engine: Remove dependency on libupdate_engine from the client. The update_engine_client is a very small DBus client that only depends on a single utils:: function from the update_engine daemon codebase. Because of this, it was forced to be linked against many libraries that it didn't use. This patch factors out this glib helper function to a new glib_utils.{cc,h} file and includes only that in the update_engine_client binary. BUG=chromium:396440 TEST=FEATURES=test emerge-link update_engine Change-Id: Icf8d8b3c6ebd22cdb39e6674fb3d9071071ec941 Reviewed-on: https://chromium-review.googlesource.com/209472 Reviewed-by: David Zeuthen <zeuthen@chromium.org> Tested-by: Alex Deymo <deymo@chromium.org> Commit-Queue: Alex Vakulenko <avakulenko@chromium.org>
/system/update_engine/p2p_manager.cc
|
072359ca138504065e1e0c1189eb38c09576d324 |
|
18-Jul-2014 |
Alex Vakulenko <avakulenko@chromium.org> |
update_engine: fixed remaining linter and some spelling errors Fixed remaining errors from cpplint as well as some spelling errors mostly in comments. BUG=None TEST=FEATURES=test emerge-link update_engine Change-Id: I484988ab846ac5a3c68c016ddccfb247f225ec27 Reviewed-on: https://chromium-review.googlesource.com/208897 Reviewed-by: Alex Vakulenko <avakulenko@chromium.org> Commit-Queue: Alex Vakulenko <avakulenko@chromium.org> Tested-by: Alex Vakulenko <avakulenko@chromium.org>
/system/update_engine/p2p_manager.cc
|
d2779df63aaad8b65fc5d4badee7dbc9bed7f2b6 |
|
16-Jun-2014 |
Alex Vakulenko <avakulenko@chromium.org> |
update_engine: fixed warnings from cpplint Fixed all the cpplint warnings in update engine. BUG=None TEST=Unit tests still pass. Change-Id: I285ae858eec8abe0b26ff203b99a42a200ceb71c Reviewed-on: https://chromium-review.googlesource.com/204027 Reviewed-by: Alex Vakulenko <avakulenko@chromium.org> Tested-by: Alex Vakulenko <avakulenko@chromium.org> Commit-Queue: Alex Vakulenko <avakulenko@chromium.org>
/system/update_engine/p2p_manager.cc
|
75039d7397f03dff77bdf4e26398049ff88edc4c |
|
25-Mar-2014 |
Alex Vakulenko <avakulenko@chromium.org> |
update_engine: update to libbase 242728 Made update_engine link with libchrome-242728 and fixed compile issues due to changes in namespaces and include file layout. Also removed some of suppressed compiler warnings and fixed the issues masked by them (e.g. mismatched printf-like specifiers). Added -Wextra compiler option to enable additional useful warnings to ensure more strict checking... Had to disable "unused-parameter" though since we have a lot of functions (mainly in fakes) that do not use all of their parameters. BUG=chromium:351593 TEST=Unit tests passed. CQ-DEPEND=CL:191721 Change-Id: I1aa63a48d5f1f4ea75ba6b00aec7aa5f3bad15c4 Reviewed-on: https://chromium-review.googlesource.com/191510 Reviewed-by: Alex Vakulenko <avakulenko@chromium.org> Commit-Queue: Alex Vakulenko <avakulenko@chromium.org> Tested-by: Alex Vakulenko <avakulenko@chromium.org>
/system/update_engine/p2p_manager.cc
|
910ec5b95d98c81edc5a8d40bc0210b0559f371b |
|
26-Sep-2013 |
David Zeuthen <zeuthen@chromium.org> |
p2p: Skip some tests if xattr support is not available. This is needed because some builders still lack xattr / fallocate support despite being updated to Precise. Also gracefully handle lack of fallocate(2) support since this feature is not always available either. BUG=chromium:298397 TEST=Remounted the filesystem holding my chroot with nouser_xattr (e.g. 'mount -oremount,nouser_xattr /ssd') and unit tests pass with the newly added warning. Change-Id: I0fe53d762fad778a3d68162ddcd8bc74557fba6b Reviewed-on: https://chromium-review.googlesource.com/170782 Reviewed-by: Alex Deymo <deymo@chromium.org> Tested-by: David Zeuthen <zeuthen@chromium.org> Commit-Queue: David Zeuthen <zeuthen@chromium.org>
/system/update_engine/p2p_manager.cc
|
92d9c8bc5cd418e34944d6fc4bae44e3b4370246 |
|
11-Sep-2013 |
David Zeuthen <zeuthen@chromium.org> |
Also use DevicePolicy::GetAuP2PEnabled() to determine if p2p is enabled With this change update_engine will use p2p either if the user has manually enabled it (through the crosh flag) OR if the enterprise has enabled it in Enterprise Policy. BUG=chromium:260442 TEST=New unit tests + unit tests pass. Change-Id: I54cd92c481bd2fd7c90232d7137ce2b37fa2ce61 Reviewed-on: https://chromium-review.googlesource.com/168950 Reviewed-by: Chris Sosa <sosa@chromium.org> Commit-Queue: David Zeuthen <zeuthen@chromium.org> Tested-by: David Zeuthen <zeuthen@chromium.org>
/system/update_engine/p2p_manager.cc
|
27a48bc3f2531166370c214f7a21e17fb1fc7af1 |
|
06-Aug-2013 |
David Zeuthen <zeuthen@chromium.org> |
p2p: Add P2PManager class This class makes it simple to use p2p both as a client and a server. For now, this feature is hidden behind a flag. The intent is that this flag can be toggled with the crosh command - for now, only the reading of the flag is implemented - see chromium:260441 for the remaining work. BUG=chromium:260426,chromium:260441 TEST=New unit tests + unit tests pass Change-Id: If1879f4535c8e7e3af7c6d378e6df4054264b794 Reviewed-on: https://chromium-review.googlesource.com/64824 Reviewed-by: David Zeuthen <zeuthen@chromium.org> Commit-Queue: David Zeuthen <zeuthen@chromium.org> Tested-by: David Zeuthen <zeuthen@chromium.org>
/system/update_engine/p2p_manager.cc
|