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

Unified Diff: extensions/browser/api/guest_view/web_view/web_view_internal_api.cc

Issue 2700473003: Support the removal of only session cookies or persistent cookies (Closed)
Patch Set: adding comment Created 3 years, 10 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
Index: extensions/browser/api/guest_view/web_view/web_view_internal_api.cc
diff --git a/extensions/browser/api/guest_view/web_view/web_view_internal_api.cc b/extensions/browser/api/guest_view/web_view/web_view_internal_api.cc
index 179e68e2f8eb62764b9d4e96338ff8d740a5af08..c12db754ddf13d152f1d2a58923048268cff484d 100644
--- a/extensions/browser/api/guest_view/web_view/web_view_internal_api.cc
+++ b/extensions/browser/api/guest_view/web_view/web_view_internal_api.cc
@@ -44,6 +44,8 @@ namespace {
const char kAppCacheKey[] = "appcache";
const char kCacheKey[] = "cache";
const char kCookiesKey[] = "cookies";
+const char kSessionCookiesKey[] = "sessionCookies";
+const char kPersistentCookiesKey[] = "persistentCookies";
const char kFileSystemsKey[] = "fileSystems";
const char kIndexedDBKey[] = "indexedDB";
const char kLocalStorageKey[] = "localStorage";
@@ -61,6 +63,10 @@ uint32_t MaskForKey(const char* key) {
return webview::WEB_VIEW_REMOVE_DATA_MASK_APPCACHE;
if (strcmp(key, kCacheKey) == 0)
return webview::WEB_VIEW_REMOVE_DATA_MASK_CACHE;
+ if (strcmp(key, kSessionCookiesKey) == 0)
+ return webview::WEB_VIEW_REMOVE_DATA_MASK_SESSION_COOKIES;
+ if (strcmp(key, kPersistentCookiesKey) == 0)
+ return webview::WEB_VIEW_REMOVE_DATA_MASK_PERSISTENT_COOKIES;
if (strcmp(key, kCookiesKey) == 0)
return webview::WEB_VIEW_REMOVE_DATA_MASK_COOKIES;
if (strcmp(key, kFileSystemsKey) == 0)

Powered by Google App Engine
This is Rietveld 408576698