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

Unified Diff: utils.cc

Issue 3965001: AU: Restrict URL/version change over D-Bus to non-official builds only. (Closed) Base URL: ssh://git@gitrw.chromium.org:9222/update_engine.git
Patch Set: Created 10 years, 2 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 c8a4da64e29cf1d23037a4b9c7c329ccc593ef72..162fe7b8d9ea51c59c19491beee4a861707bd080 100644
--- a/utils.cc
+++ b/utils.cc
@@ -39,14 +39,10 @@ namespace chromeos_update_engine {
namespace utils {
static const char kOOBECompletedMarker[] = "/home/chronos/.oobe_completed";
+static const char kDevImageMarker[] = "/root/.dev_mode";
bool IsOfficialBuild() {
- OmahaRequestDeviceParams params;
- if (!params.Init("", "")) {
- return true;
- }
- return params.app_track != "buildbot-build" &&
- params.app_track != "developer-build";
+ return !file_util::PathExists(FilePath(kDevImageMarker));
}
bool IsOOBEComplete() {
« 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