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 |