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() { |