Index: chrome/browser/extensions/api/cookies/cookies_helpers.cc |
diff --git a/chrome/browser/extensions/api/cookies/cookies_helpers.cc b/chrome/browser/extensions/api/cookies/cookies_helpers.cc |
index 750bd1e6aed0d001a89a264b92ce90d9bb508d96..c29a93803b70c9f234360aa7ed8b38f75cd8ff2c 100644 |
--- a/chrome/browser/extensions/api/cookies/cookies_helpers.cc |
+++ b/chrome/browser/extensions/api/cookies/cookies_helpers.cc |
@@ -76,8 +76,8 @@ scoped_ptr<Cookie> CreateCookie( |
cookie->host_only = net::cookie_util::DomainIsHostOnly( |
canonical_cookie.Domain()); |
// A non-UTF8 path is invalid, so we just replace it with an empty string. |
- cookie->path = IsStringUTF8(canonical_cookie.Path()) ? canonical_cookie.Path() |
- : std::string(); |
+ cookie->path = base::IsStringUTF8(canonical_cookie.Path()) |
+ ? canonical_cookie.Path() : std::string(); |
cookie->secure = canonical_cookie.IsSecure(); |
cookie->http_only = canonical_cookie.IsHttpOnly(); |
cookie->session = !canonical_cookie.IsPersistent(); |