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

Unified Diff: chrome/browser/extensions/extension_cookies_helpers.cc

Issue 8571008: Revert 110099 - Creation of cookie_utils. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 9 years, 1 month 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
« no previous file with comments | « no previous file | net/base/cookie_monster.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/extensions/extension_cookies_helpers.cc
===================================================================
--- chrome/browser/extensions/extension_cookies_helpers.cc (revision 110104)
+++ chrome/browser/extensions/extension_cookies_helpers.cc (working copy)
@@ -19,7 +19,6 @@
#include "chrome/common/extensions/extension.h"
#include "chrome/common/url_constants.h"
#include "googleurl/src/gurl.h"
-#include "net/base/cookie_utils.h"
namespace keys = extension_cookies_api_constants;
@@ -60,7 +59,7 @@
result->SetString(keys::kValueKey, UTF8ToUTF16(cookie.Value()));
result->SetString(keys::kDomainKey, cookie.Domain());
result->SetBoolean(keys::kHostOnlyKey,
- net::cookie_utils::DomainIsHostOnly(cookie.Domain()));
+ net::CookieMonster::DomainIsHostOnly(cookie.Domain()));
// A non-UTF8 path is invalid, so we just replace it with an empty string.
result->SetString(keys::kPathKey,
@@ -179,12 +178,12 @@
if (!details_->GetString(keys::kDomainKey, &filter_value))
return false;
// Add a leading '.' character to the filter domain if it doesn't exist.
- if (net::cookie_utils::DomainIsHostOnly(filter_value))
+ if (net::CookieMonster::DomainIsHostOnly(filter_value))
filter_value.insert(0, ".");
std::string sub_domain(domain);
// Strip any leading '.' character from the input cookie domain.
- if (!net::cookie_utils::DomainIsHostOnly(sub_domain))
+ if (!net::CookieMonster::DomainIsHostOnly(sub_domain))
sub_domain = sub_domain.substr(1);
// Now check whether the domain argument is a subdomain of the filter domain.
« no previous file with comments | « no previous file | net/base/cookie_monster.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698