OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 "chrome/browser/chrome_content_browser_client.h" | 5 #include "chrome/browser/chrome_content_browser_client.h" |
6 | 6 |
7 #include <map> | 7 #include <map> |
8 #include <set> | 8 #include <set> |
9 #include <utility> | 9 #include <utility> |
10 #include <vector> | 10 #include <vector> |
(...skipping 3354 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3365 *index_to_traits_callback = base::Bind(&task_scheduler_util::initialization:: | 3365 *index_to_traits_callback = base::Bind(&task_scheduler_util::initialization:: |
3366 BrowserWorkerPoolIndexForTraits); | 3366 BrowserWorkerPoolIndexForTraits); |
3367 } | 3367 } |
3368 | 3368 |
3369 void ChromeContentBrowserClient:: | 3369 void ChromeContentBrowserClient:: |
3370 PerformExperimentalTaskSchedulerRedirections() { | 3370 PerformExperimentalTaskSchedulerRedirections() { |
3371 task_scheduler_util::variations:: | 3371 task_scheduler_util::variations:: |
3372 MaybePerformBrowserTaskSchedulerRedirection(); | 3372 MaybePerformBrowserTaskSchedulerRedirection(); |
3373 } | 3373 } |
3374 | 3374 |
3375 //static | 3375 bool ChromeContentBrowserClient:: |
| 3376 RedirectNonUINonIOBrowserThreadsToTaskScheduler() { |
| 3377 return variations::GetVariationParamValue( |
| 3378 "BrowserScheduler", "RedirectNonUINonIOBrowserThreads") == "true"; |
| 3379 } |
| 3380 |
| 3381 // static |
3376 void ChromeContentBrowserClient::SetDefaultQuotaSettingsForTesting( | 3382 void ChromeContentBrowserClient::SetDefaultQuotaSettingsForTesting( |
3377 const storage::QuotaSettings* settings) { | 3383 const storage::QuotaSettings* settings) { |
3378 g_default_quota_settings = settings; | 3384 g_default_quota_settings = settings; |
3379 } | 3385 } |
OLD | NEW |