Commit 86eaaa30 authored by Lei Zhang's avatar Lei Zhang Committed by Commit Bot

Remove NOTREACHED handling in base::CpuInfoBrand().

If the not reachable code handling code gets removed, the rest of the
function works just fine and correctly returns an empty string.

Change-Id: Ia41522564ff242c097463ec804cf868a7b4f7784
Reviewed-on: https://chromium-review.googlesource.com/792298Reviewed-by: default avatarDavid Trainor <dtrainor@chromium.org>
Commit-Queue: Lei Zhang <thestig@chromium.org>
Cr-Commit-Position: refs/heads/master@{#519826}
parent 3d00e383
......@@ -107,9 +107,6 @@ std::string* CpuInfoBrand() {
std::string contents;
ReadFileToString(FilePath("/proc/cpuinfo"), &contents);
DCHECK(!contents.empty());
if (contents.empty()) {
return new std::string();
}
std::istringstream iss(contents);
std::string line;
......
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