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

Side by Side Diff: ios/web/shell/view_controller.mm

Issue 2596653003: [ios] Removed CookieStoreIOS::SetCookiePolicy. (Closed)
Patch Set: Created 3 years, 12 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 unified diff | Download patch
« no previous file with comments | « ios/web/public/web_capabilities.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 #import "ios/web/shell/view_controller.h" 5 #import "ios/web/shell/view_controller.h"
6 6
7 #import <MobileCoreServices/MobileCoreServices.h> 7 #import <MobileCoreServices/MobileCoreServices.h>
8 8
9 #include <stdint.h> 9 #include <stdint.h>
10 10
11 #include <memory> 11 #include <memory>
12 #include <utility> 12 #include <utility>
13 13
14 #import "base/mac/scoped_nsobject.h" 14 #import "base/mac/scoped_nsobject.h"
15 #include "base/strings/sys_string_conversions.h" 15 #include "base/strings/sys_string_conversions.h"
16 #include "ios/net/cookies/cookie_store_ios.h"
17 #import "ios/net/crn_http_protocol_handler.h" 16 #import "ios/net/crn_http_protocol_handler.h"
18 #import "ios/net/empty_nsurlcache.h" 17 #import "ios/net/empty_nsurlcache.h"
19 #import "ios/net/request_tracker.h" 18 #import "ios/net/request_tracker.h"
20 #import "ios/web/public/navigation_manager.h" 19 #import "ios/web/public/navigation_manager.h"
21 #include "ios/web/public/referrer.h" 20 #include "ios/web/public/referrer.h"
22 #import "ios/web/public/web_state/context_menu_params.h" 21 #import "ios/web/public/web_state/context_menu_params.h"
23 #include "ios/web/public/web_state/web_state.h" 22 #include "ios/web/public/web_state/web_state.h"
24 #import "ios/web/public/web_state/web_state_delegate_bridge.h" 23 #import "ios/web/public/web_state/web_state_delegate_bridge.h"
25 #import "ios/web/public/web_state/web_state_observer_bridge.h" 24 #import "ios/web/public/web_state/web_state_observer_bridge.h"
26 #import "net/base/mac/url_conversions.h" 25 #import "net/base/mac/url_conversions.h"
(...skipping 131 matching lines...) Expand 10 before | Expand all | Expand 10 after
158 return _webState->GetNavigationManager(); 157 return _webState->GetNavigationManager();
159 } 158 }
160 159
161 - (web::WebState*)webState { 160 - (web::WebState*)webState {
162 return _webState.get(); 161 return _webState.get();
163 } 162 }
164 163
165 - (void)setUpNetworkStack { 164 - (void)setUpNetworkStack {
166 // Disable the default cache. 165 // Disable the default cache.
167 [NSURLCache setSharedURLCache:[EmptyNSURLCache emptyNSURLCache]]; 166 [NSURLCache setSharedURLCache:[EmptyNSURLCache emptyNSURLCache]];
168 net::CookieStoreIOS::SetCookiePolicy(net::CookieStoreIOS::ALLOW);
169 } 167 }
170 168
171 - (void)didReceiveMemoryWarning { 169 - (void)didReceiveMemoryWarning {
172 [super didReceiveMemoryWarning]; 170 [super didReceiveMemoryWarning];
173 } 171 }
174 172
175 - (UIBarPosition)positionForBar:(id<UIBarPositioning>)bar { 173 - (UIBarPosition)positionForBar:(id<UIBarPositioning>)bar {
176 if (bar == _toolbarView) { 174 if (bar == _toolbarView) {
177 return UIBarPositionTopAttached; 175 return UIBarPositionTopAttached;
178 } 176 }
(...skipping 141 matching lines...) Expand 10 before | Expand all | Expand 10 after
320 [alert addAction:[UIAlertAction actionWithTitle:@"Cancel" 318 [alert addAction:[UIAlertAction actionWithTitle:@"Cancel"
321 style:UIAlertActionStyleCancel 319 style:UIAlertActionStyleCancel
322 handler:nil]]; 320 handler:nil]];
323 321
324 [self presentViewController:alert animated:YES completion:nil]; 322 [self presentViewController:alert animated:YES completion:nil];
325 323
326 return YES; 324 return YES;
327 } 325 }
328 326
329 @end 327 @end
OLDNEW
« no previous file with comments | « ios/web/public/web_capabilities.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698