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

Unified Diff: chrome/utility/chrome_content_utility_client.cc

Issue 2774463002: image_decoder service -> data_decoder service (Closed)
Patch Set: . Created 3 years, 9 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/utility/chrome_content_utility_client.h ('k') | content/browser/BUILD.gn » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/utility/chrome_content_utility_client.cc
diff --git a/chrome/utility/chrome_content_utility_client.cc b/chrome/utility/chrome_content_utility_client.cc
index 0b8a8d2367df40cb4ae2e5173b27f340c8e217cb..c8fee496362315c6cc70fe767c097bf9c2e68c08 100644
--- a/chrome/utility/chrome_content_utility_client.cc
+++ b/chrome/utility/chrome_content_utility_client.cc
@@ -16,7 +16,6 @@
#include "chrome/common/file_patcher.mojom.h"
#include "chrome/utility/utility_message_handler.h"
#include "components/safe_json/utility/safe_json_parser_mojo_impl.h"
-#include "content/public/child/image_decoder_utils.h"
#include "content/public/common/content_switches.h"
#include "content/public/common/service_info.h"
#include "content/public/utility/utility_thread.h"
@@ -25,8 +24,6 @@
#include "extensions/features/features.h"
#include "mojo/public/cpp/bindings/strong_binding.h"
#include "printing/features/features.h"
-#include "services/image_decoder/image_decoder_service.h"
-#include "services/image_decoder/public/interfaces/constants.mojom.h"
#include "services/service_manager/public/cpp/interface_registry.h"
#include "third_party/zlib/google/zip.h"
@@ -220,11 +217,6 @@ void CreateResourceUsageReporter(
}
#endif // !defined(OS_ANDROID)
-std::unique_ptr<service_manager::Service> CreateImageDecoderService() {
- content::UtilityThread::Get()->EnsureBlinkInitialized();
- return image_decoder::ImageDecoderService::Create();
-}
-
} // namespace
ChromeContentUtilityClient::ChromeContentUtilityClient()
@@ -303,13 +295,6 @@ void ChromeContentUtilityClient::ExposeInterfacesToBrowser(
#endif
}
-void ChromeContentUtilityClient::RegisterServices(StaticServiceMap* services) {
- content::ServiceInfo image_decoder_info;
- image_decoder_info.factory = base::Bind(&CreateImageDecoderService);
- services->insert(
- std::make_pair(image_decoder::mojom::kServiceName, image_decoder_info));
-}
-
// static
void ChromeContentUtilityClient::PreSandboxStartup() {
#if BUILDFLAG(ENABLE_EXTENSIONS)
« no previous file with comments | « chrome/utility/chrome_content_utility_client.h ('k') | content/browser/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698