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

Unified Diff: chrome/browser/android/cookies/cookies_fetcher.cc

Issue 1894213003: android: Fix CanonicalCookie same_site field (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: comment Created 4 years, 8 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 | « chrome/android/junit/src/org/chromium/chrome/browser/cookies/CanonicalCookieTest.java ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/android/cookies/cookies_fetcher.cc
diff --git a/chrome/browser/android/cookies/cookies_fetcher.cc b/chrome/browser/android/cookies/cookies_fetcher.cc
index b205491691bdfc7bfdba31a2f7b4f8cf91edb07a..9ed94722ee9ce14e3fa75a76bce9af25f2d0e756 100644
--- a/chrome/browser/android/cookies/cookies_fetcher.cc
+++ b/chrome/browser/android/cookies/cookies_fetcher.cc
@@ -134,7 +134,7 @@ static void RestoreCookies(JNIEnv* env,
jlong last_access,
jboolean secure,
jboolean httponly,
- jboolean same_site,
+ jint same_site,
jint priority) {
Profile* profile = ProfileManager::GetPrimaryUserProfile();
if (!profile->HasOffTheRecordProfile()) {
@@ -154,8 +154,7 @@ static void RestoreCookies(JNIEnv* env,
base::Time::FromInternalValue(creation),
base::Time::FromInternalValue(expiration),
base::Time::FromInternalValue(last_access), secure, httponly,
- same_site ? net::CookieSameSite::LAX_MODE
- : net::CookieSameSite::NO_RESTRICTION,
+ static_cast<net::CookieSameSite>(same_site),
static_cast<net::CookiePriority>(priority));
// The rest must be done from the IO thread.
« no previous file with comments | « chrome/android/junit/src/org/chromium/chrome/browser/cookies/CanonicalCookieTest.java ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698