|
Slightly nicer icon.js APIs.
Eliminate getSupportedScaleFactors() from the publicly-exposed list. The lone
external caller of this is in iOS-specific code where just using
window.devicePixelRatio directly is currently equivalent. Arguably, if it
weren't necessarily equivalent, the calling code that unconditionally used the
0th returned element would have been wrong anyway.
getProfileAvatarIcon() isn't really profile-avatar-specific; it's general fixup
for any URL that could be a chrome://theme/ URL, and I want to use it outside
profile avatars. Rename to the more generic GetImage(). (I couldn't think of a
more specific name that was any good.)
Rename getFaviconImageSet() to getFavicon(), partly to be more parallel with the
above, partly because calling out ImageSet didn't seem to make the callers
clearer, just more verbose.
BUG=none
TEST=none
CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.linux:closure_compilation
TBR=dbeam
Committed: https://crrev.com/574fb00df48b99dde0ccc1a81447416e730647d6
Cr-Commit-Position: refs/heads/master@{#416370}
Total comments: 3
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+50 lines, -59 lines) |
Patch |
 |
M |
chrome/browser/resources/bookmark_manager/js/bmm/bookmark_list.js
|
View
|
|
1 chunk |
+1 line, -2 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/resources/history/history.js
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
chrome/browser/resources/history/other_devices.js
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
chrome/browser/resources/md_history/grouped_list.js
|
View
|
|
1 chunk |
+1 line, -2 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/resources/md_history/history_item.js
|
View
|
|
1 chunk |
+1 line, -2 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/resources/md_history/synced_device_card.js
|
View
|
|
1 chunk |
+1 line, -2 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/resources/options/browser_options_profile_list.js
|
View
|
|
1 chunk |
+1 line, -2 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/resources/options/browser_options_startup_page_list.js
|
View
|
|
1 chunk |
+1 line, -2 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/resources/options/home_page_overlay.js
|
View
|
|
1 chunk |
+1 line, -2 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/resources/options/manage_profile_overlay.js
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
chrome/browser/resources/options/password_manager_list.js
|
View
|
|
1 chunk |
+1 line, -2 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/resources/options/profiles_icon_grid.js
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
chrome/browser/resources/options/search_engine_manager_engine_list.js
|
View
|
|
1 chunk |
+3 lines, -3 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/resources/options/supervised_user_list.js
|
View
|
|
1 chunk |
+1 line, -2 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/resources/settings/on_startup_page/startup_url_entry.js
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
chrome/browser/resources/settings/people_page/people_page.js
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
chrome/browser/resources/settings/search_engines_page/omnibox_extension_entry.js
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
chrome/browser/resources/settings/search_engines_page/search_engine_entry.js
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
chrome/browser/resources/settings/site_settings/site_settings_behavior.js
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
chrome/test/data/webui/icon_test.html
|
View
|
|
3 chunks |
+4 lines, -4 lines |
0 comments
|
Download
|
 |
M |
ios/chrome/app/resources/history/history.js
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
ios/chrome/app/resources/history/other_devices.js
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
ios/web/webui/resources/web_ui_favicons.js
|
View
|
|
1 chunk |
+1 line, -1 line |
2 comments
|
Download
|
 |
M |
ui/webui/resources/cr_elements/cr_profile_avatar_selector/cr_profile_avatar_selector.js
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
ui/webui/resources/js/icon.js
|
View
|
|
5 chunks |
+21 lines, -21 lines |
1 comment
|
Download
|
Total messages: 28 (15 generated)
|