diff options
author | abarth@chromium.org <abarth@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-05-08 20:55:08 +0000 |
---|---|---|
committer | abarth@chromium.org <abarth@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-05-08 20:55:08 +0000 |
commit | 8da62399aa12530f7671eba3340b18aab9f659be (patch) | |
tree | 699688b99672b3e81f85cacf692eb2d1f33efeec /net/url_request/url_request.cc | |
parent | a2176798cd1bd8a69b4bb8fd5b94e13423a3a345 (diff) | |
download | chromium_src-8da62399aa12530f7671eba3340b18aab9f659be.zip chromium_src-8da62399aa12530f7671eba3340b18aab9f659be.tar.gz chromium_src-8da62399aa12530f7671eba3340b18aab9f659be.tar.bz2 |
Add a command-line flag for MAC cookies.
Currently, this flag isn't wired up to anything yet. That will come in
http://codereview.chromium.org/6901147/.
Review URL: http://codereview.chromium.org/6953012
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@84591 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'net/url_request/url_request.cc')
-rw-r--r-- | net/url_request/url_request.cc | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/net/url_request/url_request.cc b/net/url_request/url_request.cc index d1d46bfb..cb6a4ed 100644 --- a/net/url_request/url_request.cc +++ b/net/url_request/url_request.cc @@ -32,6 +32,8 @@ namespace net { namespace { +static bool g_mac_cookies_enabled = false; + // Max number of http redirects to follow. Same number as gecko. const int kMaxRedirects = 20; @@ -328,6 +330,15 @@ bool URLRequest::IsFileAccessAllowed() { return URLRequestJobManager::GetInstance()->enable_file_access(); } +// static +void URLRequest::EnableMacCookies() { + g_mac_cookies_enabled = true; +} + +// static +bool URLRequest::AreMacCookiesEnabled() { + return g_mac_cookies_enabled; +} void URLRequest::set_first_party_for_cookies( const GURL& first_party_for_cookies) { |