Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(159)

Unified Diff: trunk/src/chrome/browser/extensions/api/cookies/cookies_helpers.cc

Issue 198163004: Revert 257524 "Move IsStringASCII/UTF8 to base namespace." (Closed) Base URL: svn://svn.chromium.org/chrome/
Patch Set: Created 6 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: trunk/src/chrome/browser/extensions/api/cookies/cookies_helpers.cc
===================================================================
--- trunk/src/chrome/browser/extensions/api/cookies/cookies_helpers.cc (revision 257532)
+++ trunk/src/chrome/browser/extensions/api/cookies/cookies_helpers.cc (working copy)
@@ -76,8 +76,8 @@
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 = base::IsStringUTF8(canonical_cookie.Path())
- ? canonical_cookie.Path() : std::string();
+ cookie->path = 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();

Powered by Google App Engine
This is Rietveld 408576698