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

Unified Diff: utils.h

Issue 3041044: Don't schedule periodic update checks for non-official builds. (Closed) Base URL: ssh://git@gitrw.chromium.org:9222/update_engine.git
Patch Set: Fix persistent storage on stack bug. Created 10 years, 5 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 | « main.cc ('k') | utils.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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);
« no previous file with comments | « main.cc ('k') | utils.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698