Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(825)

Unified Diff: content/browser/net/sqlite_persistent_cookie_store.cc

Issue 294973002: Remove workaround for Cookie Manager Command Line (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Remove WebView cookie store work around Created 6 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/net/sqlite_persistent_cookie_store.cc
diff --git a/content/browser/net/sqlite_persistent_cookie_store.cc b/content/browser/net/sqlite_persistent_cookie_store.cc
index b7b5bf5292c0c82bae3a8cf1782cf354021dbe44..1009d29c626358e3f990541de3d08733cba258c7 100644
--- a/content/browser/net/sqlite_persistent_cookie_store.cc
+++ b/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);
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698