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

Side by Side Diff: ios/chrome/browser/web/chrome_web_client.mm

Issue 2797803002: Use TaskScheduler::InitParams to initialize TaskScheduler in web_main_loop.mm. (Closed)
Patch Set: fix-build-error 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/web/chrome_web_client.h ('k') | ios/web/app/web_main_loop.mm » ('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/web/chrome_web_client.h" 5 #include "ios/chrome/browser/web/chrome_web_client.h"
6 6
7 #include "base/command_line.h" 7 #include "base/command_line.h"
8 #include "base/files/file_util.h" 8 #include "base/files/file_util.h"
9 #include "base/ios/ios_util.h" 9 #include "base/ios/ios_util.h"
10 #include "base/mac/bundle_locations.h" 10 #include "base/mac/bundle_locations.h"
(...skipping 153 matching lines...) Expand 10 before | Expand all | Expand 10 after
164 web::WebState* web_state, 164 web::WebState* web_state,
165 int cert_error, 165 int cert_error,
166 const net::SSLInfo& info, 166 const net::SSLInfo& info,
167 const GURL& request_url, 167 const GURL& request_url,
168 bool overridable, 168 bool overridable,
169 const base::Callback<void(bool)>& callback) { 169 const base::Callback<void(bool)>& callback) {
170 IOSSSLErrorHandler::HandleSSLError(web_state, cert_error, info, request_url, 170 IOSSSLErrorHandler::HandleSSLError(web_state, cert_error, info, request_url,
171 overridable, callback); 171 overridable, callback);
172 } 172 }
173 173
174 void ChromeWebClient::GetTaskSchedulerInitializationParams( 174 std::unique_ptr<base::TaskScheduler::InitParams>
175 std::vector<base::SchedulerWorkerPoolParams>* params_vector, 175 ChromeWebClient::GetTaskSchedulerInitParams() {
176 base::TaskScheduler::WorkerPoolIndexForTraitsCallback* 176 return task_scheduler_util::GetBrowserTaskSchedulerInitParamsFromVariations();
177 index_to_traits_callback) {
178 DCHECK(params_vector);
179 DCHECK(index_to_traits_callback);
180 // If this call fails, web will fall back to the default params.
181 *params_vector =
182 task_scheduler_util::GetBrowserWorkerPoolParamsFromVariations();
183 *index_to_traits_callback =
184 base::Bind(&task_scheduler_util::BrowserWorkerPoolIndexForTraits);
185 } 177 }
186 178
187 void ChromeWebClient::PerformExperimentalTaskSchedulerRedirections() { 179 void ChromeWebClient::PerformExperimentalTaskSchedulerRedirections() {
188 task_scheduler_util::MaybePerformBrowserTaskSchedulerRedirection(); 180 task_scheduler_util::MaybePerformBrowserTaskSchedulerRedirection();
189 } 181 }
OLDNEW
« no previous file with comments | « ios/chrome/browser/web/chrome_web_client.h ('k') | ios/web/app/web_main_loop.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698