| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "content/browser/net/sqlite_persistent_cookie_store.h" | 5 #include "content/browser/net/sqlite_persistent_cookie_store.h" |
| 6 | 6 |
| 7 #include <list> | 7 #include <list> |
| 8 #include <map> | 8 #include <map> |
| 9 #include <set> | 9 #include <set> |
| 10 #include <utility> | 10 #include <utility> |
| (...skipping 1420 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1431 cookie_monster = | 1431 cookie_monster = |
| 1432 new net::CookieMonster(persistent_store, config.cookie_delegate.get()); | 1432 new net::CookieMonster(persistent_store, config.cookie_delegate.get()); |
| 1433 if ((config.session_cookie_mode == | 1433 if ((config.session_cookie_mode == |
| 1434 CookieStoreConfig::PERSISTANT_SESSION_COOKIES) || | 1434 CookieStoreConfig::PERSISTANT_SESSION_COOKIES) || |
| 1435 (config.session_cookie_mode == | 1435 (config.session_cookie_mode == |
| 1436 CookieStoreConfig::RESTORED_SESSION_COOKIES)) { | 1436 CookieStoreConfig::RESTORED_SESSION_COOKIES)) { |
| 1437 cookie_monster->SetPersistSessionCookies(true); | 1437 cookie_monster->SetPersistSessionCookies(true); |
| 1438 } | 1438 } |
| 1439 } | 1439 } |
| 1440 | 1440 |
| 1441 if (CommandLine::ForCurrentProcess()->HasSwitch( | 1441 if (base::CommandLine::ForCurrentProcess()->HasSwitch( |
| 1442 switches::kEnableFileCookies)) { | 1442 switches::kEnableFileCookies)) { |
| 1443 cookie_monster->SetEnableFileScheme(true); | 1443 cookie_monster->SetEnableFileScheme(true); |
| 1444 } | 1444 } |
| 1445 | 1445 |
| 1446 return cookie_monster; | 1446 return cookie_monster; |
| 1447 } | 1447 } |
| 1448 | 1448 |
| 1449 } // namespace content | 1449 } // namespace content |
| OLD | NEW |