Commit 6351d7c3 authored by achuith@chromium.org's avatar achuith@chromium.org

Set oem_manifest_loaded_ to true only after the manifest is actually loaded.

Still seeing log spam because we set oem_manifest_loaded_ to true even if the file doesn't exist.

Follow-up to r239700

BUG=314793
TEST=remove oem manifest.json - should not see spam in log file.

Review URL: https://codereview.chromium.org/448403002

Cr-Commit-Position: refs/heads/master@{#288423}
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@288423 0039d316-1c4b-4281-b951-d872f2087c98
parent a9711bf1
......@@ -267,7 +267,6 @@ void StatisticsProviderImpl::LoadMachineStatistics(bool load_oem_manifest) {
} else if (base::SysInfo::IsRunningOnChromeOS()) {
LoadOemManifestFromFile(base::FilePath(kOemManifestFilePath));
}
oem_manifest_loaded_ = true;
}
if (!base::SysInfo::IsRunningOnChromeOS() &&
......@@ -306,6 +305,7 @@ void StatisticsProviderImpl::LoadOemManifestFromFile(
machine_flags_[kOemKeyboardDrivenOobeKey] =
oem_manifest.keyboard_driven_oobe;
oem_manifest_loaded_ = true;
VLOG(1) << "Loaded OEM Manifest statistics from " << file.value();
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment