update_engine: Add locations to the MessageLoop calls.
When running the unittests with --v=1, this patch will show the location
where the tasks were posted to the FakeMessageLoop.
BUG=brillo:91
TEST=Ran unittest with --v=1
Change-Id: I0f9b0a3b67a40c26965a396258f1bd45e38f5ba3
Reviewed-on: https://chromium-review.googlesource.com/280568
Tested-by: Alex Deymo <deymo@chromium.org>
Reviewed-by: Alex Vakulenko <avakulenko@chromium.org>
Commit-Queue: Alex Deymo <deymo@chromium.org>
diff --git a/update_manager/variable.h b/update_manager/variable.h
index 9f80461..7ce2af8 100644
--- a/update_manager/variable.h
+++ b/update_manager/variable.h
@@ -10,6 +10,7 @@
#include <string>
#include <base/bind.h>
+#include <base/location.h>
#include <base/logging.h>
#include <base/time/time.h>
#include <chromeos/message_loops/message_loop.h>
@@ -108,6 +109,7 @@
// first the list of observers.
if (!observer_list_.empty()) {
chromeos::MessageLoop::current()->PostTask(
+ FROM_HERE,
base::Bind(&BaseVariable::OnValueChangedNotification,
base::Unretained(this)));
}