Remove the kAppServiceOnAppUpdateWithoutMojom flag PIII.
The kAppServiceOnAppUpdateWithoutMojom flag is enabled in M102. So it
can be removed in M106.
This is pure refactor and no function change.
BUG=1253250
Change-Id: I6d61334ddc4320c78337c654d3e4ebfb477bb344
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3779872
Reviewed-by: Dominick Ng <[email protected]>
Reviewed-by: Yanzhu Du <[email protected]>
Commit-Queue: Nancy Wang <[email protected]>
Reviewed-by: Xiyuan Xia <[email protected]>
Reviewed-by: Scott Violet <[email protected]>
Cr-Commit-Position: refs/heads/main@{#1028026}
diff --git a/chrome/browser/platform_util_unittest.cc b/chrome/browser/platform_util_unittest.cc
index ec364122..d02a17b 100644
--- a/chrome/browser/platform_util_unittest.cc
+++ b/chrome/browser/platform_util_unittest.cc
@@ -30,7 +30,6 @@
#include "chrome/browser/extensions/extension_special_storage_policy.h"
#include "chrome/test/base/browser_with_test_window_test.h"
#include "components/services/app_service/public/cpp/app_types.h"
-#include "components/services/app_service/public/cpp/features.h"
#include "components/services/app_service/public/cpp/intent_filter.h"
#include "content/public/browser/browser_context.h"
#include "content/public/common/content_client.h"
@@ -139,18 +138,9 @@
app->intent_filters =
apps_util::CreateIntentFiltersForChromeApp(extension.get());
apps.push_back(std::move(app));
- if (base::FeatureList::IsEnabled(
- apps::kAppServiceOnAppUpdateWithoutMojom)) {
- app_service_proxy_->AppRegistryCache().OnApps(
- std::move(apps), apps::AppType::kChromeApp,
- /*should_notify_initialized=*/false);
- } else {
- std::vector<apps::mojom::AppPtr> mojom_apps;
- mojom_apps.push_back(apps::ConvertAppToMojomApp(apps[0]));
- app_service_proxy_->AppRegistryCache().OnApps(
- std::move(mojom_apps), apps::mojom::AppType::kChromeApp,
- /*should_notify_initialized=*/false);
- }
+ app_service_proxy_->AppRegistryCache().OnApps(
+ std::move(apps), apps::AppType::kChromeApp,
+ /*should_notify_initialized=*/false);
app_service_test_.WaitForAppService();
}