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

Issue 1133713009: Subject .mm files to the header sorting presubmit (Closed)

Created:
5 years, 7 months ago by tapted
Modified:
5 years, 7 months ago
CC:
chrome-apps-syd-reviews_chromium.org, chromium-reviews
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Subject .mm files to the header sorting presubmit The presubmit is already robust to handle Objective-C .h files. Not checking .mm files just adds extra review burden. Plus I can't just press F5 in Sublime to sort lines in .mm files due to import vs include, so it actually needs some brainpower when adding something and I keep forgetting to do that. This adds .mm to the list of file extensions the header sorting presubmit checks for, and fixes the current mistakes to avoid annoying people on presubmit with this change. BUG=None TBR=keybuk@chromium.org,jamescook@chromium.org,stuartmorgan@chromium.org,xhwang@chromium.org,rsesek@chromium.org,zea@chromium.org R=thakis@chromium.org,jochen@chromium.org Committed: https://crrev.com/574f09c11f5a366b059d0992c180543697666c8a Cr-Commit-Position: refs/heads/master@{#330509}

Patch Set 1 #

Patch Set 2 : Just sort them all #

Patch Set 3 : Fix some glitches #

Patch Set 4 : A few more glitches #

Patch Set 5 : rebase (no conflicts) #

Total comments: 1

Patch Set 6 : remove some things included twice #

Total comments: 2

Patch Set 7 : rebase - of course... it would be one of my patches I conflict with :| #

Unified diffs Side-by-side diffs Delta from patch set Stats (+105 lines, -100 lines) Patch
M PRESUBMIT.py View 1 chunk +1 line, -1 line 0 comments Download
M base/files/file_util_mac.mm View 1 1 chunk +1 line, -1 line 0 comments Download
M base/mac/bind_objc_block_unittest.mm View 1 1 chunk +1 line, -1 line 0 comments Download
M base/power_monitor/power_monitor_device_source_mac.mm View 1 1 chunk +1 line, -1 line 0 comments Download
M base/sys_info_ios.mm View 1 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/app_controller_mac.mm View 1 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/app_controller_mac_browsertest.mm View 1 2 chunks +1 line, -1 line 0 comments Download
M chrome/browser/local_discovery/service_discovery_client_mac.mm View 1 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/local_discovery/service_discovery_client_mac_unittest.mm View 1 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/mac/dock.mm View 1 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/platform_util_mac.mm View 1 1 chunk +2 lines, -2 lines 0 comments Download
M chrome/browser/renderer_host/chrome_render_widget_host_view_mac_history_swiper_unit_test.mm View 1 1 chunk +4 lines, -4 lines 0 comments Download
M chrome/browser/themes/theme_service_mac.mm View 1 2 3 4 5 1 chunk +0 lines, -1 line 0 comments Download
M chrome/browser/ui/cocoa/accelerators_cocoa_browsertest.mm View 1 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/cocoa/apps/app_shim_menu_controller_mac.mm View 1 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/cocoa/autofill/autofill_header.mm View 1 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/cocoa/autofill/autofill_sign_in_container.mm View 1 1 chunk +2 lines, -2 lines 0 comments Download
M chrome/browser/ui/cocoa/autofill/autofill_textfield_unittest.mm View 1 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/cocoa/autofill/new_credit_card_bubble_cocoa.mm View 1 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/cocoa/bookmarks/bookmark_bar_folder_hover_state.mm View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/ui/cocoa/browser_window_cocoa.mm View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/cocoa/browser_window_factory_cocoa.mm View 1 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/cocoa/bubble_combobox.mm View 1 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/cocoa/chrome_event_processing_window.mm View 1 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/cocoa/command_observer_bridge.mm View 1 2 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/cocoa/constrained_window/constrained_window_alert_unittest.mm View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/ui/cocoa/constrained_window/constrained_window_mac.mm View 1 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/cocoa/download/download_item_cell.mm View 1 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/cocoa/download/download_item_controller.mm View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/cocoa/download/download_shelf_mac.mm View 1 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/cocoa/exclusive_access_bubble_window_controller_unittest.mm View 1 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/cocoa/extensions/browser_action_button.mm View 1 2 chunks +1 line, -1 line 0 comments Download
M chrome/browser/ui/cocoa/extensions/browser_action_button_interactive_uitest.mm View 1 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/cocoa/extensions/browser_action_test_util_mac.mm View 1 2 3 4 5 1 chunk +1 line, -2 lines 0 comments Download
M chrome/browser/ui/cocoa/extensions/bundle_util.mm View 1 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/cocoa/extensions/extension_install_dialog_controller_browsertest.mm View 1 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/cocoa/extensions/extension_popup_controller.mm View 1 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/cocoa/extensions/media_gallery_list_entry_view.mm View 1 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/cocoa/location_bar/manage_passwords_decoration.mm View 1 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/cocoa/location_bar/zoom_decoration_browsertest.mm View 1 2 3 1 chunk +3 lines, -2 lines 0 comments Download
M chrome/browser/ui/cocoa/media_picker/desktop_media_picker_controller_unittest.mm View 1 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/cocoa/new_tab_button.mm View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/ui/cocoa/notifications/message_center_tray_bridge_unittest.mm View 1 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/cocoa/passwords/manage_passwords_bubble_controller.mm View 1 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/cocoa/passwords/manage_passwords_bubble_controller_unittest.mm View 1 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/cocoa/passwords/manage_passwords_bubble_pending_view_controller.mm View 1 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/cocoa/profiles/avatar_base_controller.mm View 1 1 chunk +3 lines, -3 lines 0 comments Download
M chrome/browser/ui/cocoa/profiles/avatar_icon_controller_unittest.mm View 1 1 chunk +2 lines, -2 lines 0 comments Download
M chrome/browser/ui/cocoa/profiles/avatar_label_button_unittest.mm View 1 2 3 1 chunk +2 lines, -1 line 0 comments Download
M chrome/browser/ui/cocoa/profiles/profile_chooser_controller.mm View 1 2 3 1 chunk +3 lines, -3 lines 0 comments Download
M chrome/browser/ui/cocoa/tab_contents/sad_tab_view_cocoa_unittest.mm View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/ui/cocoa/tab_contents/web_drag_bookmark_handler_mac.mm View 1 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/cocoa/tabs/tab_strip_drag_controller.mm View 1 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/cocoa/toolbar/reload_button_cocoa.mm View 1 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/cocoa/wrench_menu/wrench_menu_controller.mm View 1 1 chunk +1 line, -1 line 0 comments Download
M components/signin/ios/browser/profile_oauth2_token_service_ios_unittest.mm View 1 1 chunk +2 lines, -2 lines 0 comments Download
M components/wifi/wifi_service_mac.mm View 1 1 chunk +1 line, -1 line 0 comments Download
M content/browser/renderer_host/render_widget_host_view_mac_dictionary_helper.mm View 1 2 1 chunk +2 lines, -1 line 0 comments Download
M content/browser/web_contents/web_drag_dest_mac.mm View 1 1 chunk +1 line, -1 line 0 comments Download
M content/renderer/renderer_main_platform_delegate_mac.mm View 1 1 chunk +1 line, -1 line 0 comments Download
M content/shell/renderer/test_runner/helper/layout_test_helper_mac.mm View 1 1 chunk +1 line, -1 line 0 comments Download
M device/bluetooth/bluetooth_discovery_manager_mac.mm View 1 1 chunk +1 line, -1 line 0 comments Download
M device/bluetooth/bluetooth_socket_mac.mm View 1 1 chunk +1 line, -1 line 0 comments Download
M extensions/shell/app/paths_mac.mm View 1 1 chunk +1 line, -1 line 0 comments Download
M extensions/shell/browser/shell_desktop_controller_mac.mm View 1 1 chunk +1 line, -1 line 0 comments Download
M ios/chrome/browser/infobars/infobar_container_ios.mm View 1 1 chunk +1 line, -1 line 0 comments Download
M ios/chrome/browser/snapshots/snapshot_cache.mm View 1 2 3 4 5 1 chunk +0 lines, -1 line 0 comments Download
M ios/chrome/browser/snapshots/snapshot_cache_unittest.mm View 1 1 chunk +1 line, -1 line 0 comments Download
M ios/web/public/test/http_server.mm View 1 1 chunk +1 line, -1 line 0 comments Download
M ios/web/public/test/js_test_util.mm View 1 1 chunk +1 line, -1 line 0 comments Download
M ios/web/web_state/ui/wk_web_view_configuration_provider_unittest.mm View 1 1 chunk +1 line, -1 line 0 comments Download
M ios/web/webui/crw_web_ui_manager.mm View 1 1 chunk +1 line, -1 line 0 comments Download
M media/base/mac/coremedia_glue.mm View 1 1 chunk +1 line, -1 line 0 comments Download
M media/video/capture/mac/video_capture_device_decklink_mac.mm View 1 1 chunk +1 line, -1 line 0 comments Download
M media/video/capture/mac/video_capture_device_factory_mac.mm View 1 1 chunk +1 line, -1 line 0 comments Download
M sandbox/mac/bootstrap_sandbox_unittest.mm View 1 1 chunk +1 line, -1 line 0 comments Download
M sync/util/get_session_name_mac.mm View 1 1 chunk +1 line, -1 line 0 comments Download
M testing/gtest_mac.mm View 1 1 chunk +1 line, -1 line 0 comments Download
M testing/gtest_mac_unittest.mm View 1 1 chunk +1 line, -1 line 0 comments Download
M testing/iossim/iossim.mm View 1 1 chunk +1 line, -1 line 0 comments Download
M ui/app_list/cocoa/app_list_view_controller.mm View 1 1 chunk +1 line, -1 line 0 comments Download
M ui/aura/window_tree_host_mac.mm View 1 1 chunk +1 line, -1 line 0 comments Download
M ui/base/cocoa/base_view.mm View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M ui/gfx/canvas_unittest_mac.mm View 1 1 chunk +1 line, -1 line 0 comments Download
M ui/gfx/font_fallback_mac.mm View 1 1 chunk +2 lines, -2 lines 0 comments Download
M ui/gfx/ios/NSString+CrStringDrawing_unittest.mm View 1 1 chunk +1 line, -1 line 0 comments Download
M ui/gfx/platform_font_mac_unittest.mm View 1 1 chunk +1 line, -1 line 0 comments Download
M ui/native_theme/native_theme_mac.mm View 1 1 chunk +1 line, -1 line 0 comments Download
M ui/views/cocoa/bridged_native_widget.mm View 1 2 3 4 5 6 1 chunk +2 lines, -2 lines 0 comments Download
M ui/views/widget/native_widget_mac_interactive_uitest.mm View 1 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 20 (7 generated)
tapted
Nico, please take a look. To ensure this is generally a good idea, and for ...
5 years, 7 months ago (2015-05-19 03:31:10 UTC) #3
Nico
lgtm Mixing framework headers with regular system headers looks a bit strange, but we'll get ...
5 years, 7 months ago (2015-05-19 04:31:47 UTC) #4
tapted
https://codereview.chromium.org/1133713009/diff/100001/testing/gtest_mac.mm File testing/gtest_mac.mm (right): https://codereview.chromium.org/1133713009/diff/100001/testing/gtest_mac.mm#newcode9 testing/gtest_mac.mm:9: #include <gtest/gtest.h> On 2015/05/19 04:31:47, Nico wrote: > (should ...
5 years, 7 months ago (2015-05-19 05:32:59 UTC) #5
Nico
Looks like it's intentional then. Don't worry about it :-) On May 18, 2015 10:33 ...
5 years, 7 months ago (2015-05-19 07:03:21 UTC) #6
jochen (gone - plz use gerrit)
lgtm
5 years, 7 months ago (2015-05-19 11:24:57 UTC) #7
tapted
+OWNERS TBR (just sorting #includes now to avoid presubmit surprises later) keybuk: device/bluetooth jamescook: extensions/shell ...
5 years, 7 months ago (2015-05-19 11:52:34 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1133713009/100001
5 years, 7 months ago (2015-05-19 11:54:27 UTC) #11
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/64567)
5 years, 7 months ago (2015-05-19 12:01:19 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1133713009/120001
5 years, 7 months ago (2015-05-19 12:10:39 UTC) #16
commit-bot: I haz the power
Committed patchset #7 (id:120001)
5 years, 7 months ago (2015-05-19 13:08:22 UTC) #17
commit-bot: I haz the power
Patchset 7 (id:??) landed as https://crrev.com/574f09c11f5a366b059d0992c180543697666c8a Cr-Commit-Position: refs/heads/master@{#330509}
5 years, 7 months ago (2015-05-19 13:09:14 UTC) #18
stuartmorgan
ios LGTM
5 years, 7 months ago (2015-05-19 13:23:11 UTC) #19
Robert Sesek
5 years, 7 months ago (2015-05-19 14:17:45 UTC) #20
Message was sent while issue was closed.
sandbox/mac lgtm

Powered by Google App Engine
This is Rietveld 408576698