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

Unified Diff: android_webview/native/cookie_manager.cc

Issue 110883017: Add CookieStoreConfig to unify API for in-memory and persistent CookieStore Creation. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: merge ToT again. Created 6 years, 11 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 | chrome/browser/browsing_data/browsing_data_remover_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: android_webview/native/cookie_manager.cc
diff --git a/android_webview/native/cookie_manager.cc b/android_webview/native/cookie_manager.cc
index 4e16a9f73c9d516e9944f3bd9a78831bc5561c9f..310cb431c89559958ed31a68228f666f3c8d13da 100644
--- a/android_webview/native/cookie_manager.cc
+++ b/android_webview/native/cookie_manager.cc
@@ -185,16 +185,14 @@ void CookieManager::CreateCookieMonster(
FROM_HERE,
base::Bind(ImportLegacyCookieStore, cookie_store_path));
- net::CookieStore* cookie_store = content::CreatePersistentCookieStore(
- cookie_store_path,
- true,
- NULL,
- NULL,
- client_task_runner,
- background_task_runner,
- scoped_ptr<content::CookieCryptoDelegate>());
+ content::CookieStoreConfig cookie_config(
+ cookie_store_path,
+ content::CookieStoreConfig::RESTORED_SESSION_COOKIES,
+ NULL, NULL);
+ cookie_config.client_task_runner = client_task_runner;
+ cookie_config.background_task_runner = background_task_runner;
+ net::CookieStore* cookie_store = content::CreateCookieStore(cookie_config);
cookie_monster_ = cookie_store->GetCookieMonster();
- cookie_monster_->SetPersistSessionCookies(true);
SetAcceptFileSchemeCookiesLocked(kDefaultFileSchemeAllowed);
}
« no previous file with comments | « no previous file | chrome/browser/browsing_data/browsing_data_remover_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698