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

Unified Diff: ios/chrome/browser/web/chrome_web_client.mm

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 | « ios/chrome/browser/web/BUILD.gn ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ios/chrome/browser/web/chrome_web_client.mm
diff --git a/ios/chrome/browser/web/chrome_web_client.mm b/ios/chrome/browser/web/chrome_web_client.mm
index c9cdc8aaec0bb2580ecfaef95b75468571d53399..ccf042f332e166d5afd3775ff80fd8170d17cb16 100644
--- a/ios/chrome/browser/web/chrome_web_client.mm
+++ b/ios/chrome/browser/web/chrome_web_client.mm
@@ -12,8 +12,7 @@
#include "components/dom_distiller/core/url_constants.h"
#include "components/prefs/pref_service.h"
#include "components/strings/grit/components_strings.h"
-#include "components/task_scheduler_util/initialization/browser_util.h"
-#include "components/task_scheduler_util/variations/browser_variations_util.h"
+#include "components/task_scheduler_util/browser/initialization.h"
#include "components/version_info/version_info.h"
#include "ios/chrome/browser/application_context.h"
#include "ios/chrome/browser/browser_about_rewriter.h"
@@ -177,13 +176,12 @@ void ChromeWebClient::GetTaskSchedulerInitializationParams(
DCHECK(params_vector);
DCHECK(index_to_traits_callback);
// If this call fails, web 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);
+ *params_vector =
+ task_scheduler_util::GetBrowserWorkerPoolParamsFromVariations();
+ *index_to_traits_callback =
+ base::Bind(&task_scheduler_util::BrowserWorkerPoolIndexForTraits);
}
void ChromeWebClient::PerformExperimentalTaskSchedulerRedirections() {
- task_scheduler_util::variations::
- MaybePerformBrowserTaskSchedulerRedirection();
+ task_scheduler_util::MaybePerformBrowserTaskSchedulerRedirection();
}
« no previous file with comments | « ios/chrome/browser/web/BUILD.gn ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698