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

Unified Diff: ios/chrome/app/main_controller.mm

Issue 2597933003: [ios] Removed CookieStoreIOS::UnSynchronize. (Closed)
Patch Set: Actually fixed compilation Created 4 years 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 | ios/net/cookies/cookie_store_ios.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ios/chrome/app/main_controller.mm
diff --git a/ios/chrome/app/main_controller.mm b/ios/chrome/app/main_controller.mm
index a2ac1bc729959442a7b11763fff9a8e968769aeb..842f2346b61af2e1a6df2f30b5ede79b0a008073 100644
--- a/ios/chrome/app/main_controller.mm
+++ b/ios/chrome/app/main_controller.mm
@@ -217,20 +217,6 @@ void RegisterComponentsForUpdate() {
GetApplicationContext()->GetCRLSetFetcher()->StartInitialLoad(cus, path);
}
-// Unsynchronizes the cookie store associated to |browserState| on the IO
-// thread.
-void UnSynchronizeCookieStore(ios::ChromeBrowserState* browserState) {
- DCHECK(browserState);
- scoped_refptr<net::URLRequestContextGetter> getter =
- browserState->GetRequestContext();
- web::WebThread::PostTask(
- web::WebThread::IO, FROM_HERE, base::BindBlock(^{
- net::CookieStoreIOS* store = static_cast<net::CookieStoreIOS*>(
- getter->GetURLRequestContext()->cookie_store());
- store->UnSynchronize();
- }));
-}
-
// Returns YES if |url| matches chrome://newtab.
BOOL IsURLNtp(const GURL& url) {
return UrlHasChromeScheme(url) && url.host() == kChromeUINewTabHost;
@@ -1746,8 +1732,6 @@ enum class StackViewDismissalMode { NONE, NORMAL, INCOGNITO };
- (void)lastIncognitoTabClosed {
DCHECK(_mainBrowserState->HasOffTheRecordChromeBrowserState());
[self clearIOSSpecificIncognitoData];
- UnSynchronizeCookieStore(
- _mainBrowserState->GetOffTheRecordChromeBrowserState());
// OffTheRecordProfileIOData cannot be deleted before all the requests are
// deleted. All of the request trackers associated with the closed OTR tabs
« no previous file with comments | « no previous file | ios/net/cookies/cookie_store_ios.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698