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

Issue 678963003: Allow zooming error pages. (Closed)

Created:
6 years, 1 month ago by wjmaclean
Modified:
6 years, 1 month ago
CC:
chromium-reviews, dbeam+watch-options_chromium.org, darin-cc_chromium.org, nasko+codewatch_chromium.org, jam, creis+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Project:
chromium
Visibility:
Public.

Description

Allow zooming error pages. This CL operates by providing a mechanism in HostZoomMap to convert urls into the error-page url when an error page is loaded. The error-page url is used to track the zoom-levels for error pages. Callers to HostZoomMap::SetZoomLevelForHost*() functions are expected to convert URLs obtained from NavigationEntrys before setting zoom levels. HostZoomMap is also modified to add a function to transmit the zoom level for a newly loaded error page, since it doesn't follow the usual loading pathway. The transmission of the zoom level is triggered when an error page is detected in NavigationControllerImpl::RendererDidNavigateToNewPage(). The CL also creates a localization string to represent error pages in the Content Settings page list of hosts with non-default zooms, this since the internal url representations for error pages are not suitable to be displayed to a user. BUG=417699 Committed: https://crrev.com/de29ed5dcdeed9400020ee333deda779bd825bda Cr-Commit-Position: refs/heads/master@{#301707}

Patch Set 1 #

Total comments: 17

Patch Set 2 : Address comments. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+73 lines, -14 lines) Patch
M chrome/app/generated_resources.grd View 1 chunk +3 lines, -0 lines 0 comments Download
M chrome/browser/ui/webui/options/content_settings_handler.cc View 3 chunks +14 lines, -2 lines 0 comments Download
M chrome/browser/ui/zoom/zoom_controller.cc View 1 6 chunks +10 lines, -7 lines 0 comments Download
M chrome/browser/ui/zoom/zoom_controller_browsertest.cc View 2 chunks +2 lines, -2 lines 0 comments Download
M content/browser/host_zoom_map_impl.h View 1 chunk +2 lines, -0 lines 0 comments Download
M content/browser/host_zoom_map_impl.cc View 1 6 chunks +31 lines, -3 lines 0 comments Download
M content/public/browser/host_zoom_map.h View 1 3 chunks +11 lines, -0 lines 0 comments Download

Messages

Total messages: 14 (4 generated)
wjmaclean
creis@ here's the approach based on converting the URLs in ZoomController and HostZoomMap (I relialized ...
6 years, 1 month ago (2014-10-27 20:26:36 UTC) #2
wjmaclean
bauerb@chromium.org: Please review changes in content_settings_handler This is the same URL as you already lgtm'd, ...
6 years, 1 month ago (2014-10-28 13:56:41 UTC) #4
Bernhard Bauer
content_settings LGTM https://codereview.chromium.org/678963003/diff/1/chrome/browser/ui/webui/options/content_settings_handler.cc File chrome/browser/ui/webui/options/content_settings_handler.cc (right): https://codereview.chromium.org/678963003/diff/1/chrome/browser/ui/webui/options/content_settings_handler.cc#newcode1217 chrome/browser/ui/webui/options/content_settings_handler.cc:1217: l10n_util::GetStringUTF8(IDS_ZOOMLEVELS_CHROME_ERROR_PAGES_LABEL)) { This feels kind of hacky, ...
6 years, 1 month ago (2014-10-28 14:55:23 UTC) #5
Charlie Reis
Thanks, this seems like a better approach than changing NavigationEntry::GetURL. https://codereview.chromium.org/678963003/diff/1/content/browser/frame_host/navigation_controller_impl.cc File content/browser/frame_host/navigation_controller_impl.cc (right): https://codereview.chromium.org/678963003/diff/1/content/browser/frame_host/navigation_controller_impl.cc#newcode1066 ...
6 years, 1 month ago (2014-10-28 16:36:22 UTC) #6
wjmaclean
creis@ ptal? https://codereview.chromium.org/678963003/diff/1/chrome/browser/ui/webui/options/content_settings_handler.cc File chrome/browser/ui/webui/options/content_settings_handler.cc (right): https://codereview.chromium.org/678963003/diff/1/chrome/browser/ui/webui/options/content_settings_handler.cc#newcode1217 chrome/browser/ui/webui/options/content_settings_handler.cc:1217: l10n_util::GetStringUTF8(IDS_ZOOMLEVELS_CHROME_ERROR_PAGES_LABEL)) { On 2014/10/28 14:55:22, Bernhard Bauer ...
6 years, 1 month ago (2014-10-28 17:37:04 UTC) #7
Charlie Reis
Thanks. content/ LGTM. https://codereview.chromium.org/678963003/diff/1/content/browser/host_zoom_map_impl.cc File content/browser/host_zoom_map_impl.cc (right): https://codereview.chromium.org/678963003/diff/1/content/browser/host_zoom_map_impl.cc#newcode52 content/browser/host_zoom_map_impl.cc:52: GURL HostZoomMap::GetURLFromEntry(const NavigationEntry* entry) { On ...
6 years, 1 month ago (2014-10-28 19:09:45 UTC) #8
Fady Samuel
lgtm
6 years, 1 month ago (2014-10-28 19:33:09 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/678963003/20001
6 years, 1 month ago (2014-10-28 19:55:44 UTC) #12
commit-bot: I haz the power
Committed patchset #2 (id:20001)
6 years, 1 month ago (2014-10-28 21:09:14 UTC) #13
commit-bot: I haz the power
6 years, 1 month ago (2014-10-28 21:10:03 UTC) #14
Message was sent while issue was closed.
Patchset 2 (id:??) landed as
https://crrev.com/de29ed5dcdeed9400020ee333deda779bd825bda
Cr-Commit-Position: refs/heads/master@{#301707}

Powered by Google App Engine
This is Rietveld 408576698