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 f94ed4cb72f3a830cd89a34a0f06236d5b1b0af9..662cf0fe64dcc5f3176af36595101dab162af3c1 100644 |
--- a/chrome/browser/android/cookies/cookies_fetcher.cc |
+++ b/chrome/browser/android/cookies/cookies_fetcher.cc |
@@ -151,17 +151,16 @@ static void RestoreCookies(JNIEnv* env, |
scoped_refptr<net::URLRequestContextGetter> getter( |
profile->GetRequestContext()); |
- net::CanonicalCookie cookie(*net::CanonicalCookie::Create( |
+ net::CanonicalCookie cookie( |
base::android::ConvertJavaStringToUTF8(env, name), |
base::android::ConvertJavaStringToUTF8(env, value), |
base::android::ConvertJavaStringToUTF8(env, domain), |
base::android::ConvertJavaStringToUTF8(env, path), |
base::Time::FromInternalValue(creation), |
base::Time::FromInternalValue(expiration), |
- base::Time::FromInternalValue(last_access), |
- secure, httponly, |
+ base::Time::FromInternalValue(last_access), secure, httponly, |
static_cast<net::CookieSameSite>(same_site), |
- static_cast<net::CookiePriority>(priority))); |
+ static_cast<net::CookiePriority>(priority)); |
// The rest must be done from the IO thread. |
content::BrowserThread::PostTask( |