Chromium Code Reviews| Index: chrome/browser/browser_main.cc |
| =================================================================== |
| --- chrome/browser/browser_main.cc (revision 15945) |
| +++ chrome/browser/browser_main.cc (working copy) |
| @@ -49,6 +49,7 @@ |
| #include "grit/chromium_strings.h" |
| #include "grit/generated_resources.h" |
| #include "grit/net_resources.h" |
| +#include "net/base/cookie_monster.h" |
| #include "net/base/net_module.h" |
| #include "net/http/http_network_session.h" |
| @@ -365,6 +366,12 @@ |
| CheckForWin2000(); |
| } |
| + if (parsed_command_line.HasSwitch(switches::kEnableFileCookies)) { |
| + // Enable cookie storage for file:// URLs. Must do this before the first |
| + // Profile (and therefore first CookieMonster) is created. |
|
Dean McNamee
2009/05/14 07:34:38
the first
|
| + net::CookieMonster::EnableFileScheme(); |
| + } |
| + |
| // Initialize histogram statistics gathering system. |
| StatisticsRecorder statistics; |