X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=src%2Fcontent%2Fbrowser%2Fnet%2Fsqlite_persistent_cookie_store.cc;h=1009d29c626358e3f990541de3d08733cba258c7;hb=1afa4dd80ef85af7c90efaea6959db1d92330844;hp=b7b5bf5292c0c82bae3a8cf1782cf354021dbe44;hpb=90762837333c13ccf56f2ad88e4481fc71e8d281;p=platform%2Fframework%2Fweb%2Fcrosswalk.git diff --git a/src/content/browser/net/sqlite_persistent_cookie_store.cc b/src/content/browser/net/sqlite_persistent_cookie_store.cc index b7b5bf5..1009d29 100644 --- a/src/content/browser/net/sqlite_persistent_cookie_store.cc +++ b/src/content/browser/net/sqlite_persistent_cookie_store.cc @@ -1317,16 +1317,7 @@ net::CookieStore* CreateCookieStore(const CookieStoreConfig& config) { } } - // In the case of Android WebView, the cookie store may be created - // before the browser process fully initializes -- certainly before - // the main loop ever runs. In this situation, the CommandLine singleton - // will not have been set up. Android tests do not need file cookies - // so always ignore them here. - // - // TODO(ajwong): Remove the InitializedForCurrentProcess() check - // once http://crbug.com/331424 is resolved. - if (base::CommandLine::InitializedForCurrentProcess() && - base::CommandLine::ForCurrentProcess()->HasSwitch( + if (CommandLine::ForCurrentProcess()->HasSwitch( switches::kEnableFileCookies)) { cookie_monster->SetEnableFileScheme(true); }