| 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 16cfbaf79e3710c4dbc130bd1ce30896eb7bf00c..20bb878ed72d3da795fdfdbe1ffdee9c745a1e7f 100644
|
| --- a/chrome/browser/android/cookies/cookies_fetcher.cc
|
| +++ b/chrome/browser/android/cookies/cookies_fetcher.cc
|
| @@ -89,6 +89,7 @@ void CookiesFetcher::OnCookiesFetchFinished(const net::CookieList& cookies) {
|
| i->LastAccessDate().ToInternalValue(),
|
| i->IsSecure(),
|
| i->IsHttpOnly(),
|
| + i->IsFirstParty(),
|
| i->Priority());
|
| env->SetObjectArrayElement(joa.obj(), index++, java_cookie.obj());
|
| }
|
| @@ -111,6 +112,7 @@ void CookiesFetcher::RestoreCookies(JNIEnv* env,
|
| int64 last_access,
|
| bool secure,
|
| bool httponly,
|
| + bool firstparty,
|
| int priority) {
|
| Profile* profile = ProfileManager::GetPrimaryUserProfile();
|
| if (!profile->HasOffTheRecordProfile()) {
|
| @@ -130,7 +132,7 @@ void CookiesFetcher::RestoreCookies(JNIEnv* env,
|
| base::Time::FromInternalValue(creation),
|
| base::Time::FromInternalValue(expiration),
|
| base::Time::FromInternalValue(last_access),
|
| - secure, httponly, static_cast<net::CookiePriority>(priority));
|
| + secure, httponly, firstparty, static_cast<net::CookiePriority>(priority));
|
|
|
| // The rest must be done from the IO thread.
|
| content::BrowserThread::PostTask(
|
| @@ -166,6 +168,7 @@ void CookiesFetcher::RestoreToCookieJarInternal(
|
| cookie.ExpiryDate(),
|
| cookie.IsSecure(),
|
| cookie.IsHttpOnly(),
|
| + cookie.IsFirstParty(),
|
| cookie.Priority(),
|
| cb
|
| );
|
|
|