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

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

Issue 2576243003: Add an experiment to redirect DOMStorageTaskRunner to TaskScheduler. (Closed)
Patch Set: fix compile 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
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 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 }
OLDNEW
« no previous file with comments | « chrome/browser/chrome_content_browser_client.h ('k') | content/browser/dom_storage/dom_storage_context_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698