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

Side by Side Diff: chrome/browser/chrome_content_browser_client.cc

Issue 2464233002: Experiment with redirecting all BrowserThreads (but UI/IO) to TaskScheduler (Closed)
Patch Set: remove WaitUntilThreadStarted on Android, makes Android test instrumentation hang, is previous issu… Created 4 years 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 | « chrome/browser/chrome_content_browser_client.h ('k') | content/browser/browser_main_loop.h » ('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 (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
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 }
OLDNEW
« no previous file with comments | « chrome/browser/chrome_content_browser_client.h ('k') | content/browser/browser_main_loop.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698