bool EqualsASCII(const string16& a, const base::StringPiece& b)
{
    if(a.length() != b.length())
    {
        return false;
    }
    return std::equal(b.begin(), b.end(), a.begin());
}
std::wstring UTF8ToWide(const base::StringPiece& utf8)
{
    std::wstring ret;
    UTF8ToWide(utf8.data(), utf8.length(), &ret);
    return ret;
}