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

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

Issue 2730213002: Clean up dependencies of //ios/chrome/browser/browser_state. (Closed)
Patch Set: Created 3 years, 9 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/BUILD.gn ('k') | ios/chrome/browser/net/BUILD.gn » ('j') | 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 #include "ios/chrome/browser/browser_state/chrome_browser_state.h" 5 #include "ios/chrome/browser/browser_state/chrome_browser_state.h"
6 6
7 #include <utility> 7 #include <utility>
8 8
9 #include "base/files/file_path.h" 9 #include "base/files/file_path.h"
10 #include "base/logging.h" 10 #include "base/logging.h"
11 #include "base/sequenced_task_runner.h" 11 #include "base/sequenced_task_runner.h"
12 #include "components/prefs/json_pref_store.h" 12 #include "components/prefs/json_pref_store.h"
13 #include "components/sync_preferences/pref_service_syncable.h" 13 #include "components/sync_preferences/pref_service_syncable.h"
14 #include "ios/chrome/browser/chrome_url_constants.h" 14 #include "ios/chrome/browser/chrome_url_constants.h"
15 #include "ios/chrome/browser/net/ios_chrome_url_request_context_getter.h"
16 #include "ios/web/public/web_state/web_state.h" 15 #include "ios/web/public/web_state/web_state.h"
17 #include "ios/web/public/web_thread.h" 16 #include "ios/web/public/web_thread.h"
18 #include "ios/web/public/webui/web_ui_ios.h" 17 #include "ios/web/public/webui/web_ui_ios.h"
19 #include "ios/web/webui/url_data_manager_ios_backend.h" 18 #include "ios/web/webui/url_data_manager_ios_backend.h"
19 #include "net/url_request/url_request_context_getter.h"
20 #include "net/url_request/url_request_interceptor.h" 20 #include "net/url_request/url_request_interceptor.h"
21 21
22 #if !defined(__has_feature) || !__has_feature(objc_arc) 22 #if !defined(__has_feature) || !__has_feature(objc_arc)
23 #error "This file requires ARC support." 23 #error "This file requires ARC support."
24 #endif 24 #endif
25 25
26 namespace ios { 26 namespace ios {
27 27
28 ChromeBrowserState::ChromeBrowserState() {} 28 ChromeBrowserState::ChromeBrowserState() {}
29 29
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
76 web::URLDataManagerIOSBackend::CreateProtocolHandler(this) 76 web::URLDataManagerIOSBackend::CreateProtocolHandler(this)
77 .release()); 77 .release());
78 URLRequestInterceptorScopedVector request_interceptors; 78 URLRequestInterceptorScopedVector request_interceptors;
79 request_context_getter_ = make_scoped_refptr(CreateRequestContext( 79 request_context_getter_ = make_scoped_refptr(CreateRequestContext(
80 &protocol_handlers, std::move(request_interceptors))); 80 &protocol_handlers, std::move(request_interceptors)));
81 } 81 }
82 return request_context_getter_.get(); 82 return request_context_getter_.get();
83 } 83 }
84 84
85 } // namespace ios 85 } // namespace ios
OLDNEW
« no previous file with comments | « ios/chrome/browser/browser_state/BUILD.gn ('k') | ios/chrome/browser/net/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698