| 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 bool ChromeContentBrowserClient::ShouldRedirectDOMStorageTaskRunner() { |
| 3376 return variations::GetVariationParamValue( |
| 3377 "BrowserScheduler", "RedirectDOMStorageTaskRunner") == "true"; |
| 3378 } |
| 3379 |
| 3375 bool ChromeContentBrowserClient:: | 3380 bool ChromeContentBrowserClient:: |
| 3376 RedirectNonUINonIOBrowserThreadsToTaskScheduler() { | 3381 RedirectNonUINonIOBrowserThreadsToTaskScheduler() { |
| 3377 return variations::GetVariationParamValue( | 3382 return variations::GetVariationParamValue( |
| 3378 "BrowserScheduler", "RedirectNonUINonIOBrowserThreads") == "true"; | 3383 "BrowserScheduler", "RedirectNonUINonIOBrowserThreads") == "true"; |
| 3379 } | 3384 } |
| 3380 | 3385 |
| 3381 // static | 3386 // static |
| 3382 void ChromeContentBrowserClient::SetDefaultQuotaSettingsForTesting( | 3387 void ChromeContentBrowserClient::SetDefaultQuotaSettingsForTesting( |
| 3383 const storage::QuotaSettings* settings) { | 3388 const storage::QuotaSettings* settings) { |
| 3384 g_default_quota_settings = settings; | 3389 g_default_quota_settings = settings; |
| 3385 } | 3390 } |
| OLD | NEW |