blob: 9ba94d2599ea5234df521df93da16e9e4546676b [file] [log] [blame]
// Copyright 2018 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "media/cast/net/transport_util.h"
namespace media {
namespace cast {
namespace transport_util {
int LookupOptionWithDefault(const base::Value::Dict& options,
const std::string& path,
int default_value) {
return options.FindInt(path).value_or(default_value);
}
} // namespace transport_util
} // namespace cast
} // namespace media