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

Unified Diff: chrome/utility/extensions/extensions_handler.cc

Issue 1791623002: Revert of Media Galleries Partial Deprecation: Remove image metadata & libexif. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Manual revert/rebase. Created 4 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/BUILD.gn ('k') | chrome/utility/media_galleries/image_metadata_extractor.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/utility/extensions/extensions_handler.cc
diff --git a/chrome/utility/extensions/extensions_handler.cc b/chrome/utility/extensions/extensions_handler.cc
index 9518d9d0446c5643834335570ed34f7631abf622..fdd6dfda3d5e20247c2d03cd7244cd99f78d088e 100644
--- a/chrome/utility/extensions/extensions_handler.cc
+++ b/chrome/utility/extensions/extensions_handler.cc
@@ -14,6 +14,7 @@
#include "chrome/common/extensions/chrome_utility_extensions_messages.h"
#include "chrome/common/media_galleries/metadata_types.h"
#include "chrome/utility/chrome_content_utility_client.h"
+#include "chrome/utility/media_galleries/image_metadata_extractor.h"
#include "chrome/utility/media_galleries/ipc_data_source.h"
#include "chrome/utility/media_galleries/media_metadata_parser.h"
#include "content/public/common/content_paths.h"
@@ -79,6 +80,9 @@ ExtensionsHandler::~ExtensionsHandler() {
// static
void ExtensionsHandler::PreSandboxStartup() {
+ // Initialize libexif for image metadata parsing.
+ metadata::ImageMetadataExtractor::InitializeLibrary();
+
// Initialize media libraries for media file validation.
media::InitializeMediaLibrary();
}
« no previous file with comments | « chrome/utility/BUILD.gn ('k') | chrome/utility/media_galleries/image_metadata_extractor.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698