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

Side by Side Diff: ios/chrome/browser/browser_state/off_the_record_chrome_browser_state_io_data.mm

Issue 2785493003: Disable SDCH by Default (Closed)
Patch Set: Clean up IOS compilation errors and remove from IOS OTR profile. Created 3 years, 8 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/chrome/browser/browser_state/off_the_record_chrome_browser_state_io_data.h ('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 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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 "ios/chrome/browser/browser_state/off_the_record_chrome_browser_state_i o_data.h" 5 #include "ios/chrome/browser/browser_state/off_the_record_chrome_browser_state_i o_data.h"
6 6
7 #import <UIKit/UIKit.h> 7 #import <UIKit/UIKit.h>
8 8
9 #include <utility> 9 #include <utility>
10 10
(...skipping 197 matching lines...) Expand 10 before | Expand all | Expand 10 after
208 208
209 main_context->set_http_transaction_factory(main_http_factory_.get()); 209 main_context->set_http_transaction_factory(main_http_factory_.get());
210 210
211 std::unique_ptr<net::URLRequestJobFactoryImpl> main_job_factory( 211 std::unique_ptr<net::URLRequestJobFactoryImpl> main_job_factory(
212 new net::URLRequestJobFactoryImpl()); 212 new net::URLRequestJobFactoryImpl());
213 213
214 InstallProtocolHandlers(main_job_factory.get(), protocol_handlers); 214 InstallProtocolHandlers(main_job_factory.get(), protocol_handlers);
215 main_job_factory_ = SetUpJobFactoryDefaults(std::move(main_job_factory), 215 main_job_factory_ = SetUpJobFactoryDefaults(std::move(main_job_factory),
216 main_context->network_delegate()); 216 main_context->network_delegate());
217 main_context->set_job_factory(main_job_factory_.get()); 217 main_context->set_job_factory(main_job_factory_.get());
218
219 // Setup SDCH for this profile.
220 sdch_manager_.reset(new net::SdchManager);
221 sdch_policy_.reset(new net::SdchOwner(sdch_manager_.get(), main_context));
222 main_context->set_sdch_manager(sdch_manager_.get());
223 } 218 }
224 219
225 ChromeBrowserStateIOData::AppRequestContext* 220 ChromeBrowserStateIOData::AppRequestContext*
226 OffTheRecordChromeBrowserStateIOData::InitializeAppRequestContext( 221 OffTheRecordChromeBrowserStateIOData::InitializeAppRequestContext(
227 net::URLRequestContext* main_context) const { 222 net::URLRequestContext* main_context) const {
228 NOTREACHED(); 223 NOTREACHED();
229 return nullptr; 224 return nullptr;
230 } 225 }
231 226
232 ChromeBrowserStateIOData::AppRequestContext* 227 ChromeBrowserStateIOData::AppRequestContext*
233 OffTheRecordChromeBrowserStateIOData::AcquireIsolatedAppRequestContext( 228 OffTheRecordChromeBrowserStateIOData::AcquireIsolatedAppRequestContext(
234 net::URLRequestContext* main_context) const { 229 net::URLRequestContext* main_context) const {
235 NOTREACHED(); 230 NOTREACHED();
236 return nullptr; 231 return nullptr;
237 } 232 }
OLDNEW
« no previous file with comments | « ios/chrome/browser/browser_state/off_the_record_chrome_browser_state_io_data.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698