blob: aae1d6283f38ecd6ac53f07201840a6c0d0128ea [file] [log] [blame]
// Copyright (c) 2012 The Chromium OS Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "string_helpers.h"
#include <base/strings/string_util.h>
namespace mtpd {
std::string EnsureUTF8String(const std::string& str) {
return base::IsStringUTF8(str) ? str : "";
}
} // namespace