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

Issue 1695563002: Media Galleries Partial Deprecation: Remove scan functionality. (Closed)

Created:
4 years, 10 months ago by tommycli
Modified:
4 years, 9 months ago
Reviewers:
Devlin, Nico, Ilya Sherman
CC:
chromium-reviews, extensions-reviews_chromium.org, tzik, Lei Zhang, nhiroki, chromium-apps-reviews_chromium.org, kinuko+fileapi
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Media Galleries Partial Deprecation: Remove scan functionality. Removes ~4100 sloc, and 50k off the binary size. BUG=542912 Committed: https://crrev.com/d3f29202a41db90b9657b39158777b58ef81bfdb Cr-Commit-Position: refs/heads/master@{#378624}

Patch Set 1 #

Patch Set 2 : #

Patch Set 3 : #

Patch Set 4 : #

Patch Set 5 : #

Total comments: 4

Patch Set 6 : #

Total comments: 10

Patch Set 7 : merge #

Patch Set 8 : add idl apitest #

Total comments: 2

Patch Set 9 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+111 lines, -4194 lines) Patch
M chrome/app/generated_resources.grd View 1 2 3 4 5 6 7 8 1 chunk +0 lines, -15 lines 0 comments Download
D chrome/app/theme/default_100_percent/common/folder.png View 1 2 3 Binary file 0 comments Download
D chrome/app/theme/default_200_percent/common/folder.png View 1 2 3 Binary file 0 comments Download
M chrome/app/theme/theme_resources.grd View 1 2 3 4 5 6 7 8 1 chunk +0 lines, -1 line 0 comments Download
M chrome/browser/extensions/api/file_system/file_system_api.h View 1 2 3 1 chunk +0 lines, -2 lines 0 comments Download
M chrome/browser/extensions/api/file_system/file_system_api.cc View 1 2 3 4 5 6 1 chunk +0 lines, -10 lines 0 comments Download
M chrome/browser/extensions/api/idltest/idltest_apitest.cc View 1 2 3 4 5 6 7 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/extensions/api/media_galleries/media_galleries_api.h View 5 chunks +0 lines, -71 lines 0 comments Download
M chrome/browser/extensions/api/media_galleries/media_galleries_api.cc View 1 2 3 4 5 6 8 chunks +0 lines, -204 lines 0 comments Download
M chrome/browser/extensions/api/media_galleries/media_galleries_apitest.cc View 4 chunks +0 lines, -113 lines 0 comments Download
M chrome/browser/media_galleries/fileapi/media_path_filter.h View 2 chunks +13 lines, -7 lines 0 comments Download
M chrome/browser/media_galleries/fileapi/media_path_filter.cc View 3 chunks +16 lines, -19 lines 0 comments Download
M chrome/browser/media_galleries/media_file_system_registry.h View 1 2 3 4 5 6 3 chunks +0 lines, -3 lines 0 comments Download
M chrome/browser/media_galleries/media_file_system_registry.cc View 1 2 3 4 5 6 2 chunks +0 lines, -7 lines 0 comments Download
D chrome/browser/media_galleries/media_folder_finder.h View 1 2 3 4 5 6 1 chunk +0 lines, -98 lines 0 comments Download
D chrome/browser/media_galleries/media_folder_finder.cc View 1 2 3 4 5 6 1 chunk +0 lines, -451 lines 0 comments Download
D chrome/browser/media_galleries/media_folder_finder_unittest.cc View 1 chunk +0 lines, -405 lines 0 comments Download
M chrome/browser/media_galleries/media_galleries_dialog_controller.h View 1 2 chunks +0 lines, -6 lines 0 comments Download
M chrome/browser/media_galleries/media_galleries_dialog_controller_mock.h View 1 1 chunk +1 line, -3 lines 0 comments Download
M chrome/browser/media_galleries/media_galleries_histograms.h View 1 2 3 1 chunk +7 lines, -7 lines 0 comments Download
M chrome/browser/media_galleries/media_galleries_permission_controller.h View 1 1 chunk +0 lines, -2 lines 0 comments Download
M chrome/browser/media_galleries/media_galleries_permission_controller.cc View 1 2 chunks +0 lines, -10 lines 0 comments Download
M chrome/browser/media_galleries/media_galleries_preferences.h View 1 2 3 4 5 6 1 chunk +0 lines, -5 lines 0 comments Download
M chrome/browser/media_galleries/media_galleries_preferences.cc View 1 2 3 4 5 6 2 chunks +0 lines, -14 lines 0 comments Download
D chrome/browser/media_galleries/media_galleries_scan_result_controller.h View 1 chunk +0 lines, -167 lines 0 comments Download
D chrome/browser/media_galleries/media_galleries_scan_result_controller.cc View 1 chunk +0 lines, -387 lines 0 comments Download
D chrome/browser/media_galleries/media_galleries_scan_result_controller_unittest.cc View 1 chunk +0 lines, -426 lines 0 comments Download
D chrome/browser/media_galleries/media_scan_manager.h View 1 2 3 4 5 6 1 chunk +0 lines, -114 lines 0 comments Download
D chrome/browser/media_galleries/media_scan_manager.cc View 1 2 3 4 5 6 1 chunk +0 lines, -558 lines 0 comments Download
D chrome/browser/media_galleries/media_scan_manager_observer.h View 1 chunk +0 lines, -23 lines 0 comments Download
D chrome/browser/media_galleries/media_scan_manager_unittest.cc View 1 chunk +0 lines, -735 lines 0 comments Download
D chrome/browser/media_galleries/media_scan_types.h View 1 chunk +0 lines, -24 lines 0 comments Download
D chrome/browser/media_galleries/media_scan_types.cc View 1 chunk +0 lines, -17 lines 0 comments Download
M chrome/browser/ui/cocoa/extensions/media_galleries_dialog_cocoa.h View 1 1 chunk +0 lines, -1 line 0 comments Download
M chrome/browser/ui/cocoa/extensions/media_galleries_dialog_cocoa.mm View 1 2 3 4 2 chunks +1 line, -7 lines 0 comments Download
M chrome/browser/ui/cocoa/extensions/media_gallery_list_entry_view.h View 1 2 3 4 1 chunk +1 line, -3 lines 0 comments Download
M chrome/browser/ui/cocoa/extensions/media_gallery_list_entry_view.mm View 1 2 3 4 4 chunks +1 line, -26 lines 0 comments Download
M chrome/browser/ui/views/extensions/media_galleries_dialog_views.cc View 1 3 chunks +2 lines, -10 lines 0 comments Download
M chrome/browser/ui/views/extensions/media_gallery_checkbox_view.h View 1 2 chunks +2 lines, -6 lines 0 comments Download
M chrome/browser/ui/views/extensions/media_gallery_checkbox_view.cc View 1 5 chunks +7 lines, -36 lines 0 comments Download
M chrome/chrome_browser.gypi View 1 2 3 4 5 6 7 8 2 chunks +0 lines, -9 lines 0 comments Download
M chrome/chrome_tests_unit.gypi View 1 2 3 4 5 6 7 8 2 chunks +0 lines, -3 lines 0 comments Download
M chrome/common/chrome_paths.h View 1 2 3 4 5 6 1 chunk +0 lines, -4 lines 0 comments Download
M chrome/common/chrome_paths.cc View 1 2 3 4 5 6 1 chunk +0 lines, -16 lines 0 comments Download
M chrome/common/chrome_paths_internal.h View 1 2 3 4 5 6 1 chunk +0 lines, -6 lines 0 comments Download
M chrome/common/chrome_paths_mac.mm View 1 2 3 1 chunk +0 lines, -8 lines 0 comments Download
M chrome/common/extensions/api/idltest.idl View 1 2 3 4 5 6 7 1 chunk +5 lines, -0 lines 0 comments Download
M chrome/common/extensions/api/media_galleries.idl View 1 2 3 4 5 7 chunks +10 lines, -6 lines 0 comments Download
M chrome/common/pref_names.h View 1 2 3 4 5 6 1 chunk +0 lines, -1 line 0 comments Download
M chrome/common/pref_names.cc View 1 2 3 4 5 6 1 chunk +0 lines, -3 lines 0 comments Download
M chrome/renderer/resources/extensions/media_galleries_custom_bindings.js View 1 2 chunks +2 lines, -10 lines 0 comments Download
M chrome/test/data/extensions/api_test/idltest/nocompile/nocompile.js View 1 2 3 4 5 6 7 1 chunk +1 line, -1 line 0 comments Download
A + chrome/test/data/extensions/api_test/idltest/nodefine/manifest.json View 1 2 3 4 5 6 7 0 chunks +-1 lines, --1 lines 0 comments Download
A chrome/test/data/extensions/api_test/idltest/nodefine/nodefine.html View 1 2 3 4 5 6 7 1 chunk +1 line, -0 lines 0 comments Download
A + chrome/test/data/extensions/api_test/idltest/nodefine/nodefine.js View 1 2 3 4 5 6 7 1 chunk +7 lines, -5 lines 0 comments Download
D chrome/test/data/extensions/api_test/media_galleries/cancel_scan/manifest.json View 1 chunk +0 lines, -11 lines 0 comments Download
D chrome/test/data/extensions/api_test/media_galleries/cancel_scan/test.js View 1 chunk +0 lines, -37 lines 0 comments Download
M chrome/test/data/extensions/api_test/media_galleries/no_access/test.js View 1 chunk +0 lines, -10 lines 0 comments Download
D chrome/test/data/extensions/api_test/media_galleries/scan/manifest.json View 1 chunk +0 lines, -11 lines 0 comments Download
D chrome/test/data/extensions/api_test/media_galleries/scan/test.js View 1 chunk +0 lines, -41 lines 0 comments Download
M extensions/browser/extension_function_histogram_value.h View 1 2 3 4 5 6 1 chunk +3 lines, -3 lines 0 comments Download
M extensions/common/permissions/media_galleries_permission.cc View 2 chunks +1 line, -3 lines 0 comments Download
M extensions/common/permissions/media_galleries_permission_data.cc View 1 chunk +0 lines, -1 line 0 comments Download
M tools/json_schema_compiler/compiler.py View 1 2 3 4 5 1 chunk +4 lines, -0 lines 0 comments Download
M tools/json_schema_compiler/idl_schema.py View 1 2 3 4 5 3 chunks +6 lines, -3 lines 0 comments Download
M tools/json_schema_compiler/idl_schema_test.py View 1 2 3 4 5 1 chunk +6 lines, -0 lines 0 comments Download
M tools/json_schema_compiler/model.py View 1 2 3 4 5 1 chunk +1 line, -0 lines 0 comments Download
M tools/json_schema_compiler/test/idl_basics.idl View 1 2 3 4 5 1 chunk +2 lines, -0 lines 0 comments Download
M tools/metrics/histograms/histograms.xml View 1 2 3 4 5 6 7 8 2 chunks +11 lines, -10 lines 0 comments Download

Messages

Total messages: 45 (18 generated)
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1695563002/60001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1695563002/60001
4 years, 10 months ago (2016-02-11 23:04:40 UTC) #2
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: mac_chromium_compile_dbg_ng on tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/mac_chromium_compile_dbg_ng/builds/158367)
4 years, 10 months ago (2016-02-11 23:28:41 UTC) #4
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1695563002/80001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1695563002/80001
4 years, 10 months ago (2016-02-12 00:10:50 UTC) #6
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 10 months ago (2016-02-12 01:28:34 UTC) #9
tommycli
thestig: PTAL, monster patch for removing the scan functionality. Most of it is pure deletion. ...
4 years, 10 months ago (2016-02-12 01:45:42 UTC) #11
Lei Zhang
Have you tested this scenarios? 1) There exists a profile with an extension installed that ...
4 years, 10 months ago (2016-02-12 02:11:25 UTC) #12
tommycli
thestig: Thanks! I followed your recommendation to manually test with an extension. Actually it crashed! ...
4 years, 10 months ago (2016-02-16 20:16:39 UTC) #13
tommycli
On 2016/02/16 20:16:39, tommycli wrote: > thestig: Thanks! > > I followed your recommendation to ...
4 years, 10 months ago (2016-02-16 20:17:09 UTC) #14
tommycli
rdevlin.cronin: PTAL (since thestig is OOO)
4 years, 9 months ago (2016-02-29 18:19:16 UTC) #16
Devlin
Woo! Note: I mostly skimmed the massive deletion here, trusting you and our tests to ...
4 years, 9 months ago (2016-02-29 20:37:24 UTC) #17
Devlin
https://codereview.chromium.org/1695563002/diff/100001/tools/json_schema_compiler/idl_schema_test.py File tools/json_schema_compiler/idl_schema_test.py (right): https://codereview.chromium.org/1695563002/diff/100001/tools/json_schema_compiler/idl_schema_test.py#newcode129 tools/json_schema_compiler/idl_schema_test.py:129: def testNoDefine(self): It might also be nice to test ...
4 years, 9 months ago (2016-02-29 20:38:16 UTC) #18
tommycli
devlin: Thanks, see below. https://codereview.chromium.org/1695563002/diff/100001/chrome/common/extensions/api/media_galleries.idl File chrome/common/extensions/api/media_galleries.idl (right): https://codereview.chromium.org/1695563002/diff/100001/chrome/common/extensions/api/media_galleries.idl#newcode36 chrome/common/extensions/api/media_galleries.idl:36: [nodefine, inline_doc] enum ScanProgressType { ...
4 years, 9 months ago (2016-02-29 21:53:31 UTC) #19
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1695563002/140001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1695563002/140001
4 years, 9 months ago (2016-02-29 21:54:29 UTC) #21
Devlin
https://codereview.chromium.org/1695563002/diff/100001/chrome/common/extensions/api/media_galleries.idl File chrome/common/extensions/api/media_galleries.idl (right): https://codereview.chromium.org/1695563002/diff/100001/chrome/common/extensions/api/media_galleries.idl#newcode36 chrome/common/extensions/api/media_galleries.idl:36: [nodefine, inline_doc] enum ScanProgressType { On 2016/02/29 21:53:30, tommycli ...
4 years, 9 months ago (2016-02-29 22:10:44 UTC) #22
tommycli
https://codereview.chromium.org/1695563002/diff/100001/chrome/common/extensions/api/media_galleries.idl File chrome/common/extensions/api/media_galleries.idl (right): https://codereview.chromium.org/1695563002/diff/100001/chrome/common/extensions/api/media_galleries.idl#newcode36 chrome/common/extensions/api/media_galleries.idl:36: [nodefine, inline_doc] enum ScanProgressType { On 2016/02/29 22:10:44, Devlin ...
4 years, 9 months ago (2016-02-29 22:49:04 UTC) #23
tommycli
thakis: PTAL epic deletion. Thanks!
4 years, 9 months ago (2016-02-29 23:05:50 UTC) #25
Nico
lgtm Is there some process for removing extension apis? do you have to announce this ...
4 years, 9 months ago (2016-02-29 23:41:12 UTC) #26
tommycli
On 2016/02/29 23:41:12, Nico wrote: > lgtm > > Is there some process for removing ...
4 years, 9 months ago (2016-02-29 23:50:05 UTC) #27
Nico
Cool, sounds good, thanks. On Mon, Feb 29, 2016 at 6:50 PM, <tommycli@chromium.org> wrote: > ...
4 years, 9 months ago (2016-02-29 23:51:52 UTC) #28
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1695563002/140001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1695563002/140001
4 years, 9 months ago (2016-03-01 01:04:39 UTC) #32
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/151711)
4 years, 9 months ago (2016-03-01 01:28:44 UTC) #34
tommycli
isherman: PTAL extensions/browser/extension_function_histogram_value.h tools/metrics/histograms/histograms.xml Thanks!
4 years, 9 months ago (2016-03-01 16:36:40 UTC) #36
Ilya Sherman
histograms.xml and extensions/browser/extension_function_histogram_value.h lgtm % a comment: https://codereview.chromium.org/1695563002/diff/140001/extensions/browser/extension_function_histogram_value.h File extensions/browser/extension_function_histogram_value.h (right): https://codereview.chromium.org/1695563002/diff/140001/extensions/browser/extension_function_histogram_value.h#newcode726 extensions/browser/extension_function_histogram_value.h:726: DELETED_MEDIAGALLERIES_ADDSCANRESULTS, Please ...
4 years, 9 months ago (2016-03-01 22:26:28 UTC) #37
tommycli
isherman: thanks! https://codereview.chromium.org/1695563002/diff/140001/extensions/browser/extension_function_histogram_value.h File extensions/browser/extension_function_histogram_value.h (right): https://codereview.chromium.org/1695563002/diff/140001/extensions/browser/extension_function_histogram_value.h#newcode726 extensions/browser/extension_function_histogram_value.h:726: DELETED_MEDIAGALLERIES_ADDSCANRESULTS, On 2016/03/01 22:26:28, Ilya Sherman wrote: ...
4 years, 9 months ago (2016-03-01 22:41:30 UTC) #38
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1695563002/160001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1695563002/160001
4 years, 9 months ago (2016-03-01 22:42:14 UTC) #41
commit-bot: I haz the power
Committed patchset #9 (id:160001)
4 years, 9 months ago (2016-03-02 00:23:23 UTC) #43
commit-bot: I haz the power
4 years, 9 months ago (2016-03-02 00:24:35 UTC) #45
Message was sent while issue was closed.
Patchset 9 (id:??) landed as
https://crrev.com/d3f29202a41db90b9657b39158777b58ef81bfdb
Cr-Commit-Position: refs/heads/master@{#378624}

Powered by Google App Engine
This is Rietveld 408576698