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 1307 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1318 } | 1318 } |
1319 | 1319 |
1320 // In the case of Android WebView, the cookie store may be created | 1320 // In the case of Android WebView, the cookie store may be created |
1321 // before the browser process fully initializes -- certainly before | 1321 // before the browser process fully initializes -- certainly before |
1322 // the main loop ever runs. In this situation, the CommandLine singleton | 1322 // the main loop ever runs. In this situation, the CommandLine singleton |
1323 // will not have been set up. Android tests do not need file cookies | 1323 // will not have been set up. Android tests do not need file cookies |
1324 // so always ignore them here. | 1324 // so always ignore them here. |
1325 // | 1325 // |
1326 // TODO(ajwong): Remove the InitializedForCurrentProcess() check | 1326 // TODO(ajwong): Remove the InitializedForCurrentProcess() check |
1327 // once http://crbug.com/331424 is resolved. | 1327 // once http://crbug.com/331424 is resolved. |
1328 if (CommandLine::InitializedForCurrentProcess() && | 1328 if (base::CommandLine::InitializedForCurrentProcess() && |
1329 CommandLine::ForCurrentProcess()->HasSwitch( | 1329 base::CommandLine::ForCurrentProcess()->HasSwitch( |
1330 switches::kEnableFileCookies)) { | 1330 switches::kEnableFileCookies)) { |
1331 cookie_monster->SetEnableFileScheme(true); | 1331 cookie_monster->SetEnableFileScheme(true); |
1332 } | 1332 } |
1333 | 1333 |
1334 return cookie_monster; | 1334 return cookie_monster; |
1335 } | 1335 } |
1336 | 1336 |
1337 } // namespace content | 1337 } // namespace content |
OLD | NEW |