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

Issue 2754383004: Rename WebsiteSettings code to PageInfo. (Closed)

Created:
3 years, 9 months ago by lgarron
Modified:
3 years, 8 months ago
CC:
chromium-reviews, felt, jochen (gone - plz use gerrit), lgarron+watch_chromium.org, mac-reviews_chromium.org, palmer, raymes+watch_chromium.org, raymes, Robert Sesek, tfarina, Ilya Sherman
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Rename WebsiteSettings code to PageInfo. This was automated using a script [1] that does the following: - Rename relevant files in the following folders from website_settings* to page_info*: - chrome/browser/ui/page_info - chrome/browser/ui/cocoa/page_info - chrome/browser/ui/views/page_info - chrome/browser/ui/android/page_info - chrome/android/java/res/layout - Run `./tools/git/mass-rename.py` to update e.g. includes, build files, header guards. - mass-rename.py does not handle test files (https://crbug.com/701529) or Java, so those are handled separately, either in an early step are as part of the later renames. - `page_info_bubble_controller.h` needs a separate header guard fix. - Use `sed` to rename classes, enums, non-UMA strings, and comments *WebsiteSettings* to *PageInfo* across the entire Chromium project. - Since several content settings classes are also called "WebsiteSettings", this is done by taking a full list of all occurrences of full tokens containing "WebsiteSettings", "website_settings", or "website settings" and whitelisting individual replacements. - To avoid modifying strings, all lines containing the relevant tokens *following at least one quote mark on the same line* are preserved, except two individually handled cases. There do not appear to be any affected multi-line strings. - `git cl format` - Remove two long-standing TODO comments about this rename, in: - PageInfoPopup.java - page_info_bubble_controller.h This CL does not attempt to reflow comments; all changes stay within 80 lines, though. [1] https://github.com/lgarron/website-settings-to-page-info/blob/master/page_info.fish BUG=571506 TBR=jochen@chromium.org Review-Url: https://codereview.chromium.org/2754383004 Cr-Commit-Position: refs/heads/master@{#459562} Committed: https://chromium.googlesource.com/chromium/src/+/617a30f35e5cec5df6c15a8d7fbb222cdbabcccc

Patch Set 1 #

Total comments: 18

Patch Set 2 : Rename everything. #

Total comments: 14

Patch Set 3 : Address msw@'s comments. #

Total comments: 1

Patch Set 4 : Upload missing comment fix for WebSettingsUI -> PageInfoUI. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+1035 lines, -7873 lines) Patch
M build/android/pylib/gtest/filter/unit_tests_disabled View 1 1 chunk +1 line, -1 line 0 comments Download
M chrome/BUILD.gn View 1 2 1 chunk +3 lines, -3 lines 0 comments Download
M chrome/android/BUILD.gn View 1 2 1 chunk +1 line, -1 line 0 comments Download
A + chrome/android/java/res/layout/page_info.xml View 1 3 chunks +27 lines, -27 lines 0 comments Download
A + chrome/android/java/res/layout/page_info_permission_row.xml View 1 1 chunk +11 lines, -11 lines 0 comments Download
D chrome/android/java/res/layout/website_settings.xml View 1 1 chunk +0 lines, -109 lines 0 comments Download
D chrome/android/java/res/layout/website_settings_permission_row.xml View 1 1 chunk +0 lines, -37 lines 0 comments Download
M chrome/android/java/res/values/colors.xml View 1 2 1 chunk +3 lines, -3 lines 0 comments Download
M chrome/android/java/res/values/dimens.xml View 1 2 1 chunk +5 lines, -5 lines 0 comments Download
M chrome/android/java/src/org/chromium/chrome/browser/ChromeActivity.java View 1 2 2 chunks +2 lines, -3 lines 0 comments Download
M chrome/android/java/src/org/chromium/chrome/browser/customtabs/CustomTabActivity.java View 1 2 chunks +3 lines, -5 lines 0 comments Download
M chrome/android/java/src/org/chromium/chrome/browser/omnibox/LocationBarLayout.java View 1 2 2 chunks +3 lines, -3 lines 0 comments Download
M chrome/android/java/src/org/chromium/chrome/browser/page_info/ConnectionInfoPopup.java View 1 3 chunks +3 lines, -3 lines 0 comments Download
A + chrome/android/java/src/org/chromium/chrome/browser/page_info/PageInfoPopup.java View 1 17 chunks +37 lines, -39 lines 0 comments Download
D chrome/android/java/src/org/chromium/chrome/browser/page_info/WebsiteSettingsPopup.java View 1 1 chunk +0 lines, -980 lines 0 comments Download
M chrome/android/java/src/org/chromium/chrome/browser/toolbar/CustomTabToolbar.java View 1 2 2 chunks +3 lines, -3 lines 0 comments Download
M chrome/android/java/strings/android_chrome_strings.grd View 1 2 1 chunk +1 line, -1 line 0 comments Download
M chrome/android/java_sources.gni View 1 2 1 chunk +1 line, -1 line 0 comments Download
M chrome/app/generated_resources.grd View 1 2 1 chunk +45 lines, -45 lines 0 comments Download
M chrome/browser/BUILD.gn View 1 2 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/android/chrome_jni_registrar.cc View 1 2 2 chunks +3 lines, -3 lines 0 comments Download
M chrome/browser/android/resource_id.h View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/chromeos/login/ui/simple_web_view_dialog.h View 1 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/chromeos/login/ui/simple_web_view_dialog.cc View 1 1 chunk +1 line, -2 lines 0 comments Download
M chrome/browser/ui/BUILD.gn View 1 2 5 chunks +14 lines, -14 lines 0 comments Download
M chrome/browser/ui/android/page_info/connection_info_popup_android.h View 1 3 chunks +7 lines, -7 lines 0 comments Download
M chrome/browser/ui/android/page_info/connection_info_popup_android.cc View 1 7 chunks +7 lines, -8 lines 0 comments Download
A + chrome/browser/ui/android/page_info/page_info_popup_android.h View 1 4 chunks +18 lines, -19 lines 0 comments Download
A + chrome/browser/ui/android/page_info/page_info_popup_android.cc View 1 8 chunks +27 lines, -30 lines 0 comments Download
M chrome/browser/ui/android/page_info/website_settings_popup_android.h View 1 1 chunk +0 lines, -69 lines 0 comments Download
M chrome/browser/ui/android/page_info/website_settings_popup_android.cc View 1 1 chunk +0 lines, -173 lines 0 comments Download
M chrome/browser/ui/autofill/chrome_autofill_client.cc View 1 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/browser_commands.h View 1 2 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/browser_commands.cc View 1 2 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/browser/ui/browser_dialogs.h View 1 1 chunk +2 lines, -2 lines 0 comments Download
M chrome/browser/ui/browser_window.h View 1 2 1 chunk +2 lines, -2 lines 0 comments Download
M chrome/browser/ui/cocoa/browser_window_cocoa.h View 1 2 1 chunk +4 lines, -5 lines 0 comments Download
M chrome/browser/ui/cocoa/browser_window_cocoa.mm View 1 2 3 chunks +5 lines, -5 lines 0 comments Download
M chrome/browser/ui/cocoa/location_bar/location_icon_decoration.mm View 1 1 chunk +1 line, -1 line 0 comments Download
A + chrome/browser/ui/cocoa/page_info/page_info_bubble_controller.h View 1 2 3 7 chunks +23 lines, -27 lines 0 comments Download
A + chrome/browser/ui/cocoa/page_info/page_info_bubble_controller.mm View 1 23 chunks +60 lines, -70 lines 0 comments Download
A + chrome/browser/ui/cocoa/page_info/page_info_bubble_controller_unittest.mm View 1 2 10 chunks +29 lines, -30 lines 0 comments Download
A chrome/browser/ui/cocoa/page_info/page_info_utils_cocoa.h View 1 chunk +12 lines, -0 lines 0 comments Download
A + chrome/browser/ui/cocoa/page_info/page_info_utils_cocoa.mm View 2 chunks +2 lines, -3 lines 0 comments Download
M chrome/browser/ui/cocoa/page_info/permission_selector_button.h View 1 chunk +1 line, -2 lines 0 comments Download
M chrome/browser/ui/cocoa/page_info/permission_selector_button.mm View 4 chunks +7 lines, -8 lines 0 comments Download
M chrome/browser/ui/cocoa/page_info/permission_selector_button_unittest.mm View 3 chunks +3 lines, -3 lines 0 comments Download
D chrome/browser/ui/cocoa/page_info/website_settings_bubble_controller.h View 1 chunk +0 lines, -158 lines 0 comments Download
D chrome/browser/ui/cocoa/page_info/website_settings_bubble_controller.mm View 1 chunk +0 lines, -1214 lines 0 comments Download
D chrome/browser/ui/cocoa/page_info/website_settings_bubble_controller_unittest.mm View 1 2 1 chunk +0 lines, -304 lines 0 comments Download
D chrome/browser/ui/cocoa/page_info/website_settings_utils_cocoa.h View 1 chunk +0 lines, -13 lines 0 comments Download
D chrome/browser/ui/cocoa/page_info/website_settings_utils_cocoa.mm View 1 chunk +0 lines, -24 lines 0 comments Download
M chrome/browser/ui/cocoa/permission_bubble/permission_bubble_controller.mm View 4 chunks +8 lines, -9 lines 0 comments Download
M chrome/browser/ui/login/login_handler.cc View 1 1 chunk +1 line, -1 line 0 comments Download
A + chrome/browser/ui/page_info/page_info.h View 1 7 chunks +36 lines, -36 lines 0 comments Download
A + chrome/browser/ui/page_info/page_info.cc View 1 19 chunks +51 lines, -55 lines 0 comments Download
A + chrome/browser/ui/page_info/page_info_infobar_delegate.h View 1 2 chunks +9 lines, -9 lines 0 comments Download
A + chrome/browser/ui/page_info/page_info_infobar_delegate.cc View 1 2 chunks +15 lines, -17 lines 0 comments Download
A + chrome/browser/ui/page_info/page_info_ui.h View 1 8 chunks +21 lines, -22 lines 0 comments Download
A + chrome/browser/ui/page_info/page_info_ui.cc View 1 15 chunks +92 lines, -100 lines 0 comments Download
A + chrome/browser/ui/page_info/page_info_unittest.cc View 1 2 21 chunks +177 lines, -185 lines 0 comments Download
M chrome/browser/ui/page_info/permission_menu_model.h View 3 chunks +4 lines, -4 lines 0 comments Download
M chrome/browser/ui/page_info/permission_menu_model.cc View 1 6 chunks +15 lines, -19 lines 0 comments Download
M chrome/browser/ui/page_info/permission_menu_model_unittest.cc View 4 chunks +4 lines, -4 lines 0 comments Download
D chrome/browser/ui/page_info/website_settings.h View 1 1 chunk +0 lines, -241 lines 0 comments Download
D chrome/browser/ui/page_info/website_settings.cc View 1 chunk +0 lines, -754 lines 0 comments Download
D chrome/browser/ui/page_info/website_settings_infobar_delegate.h View 1 chunk +0 lines, -40 lines 0 comments Download
D chrome/browser/ui/page_info/website_settings_infobar_delegate.cc View 1 chunk +0 lines, -63 lines 0 comments Download
D chrome/browser/ui/page_info/website_settings_ui.h View 1 chunk +0 lines, -204 lines 0 comments Download
D chrome/browser/ui/page_info/website_settings_ui.cc View 1 chunk +0 lines, -388 lines 0 comments Download
D chrome/browser/ui/page_info/website_settings_unittest.cc View 1 2 1 chunk +0 lines, -721 lines 0 comments Download
M chrome/browser/ui/views/browser_dialogs_views_mac.cc View 1 3 chunks +6 lines, -7 lines 0 comments Download
M chrome/browser/ui/views/frame/browser_view.h View 1 2 1 chunk +4 lines, -5 lines 0 comments Download
M chrome/browser/ui/views/frame/browser_view.cc View 1 2 2 chunks +3 lines, -3 lines 0 comments Download
M chrome/browser/ui/views/location_bar/location_bar_view.h View 1 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/views/location_bar/location_icon_view.cc View 1 2 3 chunks +3 lines, -4 lines 0 comments Download
M chrome/browser/ui/views/location_bar/location_icon_view_interactive_uitest.cc View 1 3 chunks +5 lines, -5 lines 0 comments Download
M chrome/browser/ui/views/page_info/chosen_object_row.h View 3 chunks +3 lines, -4 lines 0 comments Download
M chrome/browser/ui/views/page_info/chosen_object_row.cc View 4 chunks +7 lines, -9 lines 0 comments Download
M chrome/browser/ui/views/page_info/chosen_object_row_observer.h View 1 chunk +2 lines, -2 lines 0 comments Download
A + chrome/browser/ui/views/page_info/page_info_popup_view.h View 1 8 chunks +30 lines, -31 lines 0 comments Download
A + chrome/browser/ui/views/page_info/page_info_popup_view.cc View 1 2 25 chunks +56 lines, -61 lines 0 comments Download
A + chrome/browser/ui/views/page_info/page_info_popup_view_interactive_uitest.cc View 1 3 chunks +11 lines, -11 lines 0 comments Download
A + chrome/browser/ui/views/page_info/page_info_popup_view_unittest.cc View 10 chunks +20 lines, -21 lines 0 comments Download
M chrome/browser/ui/views/page_info/permission_selector_row.h View 3 chunks +10 lines, -12 lines 0 comments Download
M chrome/browser/ui/views/page_info/permission_selector_row.cc View 4 chunks +15 lines, -15 lines 0 comments Download
M chrome/browser/ui/views/page_info/permission_selector_row_observer.h View 1 chunk +2 lines, -2 lines 0 comments Download
D chrome/browser/ui/views/page_info/website_settings_popup_view.h View 1 chunk +0 lines, -186 lines 0 comments Download
D chrome/browser/ui/views/page_info/website_settings_popup_view.cc View 1 1 chunk +0 lines, -760 lines 0 comments Download
D chrome/browser/ui/views/page_info/website_settings_popup_view_interactive_uitest.cc View 1 chunk +0 lines, -72 lines 0 comments Download
D chrome/browser/ui/views/page_info/website_settings_popup_view_unittest.cc View 1 chunk +0 lines, -268 lines 0 comments Download
M chrome/browser/ui/views/permission_bubble/permission_prompt_impl.cc View 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/browser/ui/views/toolbar/toolbar_view.h View 1 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/views/toolbar/toolbar_view.cc View 1 1 chunk +2 lines, -2 lines 0 comments Download
M chrome/browser/ui/webui/vr_shell/vr_shell_ui_ui.cc View 1 1 chunk +4 lines, -6 lines 0 comments Download
M chrome/test/BUILD.gn View 1 2 4 chunks +4 lines, -4 lines 0 comments Download
M chrome/test/base/test_browser_window.h View 1 2 1 chunk +1 line, -1 line 0 comments Download
M components/components_strings.grd View 1 2 1 chunk +2 lines, -2 lines 0 comments Download
M components/infobars/core/infobar_delegate.h View 1 1 chunk +1 line, -1 line 0 comments Download
M docs/ui/views/macviews_release.md View 1 1 chunk +1 line, -1 line 0 comments Download
M ios/chrome/browser/ui/dialogs/nsurl_protection_space_util.mm View 1 1 chunk +1 line, -1 line 0 comments Download
M ios/chrome/browser/ui/dialogs/nsurl_protection_space_util_unittest.mm View 1 4 chunks +16 lines, -13 lines 0 comments Download
M tools/metrics/actions/actions.xml View 1 2 2 chunks +3 lines, -3 lines 0 comments Download
M tools/metrics/histograms/histograms.xml View 1 2 2 chunks +2 lines, -2 lines 0 comments Download

Messages

Total messages: 52 (37 generated)
lgarron
estark@, could you review?
3 years, 9 months ago (2017-03-17 21:47:40 UTC) #3
estark
https://codereview.chromium.org/2754383004/diff/1/chrome/browser/ui/android/page_info/connection_info_popup_android.h File chrome/browser/ui/android/page_info/connection_info_popup_android.h (right): https://codereview.chromium.org/2754383004/diff/1/chrome/browser/ui/android/page_info/connection_info_popup_android.h#newcode46 chrome/browser/ui/android/page_info/connection_info_popup_android.h:46: // The presenter that controls the Website Settings UI. ...
3 years, 9 months ago (2017-03-20 20:19:19 UTC) #12
lgarron
https://codereview.chromium.org/2754383004/diff/1/chrome/browser/ui/android/page_info/connection_info_popup_android.h File chrome/browser/ui/android/page_info/connection_info_popup_android.h (right): https://codereview.chromium.org/2754383004/diff/1/chrome/browser/ui/android/page_info/connection_info_popup_android.h#newcode46 chrome/browser/ui/android/page_info/connection_info_popup_android.h:46: // The presenter that controls the Website Settings UI. ...
3 years, 9 months ago (2017-03-20 23:09:03 UTC) #13
lgarron
estark@, could you review again (whole thing)? tedchoc@, could you review the Java code? msw@, ...
3 years, 9 months ago (2017-03-24 05:55:20 UTC) #19
msw
I went over everything, maybe that alleviates other c/b/ui/*/OWNERS? lgtm with a minor "is not ...
3 years, 9 months ago (2017-03-24 16:25:01 UTC) #24
Ted C
On 2017/03/24 16:25:01, msw wrote: > I went over everything, maybe that alleviates other c/b/ui/*/OWNERS? ...
3 years, 9 months ago (2017-03-24 18:34:07 UTC) #26
lgarron
https://codereview.chromium.org/2754383004/diff/20001/chrome/browser/ui/browser_window.h File chrome/browser/ui/browser_window.h (right): https://codereview.chromium.org/2754383004/diff/20001/chrome/browser/ui/browser_window.h#newcode296 chrome/browser/ui/browser_window.h:296: // Shows the website settings using the specified information. ...
3 years, 9 months ago (2017-03-24 18:40:19 UTC) #28
msw
still lgtm with a nit; please try to upload separate patch sets when rebasing and ...
3 years, 9 months ago (2017-03-24 18:55:13 UTC) #32
lgarron
Sorry, I accidentally pushed a revision without that fix; seems your comment beat my fixed ...
3 years, 9 months ago (2017-03-24 18:59:00 UTC) #35
estark
lgtm
3 years, 9 months ago (2017-03-24 19:20:07 UTC) #36
lgarron
Moving rsesek@ to optional reviewer, since msw@ covered chrome/browser/ui, and the changes are mechanical (albeit ...
3 years, 9 months ago (2017-03-24 19:26:22 UTC) #38
Alexei Svitkine (slow)
histograms.xml lgtm
3 years, 9 months ago (2017-03-24 20:57:51 UTC) #40
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2754383004/60001
3 years, 9 months ago (2017-03-24 21:32:47 UTC) #47
commit-bot: I haz the power
Committed patchset #4 (id:60001) as https://chromium.googlesource.com/chromium/src/+/617a30f35e5cec5df6c15a8d7fbb222cdbabcccc
3 years, 9 months ago (2017-03-24 21:44:10 UTC) #50
Robert Sesek
3 years, 8 months ago (2017-03-29 16:00:59 UTC) #52
Message was sent while issue was closed.
lgtm

Powered by Google App Engine
This is Rietveld 408576698