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

Unified Diff: chrome/service/service_main.cc

Issue 9865018: Enable cookies per default in net. Add an API to disable them by default, and do that in Chrome (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: updates Created 8 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 | « chrome/browser/chrome_browser_main.cc ('k') | net/url_request/url_request.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/service/service_main.cc
diff --git a/chrome/service/service_main.cc b/chrome/service/service_main.cc
index bcde1badbfa05116ad3ca97ddfd37b6e35cb7c9d..b0ff5df6bc7680cf53b04bb44ec4eea40bfa3f0e 100644
--- a/chrome/service/service_main.cc
+++ b/chrome/service/service_main.cc
@@ -8,6 +8,7 @@
#include "chrome/common/service_process_util.h"
#include "chrome/service/service_process.h"
#include "content/public/common/main_function_params.h"
+#include "net/url_request/url_request.h"
#if defined(OS_WIN)
#include "content/common/sandbox_policy.h"
@@ -18,6 +19,10 @@
// Mainline routine for running as the service process.
int ServiceProcessMain(const content::MainFunctionParams& parameters) {
+ // Chrome disallows cookies by default. All code paths that want to use
+ // cookies should go through the browser process.
+ net::URLRequest::SetDefaultCookiePolicyToBlock();
+
#if defined(OS_MACOSX)
chrome_service_application_mac::RegisterServiceApp();
#endif
« no previous file with comments | « chrome/browser/chrome_browser_main.cc ('k') | net/url_request/url_request.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698