Index: utils.h |
diff --git a/utils.h b/utils.h |
index 9be2509793e9acfaffdee502a2ef4967fd4809a3..f7f734ed322bf38ae2a1fd088e8661b170999b5b 100644 |
--- a/utils.h |
+++ b/utils.h |
@@ -18,6 +18,12 @@ namespace chromeos_update_engine { |
namespace utils { |
+// Returns true if this is an official Chrome OS build, false |
+// otherwise. Currently, this routine errs on the official build side |
+// -- if it doesn't recognize the update track as non-official, it |
+// assumes the build is official. |
+bool IsOfficialBuild(); |
+ |
// Writes the data passed to path. The file at path will be overwritten if it |
// exists. Returns true on success, false otherwise. |
bool WriteFile(const char* path, const char* data, int data_len); |