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

Issue 481433005: Extensions: Move id_util functions to crx_file component. (Closed)

Created:
6 years, 4 months ago by tommycli
Modified:
6 years, 4 months ago
CC:
chromium-reviews, vandebo (ex-Chrome), skanuj+watch_chromium.org, nkostylev+watch_chromium.org, zea+watch_chromium.org, tzik, dhollowa+watch_chromium.org, dougw+watch_chromium.org, stevenjb+watch_chromium.org, tim+watch_chromium.org, extensions-reviews_chromium.org, melevin+watch_chromium.org, dominich, chromium-apps-reviews_chromium.org, samarth+watch_chromium.org, haitaol+watch_chromium.org, nhiroki, jfweitz+watch_chromium.org, oshima+watch_chromium.org, Jered, maniscalco+watch_chromium.org, chrome-apps-syd-reviews_chromium.org, Lei Zhang, tfarina, donnd+watch_chromium.org, tommycli, David Black, Greg Billock, kmadhusu+watch_chromium.org, kinuko+fileapi, davemoore+watch_chromium.org
Project:
chromium
Visibility:
Public.

Description

Extensions: Move id_util functions to crx_file component. Consolidates id_util functions of extension/app/component ids in the crx_file component. It belongs there because these types of ids are not exclusive to extensions, but rather, for anything that comes in a crx file. BUG=371463 TBR=blundell@chromium.org Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=290971

Patch Set 1 #

Patch Set 2 : Remove some includes that are no longer necessary. #

Patch Set 3 : Add remove some more includes #

Patch Set 4 : #

Patch Set 5 : update GN build #

Total comments: 2

Patch Set 6 : #

Total comments: 2

Patch Set 7 : change an expect to an assert #

Patch Set 8 : revert last patchset. function returns Extension* and can't use an assert. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+350 lines, -404 lines) Patch
M apps/app_shim/DEPS View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M apps/app_shim/extension_app_shim_handler_mac.cc View 1 2 2 chunks +2 lines, -1 line 0 comments Download
M chrome/browser/DEPS View 1 2 3 4 5 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/apps/ephemeral_app_throttle.cc View 2 chunks +2 lines, -1 line 0 comments Download
M chrome/browser/apps/install_chrome_app.cc View 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/browser/chromeos/app_mode/startup_app_launcher.cc View 1 2 2 chunks +2 lines, -1 line 0 comments Download
M chrome/browser/extensions/active_script_controller.cc View 1 2 chunks +2 lines, -1 line 0 comments Download
M chrome/browser/extensions/active_script_controller_unittest.cc View 1 3 chunks +2 lines, -2 lines 0 comments Download
M chrome/browser/extensions/all_urls_apitest.cc View 2 chunks +3 lines, -3 lines 0 comments Download
M chrome/browser/extensions/api/identity/identity_apitest.cc View 4 chunks +3 lines, -3 lines 0 comments Download
M chrome/browser/extensions/api/push_messaging/push_messaging_invalidation_handler.cc View 4 chunks +4 lines, -3 lines 0 comments Download
M chrome/browser/extensions/api/signed_in_devices/id_mapping_helper.cc View 2 chunks +3 lines, -3 lines 0 comments Download
M chrome/browser/extensions/api/webstore_private/webstore_private_api.cc View 3 chunks +3 lines, -2 lines 0 comments Download
M chrome/browser/extensions/chrome_app_sorting_unittest.cc View 2 chunks +2 lines, -1 line 0 comments Download
M chrome/browser/extensions/component_loader.cc View 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/browser/extensions/error_console/error_console.cc View 6 chunks +6 lines, -5 lines 0 comments Download
M chrome/browser/extensions/error_console/error_console_unittest.cc View 5 chunks +16 lines, -14 lines 0 comments Download
M chrome/browser/extensions/extension_creator.cc View 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/browser/extensions/extension_function_test_utils.cc View 1 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/browser/extensions/extension_garbage_collector.cc View 2 chunks +2 lines, -1 line 0 comments Download
M chrome/browser/extensions/extension_icon_manager_unittest.cc View 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/browser/extensions/extension_install_ui_browsertest.cc View 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/browser/extensions/extension_service.cc View 1 3 chunks +3 lines, -2 lines 0 comments Download
M chrome/browser/extensions/extension_service_unittest.cc View 2 chunks +2 lines, -1 line 0 comments Download
M chrome/browser/extensions/extension_sync_data.cc View 3 chunks +3 lines, -2 lines 0 comments Download
M chrome/browser/extensions/extension_toolbar_model_unittest.cc View 1 2 3 4 5 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/browser/extensions/external_provider_impl.cc View 1 2 chunks +2 lines, -1 line 0 comments Download
M chrome/browser/extensions/external_registry_loader_win.cc View 1 2 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/browser/extensions/policy_handlers.cc View 3 chunks +3 lines, -3 lines 0 comments Download
M chrome/browser/extensions/sandboxed_unpacker.cc View 3 chunks +2 lines, -2 lines 0 comments Download
M chrome/browser/extensions/shared_module_service_unittest.cc View 7 chunks +28 lines, -23 lines 0 comments Download
M chrome/browser/extensions/startup_helper.cc View 3 chunks +3 lines, -2 lines 0 comments Download
M chrome/browser/extensions/test_extension_prefs.cc View 2 chunks +2 lines, -1 line 0 comments Download
M chrome/browser/extensions/unpacked_installer.cc View 3 chunks +2 lines, -2 lines 0 comments Download
M chrome/browser/extensions/updater/extension_updater_unittest.cc View 7 chunks +8 lines, -7 lines 0 comments Download
M chrome/browser/extensions/updater/local_extension_cache.cc View 1 2 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/browser/extensions/webstore_installer.cc View 2 chunks +2 lines, -1 line 0 comments Download
M chrome/browser/extensions/webstore_installer_unittest.cc View 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/browser/extensions/webstore_standalone_installer.cc View 2 chunks +2 lines, -1 line 0 comments Download
M chrome/browser/guest_view/extension_options/extension_options_guest.cc View 2 chunks +3 lines, -2 lines 0 comments Download
M chrome/browser/media_galleries/media_galleries_preferences.cc View 1 4 chunks +3 lines, -3 lines 0 comments Download
M chrome/browser/media_galleries/media_galleries_test_util.cc View 1 7 2 chunks +3 lines, -3 lines 0 comments Download
M chrome/browser/profile_resetter/brandcoded_default_settings.cc View 1 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/browser/sync/test/integration/sync_app_helper.cc View 1 4 chunks +5 lines, -6 lines 0 comments Download
M chrome/browser/sync/test/integration/sync_extension_helper.cc View 5 chunks +9 lines, -9 lines 0 comments Download
M chrome/browser/sync/test/integration/themes_helper.cc View 1 2 chunks +2 lines, -3 lines 0 comments Download
M chrome/browser/themes/browser_theme_pack.cc View 1 3 chunks +4 lines, -5 lines 0 comments Download
M chrome/browser/ui/webui/extensions/chromeos/kiosk_apps_handler.cc View 1 2 3 3 chunks +3 lines, -3 lines 0 comments Download
M chrome/browser/web_applications/web_app_mac.mm View 1 2 2 chunks +2 lines, -1 line 0 comments Download
M chrome/common/DEPS View 1 chunk +1 line, -0 lines 0 comments Download
M chrome/common/extensions/extension_unittest.cc View 2 chunks +14 lines, -9 lines 0 comments Download
M chrome/common/extensions/manifest_tests/extension_manifests_initvalue_unittest.cc View 2 chunks +2 lines, -1 line 0 comments Download
M chrome/common/pepper_permission_util_unittest.cc View 4 chunks +7 lines, -6 lines 0 comments Download
M chrome/renderer/DEPS View 1 1 chunk +1 line, -0 lines 0 comments Download
M chrome/renderer/extensions/webstore_bindings.cc View 2 chunks +2 lines, -1 line 0 comments Download
M chrome/renderer/searchbox/searchbox_extension.cc View 2 chunks +2 lines, -2 lines 0 comments Download
M components/BUILD.gn View 1 2 3 4 5 1 chunk +1 line, -0 lines 0 comments Download
M components/component_updater/component_updater_utils.cc View 1 2 3 4 5 2 chunks +2 lines, -2 lines 0 comments Download
M components/components_tests.gyp View 1 2 3 4 5 2 chunks +4 lines, -0 lines 0 comments Download
M components/crx_file.gypi View 1 2 3 4 5 1 chunk +2 lines, -0 lines 0 comments Download
M components/crx_file/BUILD.gn View 1 2 3 4 5 1 chunk +13 lines, -0 lines 0 comments Download
A + components/crx_file/DEPS View 0 chunks +-1 lines, --1 lines 0 comments Download
A + components/crx_file/id_util.h View 1 2 3 4 5 3 chunks +9 lines, -5 lines 0 comments Download
A + components/crx_file/id_util.cc View 4 chunks +20 lines, -6 lines 0 comments Download
A components/crx_file/id_util_unittest.cc View 1 chunk +44 lines, -0 lines 0 comments Download
M extensions/BUILD.gn View 1 1 chunk +0 lines, -1 line 0 comments Download
M extensions/browser/api/api_resource_manager_unittest.cc View 1 2 1 chunk +0 lines, -1 line 0 comments Download
M extensions/browser/api/storage/storage_api_unittest.cc View 1 2 1 chunk +0 lines, -1 line 0 comments Download
M extensions/browser/error_map_unittest.cc View 5 chunks +5 lines, -5 lines 0 comments Download
M extensions/browser/extension_message_filter.cc View 3 chunks +3 lines, -2 lines 0 comments Download
M extensions/browser/extension_prefs.cc View 16 chunks +19 lines, -18 lines 0 comments Download
M extensions/browser/external_provider_interface.h View 1 chunk +2 lines, -1 line 0 comments Download
M extensions/browser/file_reader_unittest.cc View 3 chunks +3 lines, -3 lines 0 comments Download
M extensions/browser/verified_contents.cc View 2 chunks +2 lines, -1 line 0 comments Download
M extensions/common/BUILD.gn View 1 2 3 4 2 chunks +1 line, -2 lines 0 comments Download
M extensions/common/extension.h View 1 1 chunk +0 lines, -3 lines 0 comments Download
M extensions/common/extension.cc View 1 5 chunks +4 lines, -20 lines 0 comments Download
M extensions/common/extension_resource_unittest.cc View 4 chunks +4 lines, -4 lines 0 comments Download
D extensions/common/id_util.h View 1 chunk +0 lines, -35 lines 0 comments Download
D extensions/common/id_util.cc View 1 chunk +0 lines, -74 lines 0 comments Download
D extensions/common/id_util_unittest.cc View 1 chunk +0 lines, -44 lines 0 comments Download
M extensions/common/manifest_handlers/externally_connectable.cc View 2 chunks +2 lines, -1 line 0 comments Download
M extensions/common/manifest_handlers/shared_module_info.cc View 5 chunks +5 lines, -4 lines 0 comments Download
M extensions/common/permissions/permissions_data_unittest.cc View 2 chunks +3 lines, -3 lines 0 comments Download
M extensions/extensions.gyp View 1 2 3 4 5 2 chunks +0 lines, -3 lines 0 comments Download
M extensions/renderer/user_script_set_manager.cc View 2 chunks +2 lines, -1 line 0 comments Download

Messages

Total messages: 20 (0 generated)
tommycli
yoz: PTAL. This patch has the move of all the extension id_util functions to the ...
6 years, 4 months ago (2014-08-18 22:40:03 UTC) #1
Yoyo Zhou
LGTM https://codereview.chromium.org/481433005/diff/80001/components/crx_file/id_util.h File components/crx_file/id_util.h (right): https://codereview.chromium.org/481433005/diff/80001/components/crx_file/id_util.h#newcode32 components/crx_file/id_util.h:32: // Checks to see if the extension has ...
6 years, 4 months ago (2014-08-19 05:12:13 UTC) #2
tommycli
thestig: May I have a stamp on chrome/. Again, it's just a bunch of trivial ...
6 years, 4 months ago (2014-08-19 16:48:57 UTC) #3
Ryan Sleevi
rubberstamp LGTM for adding crypto/ DEPS
6 years, 4 months ago (2014-08-19 19:40:19 UTC) #4
Lei Zhang
lgtm https://codereview.chromium.org/481433005/diff/100001/chrome/browser/media_galleries/media_galleries_test_util.cc File chrome/browser/media_galleries/media_galleries_test_util.cc (right): https://codereview.chromium.org/481433005/diff/100001/chrome/browser/media_galleries/media_galleries_test_util.cc#newcode71 chrome/browser/media_galleries/media_galleries_test_util.cc:71: EXPECT_TRUE(extension.get() != NULL) << errors; FYI, this likely ...
6 years, 4 months ago (2014-08-19 21:13:24 UTC) #5
tommycli
rsleevi, thestig: thanks! https://codereview.chromium.org/481433005/diff/100001/chrome/browser/media_galleries/media_galleries_test_util.cc File chrome/browser/media_galleries/media_galleries_test_util.cc (right): https://codereview.chromium.org/481433005/diff/100001/chrome/browser/media_galleries/media_galleries_test_util.cc#newcode71 chrome/browser/media_galleries/media_galleries_test_util.cc:71: EXPECT_TRUE(extension.get() != NULL) << errors; On ...
6 years, 4 months ago (2014-08-19 21:38:57 UTC) #6
tommycli
The CQ bit was checked by tommycli@chromium.org
6 years, 4 months ago (2014-08-19 21:39:31 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/tommycli@chromium.org/481433005/120001
6 years, 4 months ago (2014-08-19 21:40:48 UTC) #8
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). The failing builders are: linux_gpu on tryserver.chromium.gpu ...
6 years, 4 months ago (2014-08-19 22:56:37 UTC) #9
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 4 months ago (2014-08-19 23:03:11 UTC) #10
commit-bot: I haz the power
Try jobs failed on following builders: mac_chromium_compile_dbg on tryserver.chromium.mac (http://build.chromium.org/p/tryserver.chromium.mac/builders/mac_chromium_compile_dbg/builds/7489)
6 years, 4 months ago (2014-08-19 23:03:13 UTC) #11
tommycli
The CQ bit was checked by tommycli@chromium.org
6 years, 4 months ago (2014-08-20 18:02:32 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/tommycli@chromium.org/481433005/140001
6 years, 4 months ago (2014-08-20 18:03:39 UTC) #13
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). The failing builders are: android_dbg_tests_recipe on tryserver.chromium.linux ...
6 years, 4 months ago (2014-08-20 20:02:26 UTC) #14
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 4 months ago (2014-08-20 20:55:17 UTC) #15
commit-bot: I haz the power
Try jobs failed on following builders: android_dbg_tests_recipe on tryserver.chromium.linux (http://build.chromium.org/p/tryserver.chromium.linux/builders/android_dbg_tests_recipe/builds/736)
6 years, 4 months ago (2014-08-20 20:55:20 UTC) #16
tommycli
The CQ bit was checked by tommycli@chromium.org
6 years, 4 months ago (2014-08-20 22:53:37 UTC) #17
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/tommycli@chromium.org/481433005/140001
6 years, 4 months ago (2014-08-20 22:54:44 UTC) #18
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). The failing builders are: win_chromium_x64_rel_swarming on tryserver.chromium.win ...
6 years, 4 months ago (2014-08-21 00:41:51 UTC) #19
commit-bot: I haz the power
6 years, 4 months ago (2014-08-21 02:27:38 UTC) #20
Message was sent while issue was closed.
Committed patchset #8 (140001) as 290971

Powered by Google App Engine
This is Rietveld 408576698