Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit b65e80e5 authored by Bertrand Simonnet's avatar Bertrand Simonnet Committed by android-build-merger
Browse files

Merge "metricsd: Add more assert clause."

am: 8f8ce0c3

* commit '8f8ce0c3':
  metricsd: Add more assert clause.
parents 4ac60013 8f8ce0c3
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -85,5 +85,6 @@ void MetricsLog::IncrementUncleanShutdownCount(unsigned int count) {
}

bool MetricsLog::PopulateSystemProfile(SystemProfileSetter* profile_setter) {
  CHECK(profile_setter);
  return profile_setter->Populate(uma_proto());
}
+4 −0
Original line number Diff line number Diff line
@@ -80,6 +80,10 @@ bool SystemProfileCache::Initialize() {
  } else {
    reader.Load();
    auto client = update_engine::UpdateEngineClient::CreateInstance();
    if (!client) {
      LOG(ERROR) << "failed to create the update engine client";
      return false;
    }
    if (!client->GetChannel(&channel)) {
      LOG(ERROR) << "failed to read the current channel from update engine.";
      return false;