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
[email protected]
Review-Url: https://codereview.chromium.org/2754383004
Cr-Commit-Position: refs/heads/master@{#459562}
diff --git a/chrome/browser/BUILD.gn b/chrome/browser/BUILD.gn
index 12afb69..640e7ce 100644
--- a/chrome/browser/BUILD.gn
+++ b/chrome/browser/BUILD.gn
@@ -4113,7 +4113,7 @@
"../android/java/src/org/chromium/chrome/browser/page_info/CertificateChainHelper.java",
"../android/java/src/org/chromium/chrome/browser/page_info/CertificateViewer.java",
"../android/java/src/org/chromium/chrome/browser/page_info/ConnectionInfoPopup.java",
- "../android/java/src/org/chromium/chrome/browser/page_info/WebsiteSettingsPopup.java",
+ "../android/java/src/org/chromium/chrome/browser/page_info/PageInfoPopup.java",
"../android/java/src/org/chromium/chrome/browser/partnerbookmarks/PartnerBookmarksReader.java",
"../android/java/src/org/chromium/chrome/browser/password_manager/AccountChooserDialog.java",
"../android/java/src/org/chromium/chrome/browser/password_manager/AutoSigninFirstRunDialog.java",