Skip to content

Commit

Permalink
Revert 260917 "Media Galleries API Metadata: Image metadata"
Browse files Browse the repository at this point in the history
> Media Galleries API Metadata: Image metadata
> 
> Enables libexif and uses it to parse some image tags into the GetMetadata call.
> 
> BUG=318450
> 
> Review URL: https://codereview.chromium.org/191583002

TBR=tommycli@chromium.org

Review URL: https://codereview.chromium.org/217233005

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@260931 0039d316-1c4b-4281-b951-d872f2087c98
  • Loading branch information
ccameron@chromium.org committed Apr 1, 2014
1 parent e8b2e42 commit 36c4558
Show file tree
Hide file tree
Showing 26 changed files with 19 additions and 601 deletions.
8 changes: 0 additions & 8 deletions build/common.gypi
Original file line number Diff line number Diff line change
Expand Up @@ -2243,14 +2243,6 @@
}, { # else: branding!="Chrome"
'defines': ['CHROMIUM_BUILD'],
}],
['OS=="mac"', {
'xcode_settings': {
'LD_RUNPATH_SEARCH_PATHS': [
# To find dylibs such as libexif.
'@loader_path/.',
],
},
}],
['OS=="mac" and component=="shared_library"', {
'xcode_settings': {
'DYLIB_INSTALL_NAME_BASE': '@rpath',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -372,11 +372,6 @@ class MediaGalleriesPlatformAppBrowserTest : public PlatformAppBrowserTest {
.AppendASCII("common");
}

base::FilePath GetWallpaperTestDataDir() const {
return test_data_dir_.AppendASCII("api_test")
.AppendASCII("wallpaper");
}

int num_galleries() const {
return ensure_media_directories_exists_->num_galleries();
}
Expand Down Expand Up @@ -612,7 +607,6 @@ IN_PROC_BROWSER_TEST_F(MediaGalleriesPlatformAppBrowserTest, GetMetadata) {

AddFileToSingleFakeGallery(media::GetTestDataFilePath("90rotation.mp4"));
AddFileToSingleFakeGallery(media::GetTestDataFilePath("id3_png_test.mp3"));
AddFileToSingleFakeGallery(GetWallpaperTestDataDir().AppendASCII("test.jpg"));

base::ListValue custom_args;
#if defined(USE_PROPRIETARY_CODECS)
Expand Down
6 changes: 0 additions & 6 deletions chrome/chrome.gyp
Original file line number Diff line number Diff line change
Expand Up @@ -250,7 +250,6 @@
'../content/content.gyp:content_utility',
'../media/media.gyp:media',
'../skia/skia.gyp:skia',
'../third_party/libexif/libexif.gyp:libexif',
'../third_party/libxml/libxml.gyp:libxml',
'common',
'<(DEPTH)/chrome/chrome_resources.gyp:chrome_resources',
Expand Down Expand Up @@ -297,8 +296,6 @@
'utility/importer/nss_decryptor_win.h',
'utility/importer/safari_importer.h',
'utility/importer/safari_importer.mm',
'utility/media_galleries/image_metadata_extractor.cc',
'utility/media_galleries/image_metadata_extractor.h',
'utility/media_galleries/ipc_data_source.cc',
'utility/media_galleries/ipc_data_source.h',
'utility/media_galleries/itunes_pref_parser_win.cc',
Expand Down Expand Up @@ -359,9 +356,6 @@
],
}],
['OS=="android"', {
'dependencies!': [
'../third_party/libexif/libexif.gyp:libexif',
],
'sources/': [
['exclude', '^utility/importer/'],
['exclude', '^utility/media_galleries/'],
Expand Down
1 change: 0 additions & 1 deletion chrome/chrome.isolate
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,6 @@
'<(PRODUCT_DIR)/d3dcompiler_46.dll',
'<(PRODUCT_DIR)/ffmpegsumo.dll',
'<(PRODUCT_DIR)/libEGL.dll',
'<(PRODUCT_DIR)/libexif.dll',
'<(PRODUCT_DIR)/libGLESv2.dll',
'<(PRODUCT_DIR)/nacl64<(EXECUTABLE_SUFFIX)',
'<(PRODUCT_DIR)/osmesa.dll',
Expand Down
8 changes: 2 additions & 6 deletions chrome/chrome_dll_bundle.gypi
Original file line number Diff line number Diff line change
Expand Up @@ -37,10 +37,6 @@
'$(DYLIB_INSTALL_NAME_BASE:standardizepath)/$(WRAPPER_NAME)/$(PRODUCT_NAME)',

'INFOPLIST_FILE': 'app/framework-Info.plist',
'LD_RUNPATH_SEARCH_PATHS': [
# To find dylibs such as libexif.
'@loader_path/Libraries/.',
],
},
'includes': [
'chrome_nibs.gypi',
Expand Down Expand Up @@ -142,10 +138,10 @@
],
'copies': [
{
# Copy FFmpeg binaries for audio/video support.
'destination': '<(PRODUCT_DIR)/$(CONTENTS_FOLDER_PATH)/Libraries',
'files': [
'<(PRODUCT_DIR)/ffmpegsumo.so', # Copy FFmpeg binaries for audio/video support.
'<(PRODUCT_DIR)/libexif.dylib',
'<(PRODUCT_DIR)/ffmpegsumo.so',
],
},
{
Expand Down
2 changes: 0 additions & 2 deletions chrome/chrome_tests_unit.gypi
Original file line number Diff line number Diff line change
Expand Up @@ -1949,7 +1949,6 @@
'utility/importer/firefox_importer_unittest_utils.h',
'utility/importer/firefox_importer_unittest_utils_mac.cc',
'utility/importer/safari_importer_unittest.mm',
'utility/media_galleries/image_metadata_extractor_unittest.cc',

# Duplicate these tests here because PathService has more items in
# unit_tests than in base_unittests.
Expand Down Expand Up @@ -2625,7 +2624,6 @@
['exclude', '^browser/ui/webui/sync_promo'],
['exclude', '^tools/profile_reset/'],
['exclude', '^utility/importer/'],
['exclude', '^utility/media_galleries/'],
],
'conditions': [
['gtest_target_type == "shared_library"', {
Expand Down
15 changes: 1 addition & 14 deletions chrome/common/extensions/api/media_galleries.idl
Original file line number Diff line number Diff line change
Expand Up @@ -104,26 +104,13 @@ namespace mediaGalleries {
long? height;
long? width;

// Defined for images only.
double? xResolution;
double? yResolution;

// Defined for audio and video. In seconds.
double? duration;

// Defined for images and video. In degrees.
long? rotation;

// Defined for images only.
DOMString? cameraMake;
DOMString? cameraModel;
double? exposureTimeSeconds;
boolean? flashFired;
double? fNumber;
double? focalLengthMm;
double? isoEquivalent;

// Defined for audio and video only.
// Generic metadata tags.
DOMString? album;
DOMString? artist;
DOMString? comment;
Expand Down
1 change: 0 additions & 1 deletion chrome/installer/linux/debian/expected_deps
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ libcairo2 (>= 1.6.0)
libcap2 (>= 2.10)
libcups2 (>= 1.4.0)
libdbus-1-3 (>= 1.2.14)
libexif12 (>= 0.6.19)
libexpat1 (>= 1.95.8)
libfontconfig1 (>= 2.8.0)
libfreetype6 (>= 2.3.9)
Expand Down
1 change: 0 additions & 1 deletion chrome/installer/linux/rpm/expected_deps_i386
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@ libdbus-1.so.3
libdl.so.2
libdl.so.2(GLIBC_2.0)
libdl.so.2(GLIBC_2.1)
libexif.so.12
libexpat.so.1
libfontconfig.so.1
libfreetype.so.6
Expand Down
1 change: 0 additions & 1 deletion chrome/installer/linux/rpm/expected_deps_x86_64
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ libcups.so.2()(64bit)
libdbus-1.so.3()(64bit)
libdl.so.2()(64bit)
libdl.so.2(GLIBC_2.2.5)(64bit)
libexif.so.12()(64bit)
libexpat.so.1()(64bit)
libfontconfig.so.1()(64bit)
libfreetype.so.6()(64bit)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -61,8 +61,6 @@ main/libc/libcap2/libcap-dev_2.22-1.2_amd64.deb
main/libe/libexif/libexif12_0.6.20-3_amd64.deb
main/libe/libexif/libexif-dev_0.6.20-3_amd64.deb
main/libf/libffi/libffi5_3.0.10-3_amd64.deb
main/libe/libexif/libexif12_0.6.20-3_amd64.deb
main/libe/libexif/libexif-dev_0.6.20-3_amd64.deb
main/libg/libgcrypt11/libgcrypt11_1.5.0-5+deb7u1_amd64.deb
main/libg/libgcrypt11/libgcrypt11-dev_1.5.0-5+deb7u1_amd64.deb
main/libg/libgnome-keyring/libgnome-keyring0_3.4.1-1_amd64.deb
Expand Down
1 change: 0 additions & 1 deletion chrome/installer/mini_installer/chrome.release
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@ ffmpegsumo.dll: %(VersionDir)s\
icudt.dll: %(VersionDir)s\
icudtl.dat: %(VersionDir)s\
libEGL.dll: %(VersionDir)s\
libexif.dll: %(VersionDir)s\
libGLESv2.dll: %(VersionDir)s\
nacl64.exe: %(VersionDir)s\
nacl_irt_x86_32.nexe: %(VersionDir)s\
Expand Down
1 change: 0 additions & 1 deletion chrome/interactive_ui_tests.isolate
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,6 @@
'<(PRODUCT_DIR)/d3dcompiler_46.dll',
'<(PRODUCT_DIR)/ffmpegsumo.dll',
'<(PRODUCT_DIR)/libEGL.dll',
'<(PRODUCT_DIR)/libexif.dll',
'<(PRODUCT_DIR)/libGLESv2.dll',
'<(PRODUCT_DIR)/ppGoogleNaClPluginChrome.dll',
'<(PRODUCT_DIR)/osmesa.dll',
Expand Down
1 change: 0 additions & 1 deletion chrome/sync_integration_tests.isolate
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,6 @@
],
'isolate_dependency_tracked': [
'<(PRODUCT_DIR)/ffmpegsumo.so',
'<(PRODUCT_DIR)/libexif.dylib',
],
'isolate_dependency_untracked': [
'<(PRODUCT_DIR)/<(mac_product_name) Framework.framework/',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,27 +32,6 @@ function ImageMIMETypeOnlyTest() {
RunMetadataTest("test.jpg", {metadataType: 'mimeTypeOnly'}, verifyMetadata);
}

function ImageTagsTest() {
function verifyMetadata(metadata) {
chrome.test.assertEq("image/jpeg", metadata.mimeType);
chrome.test.assertEq(5616, metadata.width);
chrome.test.assertEq(3744, metadata.height);
chrome.test.assertEq(0, metadata.rotation);
chrome.test.assertEq(300.0, metadata.xResolution);
chrome.test.assertEq(300.0, metadata.yResolution);
chrome.test.assertEq("Canon", metadata.cameraMake);
chrome.test.assertEq("Canon EOS 5D Mark II", metadata.cameraModel);
chrome.test.assertEq(0.01, metadata.exposureTimeSeconds);
chrome.test.assertFalse(metadata.flashFired);
chrome.test.assertEq(3.2, metadata.fNumber);
chrome.test.assertEq(100, metadata.focalLengthMm);
chrome.test.assertEq(1600, metadata.isoEquivalent);
chrome.test.succeed();
}

RunMetadataTest("test.jpg", {}, verifyMetadata);
}

function MP3MIMETypeOnlyTest() {
function verifyMetadata(metadata) {
chrome.test.assertEq("audio/mpeg", metadata.mimeType);
Expand Down Expand Up @@ -94,8 +73,7 @@ chrome.test.getConfig(function(config) {

// Should still be able to sniff MP3 MIME type without proprietary codecs.
var testsToRun = [
ImageMIMETypeOnlyTest,
ImageTagsTest
ImageMIMETypeOnlyTest
];

if (useProprietaryCodecs) {
Expand Down
1 change: 0 additions & 1 deletion chrome/test/functional/stress.py
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,6 @@ def _DownloadSymbols(self):
'crash_inspector',
'crash_report_sender',
'ffmpegsumo.so',
'libexif.dylib',
'libplugin_carbon_interpose.dylib'])
index = 0
symbol_files = ['%s-%s-i386.breakpad' % (sym_file, self.chrome_version) \
Expand Down
4 changes: 0 additions & 4 deletions chrome/tools/build/chromeos/FILES.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -56,10 +56,6 @@ FILES = [
'filename': 'libffmpegsumo.so',
'buildtype': ['dev', 'official'],
},
{
'filename': 'lib/libexif.so',
'buildtype': ['dev', 'official'],
},
{
'filename': 'lib/libpeerconnection.so',
'buildtype': ['dev', 'official'],
Expand Down
1 change: 0 additions & 1 deletion chrome/tools/build/mac/TESTS
Original file line number Diff line number Diff line change
@@ -1,3 +1,2 @@
sync_integration_tests
ffmpegsumo.so
libexif.dylib
1 change: 0 additions & 1 deletion chrome/tools/build/mac/dump_product_syms
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,6 @@ SRC_NAMES=(
"crash_inspector"
"crash_report_sender.app"
"ffmpegsumo.so"
"libexif.dylib"
"libplugin_carbon_interpose.dylib"
"ppGoogleNaClPluginChrome.plugin"
"remoting_host_plugin.plugin"
Expand Down
5 changes: 0 additions & 5 deletions chrome/tools/build/win/FILES.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -99,11 +99,6 @@ FILES = [
'buildtype': ['dev', 'official'],
'optional': ['dev', 'official'],
},
{
'filename': 'libexif.dll',
'buildtype': ['dev', 'official'],
'filegroup': ['default', 'symsrc'],
},
{
'filename': 'libpeerconnection.dll',
'buildtype': ['dev', 'official'],
Expand Down
1 change: 0 additions & 1 deletion chrome/unit_tests.isolate
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,6 @@
'isolate_dependency_tracked': [
'<(PRODUCT_DIR)/chrome_elf.dll',
'<(PRODUCT_DIR)/ffmpegsumo.dll',
'<(PRODUCT_DIR)/libexif.dll',
'<(PRODUCT_DIR)/osmesa.dll',
],
'isolate_dependency_untracked': [
Expand Down
Loading

0 comments on commit 36c4558

Please sign in to comment.