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

Unified Diff: chrome/browser/browsing_data/browsing_data_helper.cc

Issue 976553002: Remove the '--enable-file-cookies' flag. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Nits. Created 5 years, 9 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/history/history_browsertest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/browsing_data/browsing_data_helper.cc
diff --git a/chrome/browser/browsing_data/browsing_data_helper.cc b/chrome/browser/browsing_data/browsing_data_helper.cc
index 9aa633ec63b81464bf0c01b763cdcba7acce11aa..089a718d9b0f52fd9242388747a5d7fcc7c7305e 100644
--- a/chrome/browser/browsing_data/browsing_data_helper.cc
+++ b/chrome/browser/browsing_data/browsing_data_helper.cc
@@ -4,9 +4,7 @@
#include "chrome/browser/browsing_data/browsing_data_helper.h"
-#include "base/command_line.h"
#include "base/strings/utf_string_conversions.h"
-#include "chrome/common/chrome_switches.h"
#include "chrome/common/url_constants.h"
#include "content/public/browser/child_process_security_policy.h"
#include "extensions/common/constants.h"
@@ -15,14 +13,7 @@
// Static
bool BrowsingDataHelper::IsWebScheme(const std::string& scheme) {
- // Special-case `file://` scheme iff cookies and site data are enabled via
- // the `--allow-file-cookies` CLI flag.
- if (scheme == url::kFileScheme) {
- return base::CommandLine::ForCurrentProcess()->HasSwitch(
- switches::kEnableFileCookies);
- }
-
- // Otherwise, all "web safe" schemes are valid, except `chrome-extension://`
+ // All "web safe" schemes are valid, except `chrome-extension://`
// and `chrome-devtools://`.
content::ChildProcessSecurityPolicy* policy =
content::ChildProcessSecurityPolicy::GetInstance();
« no previous file with comments | « no previous file | chrome/browser/history/history_browsertest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698