Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2248)

Unified Diff: utils.cc

Issue 6516026: AU: Make proxy resolution asynchronous. (Closed) Base URL: http://git.chromium.org/git/update_engine.git@master
Patch Set: fix utils.* include paths Created 9 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « utils.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: utils.cc
diff --git a/utils.cc b/utils.cc
index 7206171e89e4dd24534fb975fa9554931c217410..502b0d1ab134092b32411a0695eb1142c2f70159 100644
--- a/utils.cc
+++ b/utils.cc
@@ -26,6 +26,7 @@
#include <base/string_util.h>
#include <base/logging.h>
#include <cros_boot_mode/boot_mode.h>
+#include <google/protobuf/stubs/common.h>
#include <rootdev/rootdev.h>
#include "update_engine/file_writer.h"
@@ -551,6 +552,13 @@ int FuzzInt(int value, unsigned int range) {
return base::RandInt(min, max);
}
+gboolean GlibRunClosure(gpointer data) {
+ google::protobuf::Closure* callback =
+ reinterpret_cast<google::protobuf::Closure*>(data);
+ callback->Run();
+ return FALSE;
+}
+
const char* const kStatefulPartition = "/mnt/stateful_partition";
} // namespace utils
« no previous file with comments | « utils.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698