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

Unified Diff: chrome/browser/chrome_content_browser_client.cc

Issue 2626783002: Remove old APIs from components/task_scheduler_util/. (Closed)
Patch Set: fix build error Created 3 years, 11 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/browser/BUILD.gn ('k') | components/BUILD.gn » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/chrome_content_browser_client.cc
diff --git a/chrome/browser/chrome_content_browser_client.cc b/chrome/browser/chrome_content_browser_client.cc
index 086093c6b86720474d185ee6ddd417ddbf417b30..61b3fb1a9cffaf97ee5565f723a99325e37695ea 100644
--- a/chrome/browser/chrome_content_browser_client.cc
+++ b/chrome/browser/chrome_content_browser_client.cc
@@ -148,9 +148,8 @@
#include "components/signin/core/common/profile_management_switches.h"
#include "components/spellcheck/spellcheck_build_features.h"
#include "components/startup_metric_utils/browser/startup_metric_host_impl.h"
+#include "components/task_scheduler_util/browser/initialization.h"
#include "components/task_scheduler_util/common/variations_util.h"
-#include "components/task_scheduler_util/initialization/browser_util.h"
-#include "components/task_scheduler_util/variations/browser_variations_util.h"
#include "components/translate/core/common/translate_switches.h"
#include "components/url_formatter/url_fixer.h"
#include "components/variations/variations_associated_data.h"
@@ -3346,16 +3345,14 @@ void ChromeContentBrowserClient::GetTaskSchedulerInitializationParams(
DCHECK(index_to_traits_callback);
// If this call fails, content will fall back to the default params.
*params_vector =
- task_scheduler_util::variations::
- GetBrowserSchedulerWorkerPoolParamsFromVariations();
- *index_to_traits_callback = base::Bind(&task_scheduler_util::initialization::
- BrowserWorkerPoolIndexForTraits);
+ task_scheduler_util::GetBrowserWorkerPoolParamsFromVariations();
+ *index_to_traits_callback =
+ base::Bind(&task_scheduler_util::BrowserWorkerPoolIndexForTraits);
}
void ChromeContentBrowserClient::
PerformExperimentalTaskSchedulerRedirections() {
- task_scheduler_util::variations::
- MaybePerformBrowserTaskSchedulerRedirection();
+ task_scheduler_util::MaybePerformBrowserTaskSchedulerRedirection();
}
bool ChromeContentBrowserClient::ShouldRedirectDOMStorageTaskRunner() {
« no previous file with comments | « chrome/browser/BUILD.gn ('k') | components/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698