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

Unified Diff: components/signin/core/browser/gaia_cookie_manager_service.cc

Issue 2113863002: components/signin: convert GaiaCookieManagerService to use CanonicalCookie's Create() method. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: leading dot Created 4 years, 6 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/signin/core/browser/gaia_cookie_manager_service.cc
diff --git a/components/signin/core/browser/gaia_cookie_manager_service.cc b/components/signin/core/browser/gaia_cookie_manager_service.cc
index d6b4f01106f052b631d650625200d1f1bbe58e1b..2ccbac1d6bf373e09dd5b0d86ea8e4c881f50d4c 100644
--- a/components/signin/core/browser/gaia_cookie_manager_service.cc
+++ b/components/signin/core/browser/gaia_cookie_manager_service.cc
@@ -378,11 +378,11 @@ void GaiaCookieManagerService::TriggerListAccounts() {
void GaiaCookieManagerService::ForceOnCookieChangedProcessing() {
GURL google_url = GaiaUrls::GetInstance()->google_url();
- net::CanonicalCookie cookie(
- google_url, kGaiaCookieName, "", google_url.host(), "", base::Time(),
- base::Time(), base::Time(), false, false,
- net::CookieSameSite::DEFAULT_MODE, net::COOKIE_PRIORITY_DEFAULT);
- OnCookieChanged(cookie, true);
+ std::unique_ptr<net::CanonicalCookie> cookie(net::CanonicalCookie::Create(
+ google_url, kGaiaCookieName, std::string(), google_url.host(),
tfarina 2016/07/01 12:20:10 Matt, I had to keep host() in order to keep the un
mmenke 2016/07/01 16:21:00 Hrm...that's not a valid URL, and is apparently br
mmenke 2016/07/15 18:47:18 So here's my suggestion (Need to have one of the o
tfarina 2016/07/18 20:00:07 Done.
+ std::string(), base::Time(), base::Time(), false, false,
+ net::CookieSameSite::DEFAULT_MODE, false, net::COOKIE_PRIORITY_DEFAULT));
+ OnCookieChanged(*cookie, true);
}
void GaiaCookieManagerService::LogOutAllAccounts() {
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698