Chromium Code Reviews
[email protected] (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1566)

Issue 11866004: Add scheme to HostZoomMap (Closed)

Created:
7 years, 11 months ago by Denis Kuznetsov (DE-MUC)
Modified:
7 years, 9 months ago
CC:
chromium-reviews, joi+watch-content_chromium.org, darin-cc_chromium.org, jam
Base URL:
http://git.chromium.org/chromium/src.git@master
Visibility:
Public.

Description

Web Content zoom settings should not apply to login/lock screen Add scheme to HostZoomMap, use it to specify unmodifiable zoom level for internal ui pages. Reason : Currently, zoom settings are remebered on a per-host basis, and ignore scheme. It works nice for http/https access for the same host, but it is not possible to distinguish between internal ui (with chrome:// scheme) and some intranet sites (having https://login/ does not seem unlikely). BUG=164269 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=187331

Patch Set 1 #

Total comments: 10

Patch Set 2 : Fix Nikita's comments #

Total comments: 10

Patch Set 3 : Fix Scott's comments #

Patch Set 4 : Few more fixes #

Total comments: 2

Patch Set 5 : Eliminate old methods in interface #

Total comments: 11

Patch Set 6 : Change method names #

Patch Set 7 : Fix alignment, add comment #

Total comments: 2

Patch Set 8 : Make notifications clearer, remove single-parameter method from API #

Patch Set 9 : #

Total comments: 10

Patch Set 10 : Fix documentation #

Total comments: 4

Patch Set 11 : Final doc fixes #

Patch Set 12 : Final doc fixes #

Patch Set 13 : Make linux_clang happy #

Patch Set 14 : Add namespace #

Unified diffs Side-by-side diffs Delta from patch set Stats (+257 lines, -85 lines) Patch
M chrome/browser/profiles/off_the_record_profile_impl.h View 1 2 3 4 5 6 7 8 9 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/profiles/off_the_record_profile_impl.cc View 1 2 3 4 5 6 7 8 9 10 1 chunk +14 lines, -8 lines 0 comments Download
M chrome/browser/profiles/off_the_record_profile_impl_unittest.cc View 1 2 3 4 5 6 7 3 chunks +24 lines, -17 lines 0 comments Download
M chrome/browser/profiles/profile_impl.h View 1 2 3 4 5 6 7 8 9 1 chunk +2 lines, -1 line 0 comments Download
M chrome/browser/profiles/profile_impl.cc View 1 2 3 4 5 6 7 8 9 2 chunks +8 lines, -6 lines 0 comments Download
M chrome/browser/ui/browser_browsertest.cc View 1 2 3 4 5 6 7 2 chunks +2 lines, -1 line 0 comments Download
M chrome/browser/ui/cocoa/location_bar/zoom_decoration_browsertest.mm View 1 2 3 4 5 6 7 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/cocoa/wrench_menu/wrench_menu_controller.mm View 1 2 3 4 5 6 7 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/gtk/browser_toolbar_gtk.h View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/gtk/browser_toolbar_gtk.cc View 1 2 3 4 5 6 7 1 chunk +2 lines, -1 line 0 comments Download
M chrome/browser/ui/gtk/location_bar_view_gtk_browsertest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/toolbar/wrench_menu_model.h View 1 2 3 4 5 6 7 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/toolbar/wrench_menu_model.cc View 1 2 3 4 5 6 7 1 chunk +2 lines, -1 line 0 comments Download
M chrome/browser/ui/views/wrench_menu.cc View 1 2 3 4 5 6 7 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/zoom/zoom_controller.h View 1 2 3 4 5 6 7 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/zoom/zoom_controller.cc View 1 2 3 4 5 6 7 8 9 1 chunk +4 lines, -2 lines 0 comments Download
M chrome/browser/ui/zoom/zoom_controller_unittest.cc View 1 2 3 4 5 1 chunk +1 line, -1 line 0 comments Download
M content/browser/host_zoom_map_impl.h View 1 2 3 4 5 6 7 8 2 chunks +14 lines, -2 lines 0 comments Download
M content/browser/host_zoom_map_impl.cc View 1 2 3 4 5 6 7 8 9 3 chunks +68 lines, -8 lines 0 comments Download
M content/browser/host_zoom_map_impl_unittest.cc View 1 2 3 4 5 6 7 1 chunk +28 lines, -3 lines 0 comments Download
M content/browser/loader/async_resource_handler.cc View 1 2 3 4 5 6 7 1 chunk +3 lines, -2 lines 0 comments Download
content/browser/renderer_host/render_view_host_impl.cc View 1 2 3 4 5 6 7 8 9 1 chunk +2 lines, -1 line 0 comments Download
M content/browser/web_contents/web_contents_impl.cc View 1 2 3 4 5 6 7 1 chunk +2 lines, -1 line 0 comments Download
M content/common/view_messages.h View 1 2 3 4 5 6 7 1 chunk +3 lines, -1 line 0 comments Download
M content/public/browser/host_zoom_map.h View 1 2 3 4 5 6 7 8 9 10 2 chunks +51 lines, -12 lines 0 comments Download
M content/renderer/render_thread_impl.h View 1 2 3 4 5 6 7 8 9 1 chunk +3 lines, -1 line 0 comments Download
M content/renderer/render_thread_impl.cc View 1 2 3 4 5 6 7 8 9 3 chunks +16 lines, -8 lines 0 comments Download

Messages

Total messages: 42 (0 generated)
Nikita (slow)
https://chromiumcodereview.appspot.com/11866004/diff/1/chrome/browser/profiles/profile_impl.cc File chrome/browser/profiles/profile_impl.cc (right): https://chromiumcodereview.appspot.com/11866004/diff/1/chrome/browser/profiles/profile_impl.cc#newcode562 chrome/browser/profiles/profile_impl.cc:562: chrome::kChromeUIOobeHost, nit: Alignment like this is more readable if ...
7 years, 11 months ago (2013-01-11 15:23:55 UTC) #1
Denis Kuznetsov (DE-MUC)
Dave for chrome/browser/profiles/profile_impl.cc Scott for content/browser/ Jói for content/public/ James for content/renderer/ Cris for content/common/ ...
7 years, 11 months ago (2013-01-11 15:25:11 UTC) #2
Denis Kuznetsov (DE-MUC)
https://chromiumcodereview.appspot.com/11866004/diff/1/content/public/browser/host_zoom_map.h File content/public/browser/host_zoom_map.h (right): https://chromiumcodereview.appspot.com/11866004/diff/1/content/public/browser/host_zoom_map.h#newcode42 content/public/browser/host_zoom_map.h:42: // Returns the zoom level for the host or ...
7 years, 11 months ago (2013-01-11 15:48:59 UTC) #3
Nikita (slow)
https://chromiumcodereview.appspot.com/11866004/diff/1/content/public/browser/host_zoom_map.h File content/public/browser/host_zoom_map.h (right): https://chromiumcodereview.appspot.com/11866004/diff/1/content/public/browser/host_zoom_map.h#newcode48 content/public/browser/host_zoom_map.h:48: virtual double GetZoomLevel(const std::string& scheme, On 2013/01/11 15:48:59, Denis ...
7 years, 11 months ago (2013-01-11 15:50:39 UTC) #4
Jói
LGTM with nit. https://chromiumcodereview.appspot.com/11866004/diff/5001/content/browser/host_zoom_map_impl.h File content/browser/host_zoom_map_impl.h (right): https://chromiumcodereview.appspot.com/11866004/diff/5001/content/browser/host_zoom_map_impl.h#newcode35 content/browser/host_zoom_map_impl.h:35: virtual double GetZoomLevel(const std::string& scheme, Order ...
7 years, 11 months ago (2013-01-11 17:41:09 UTC) #5
Cris Neckar
IPC security audit LGTM
7 years, 11 months ago (2013-01-11 19:38:02 UTC) #6
sky
https://codereview.chromium.org/11866004/diff/5001/content/browser/host_zoom_map_impl.cc File content/browser/host_zoom_map_impl.cc (right): https://codereview.chromium.org/11866004/diff/5001/content/browser/host_zoom_map_impl.cc#newcode50 content/browser/host_zoom_map_impl.cc:50: for (HostZoomLevels::const_iterator i(source.begin()); dest->insert(source.begin(), source.end()) , at which point ...
7 years, 11 months ago (2013-01-11 20:33:32 UTC) #7
jamesr
content/renderer lgtm
7 years, 11 months ago (2013-01-12 00:38:31 UTC) #8
Nikita (slow)
friendly ping
7 years, 11 months ago (2013-01-16 15:53:17 UTC) #9
Nikita (slow)
Dave, Scott friendly ping
7 years, 11 months ago (2013-01-16 15:54:10 UTC) #10
sky
AFAICT the patch has not been updated since last comments.
7 years, 11 months ago (2013-01-16 17:03:32 UTC) #11
Denis Kuznetsov (DE-MUC)
https://codereview.chromium.org/11866004/diff/5001/content/browser/host_zoom_map_impl.cc File content/browser/host_zoom_map_impl.cc (right): https://codereview.chromium.org/11866004/diff/5001/content/browser/host_zoom_map_impl.cc#newcode50 content/browser/host_zoom_map_impl.cc:50: for (HostZoomLevels::const_iterator i(source.begin()); On 2013/01/11 20:33:32, sky wrote: > ...
7 years, 11 months ago (2013-01-17 13:23:47 UTC) #12
sky
https://codereview.chromium.org/11866004/diff/20001/content/browser/host_zoom_map_impl.h File content/browser/host_zoom_map_impl.h (right): https://codereview.chromium.org/11866004/diff/20001/content/browser/host_zoom_map_impl.h#newcode37 content/browser/host_zoom_map_impl.h:37: virtual void SetZoomLevel(const std::string& scheme, Do we really need ...
7 years, 11 months ago (2013-01-17 17:08:01 UTC) #13
Denis Kuznetsov (DE-MUC)
https://chromiumcodereview.appspot.com/11866004/diff/20001/content/browser/host_zoom_map_impl.h File content/browser/host_zoom_map_impl.h (right): https://chromiumcodereview.appspot.com/11866004/diff/20001/content/browser/host_zoom_map_impl.h#newcode37 content/browser/host_zoom_map_impl.h:37: virtual void SetZoomLevel(const std::string& scheme, On 2013/01/17 17:08:01, sky ...
7 years, 11 months ago (2013-01-21 10:49:29 UTC) #14
sky
On Mon, Jan 21, 2013 at 2:49 AM, <[email protected]> wrote: > > https://chromiumcodereview.appspot.com/11866004/diff/20001/content/browser/host_zoom_map_impl.h > File ...
7 years, 11 months ago (2013-01-22 16:35:34 UTC) #15
DaveMoore
lgtm
7 years, 10 months ago (2013-01-29 01:15:58 UTC) #16
Denis Kuznetsov (DE-MUC)
On 2013/01/22 16:35:34, sky wrote: > On Mon, Jan 21, 2013 at 2:49 AM, <mailto:[email protected]> ...
7 years, 10 months ago (2013-02-04 19:11:05 UTC) #17
sky
On Mon, Feb 4, 2013 at 11:11 AM, <[email protected]> wrote: > On 2013/01/22 16:35:34, sky ...
7 years, 10 months ago (2013-02-05 16:57:49 UTC) #18
Denis Kuznetsov (DE-MUC)
On 2013/02/05 16:57:49, sky wrote: > On Mon, Feb 4, 2013 at 11:11 AM, <mailto:[email protected]> ...
7 years, 10 months ago (2013-02-05 17:14:25 UTC) #19
sky
On Tue, Feb 5, 2013 at 9:14 AM, <[email protected]> wrote: > On 2013/02/05 16:57:49, sky ...
7 years, 10 months ago (2013-02-05 20:44:54 UTC) #20
Denis Kuznetsov (DE-MUC)
On 2013/02/05 20:44:54, sky wrote: > On Tue, Feb 5, 2013 at 9:14 AM, <mailto:[email protected]> ...
7 years, 10 months ago (2013-02-07 17:03:06 UTC) #21
sky
I could be wrong here, but isn't the renderer told about the zoom level by ...
7 years, 10 months ago (2013-02-11 17:13:16 UTC) #22
sky
Here's a couple of other nits. https://chromiumcodereview.appspot.com/11866004/diff/26001/content/browser/host_zoom_map_impl_unittest.cc File content/browser/host_zoom_map_impl_unittest.cc (right): https://chromiumcodereview.appspot.com/11866004/diff/26001/content/browser/host_zoom_map_impl_unittest.cc#newcode46 content/browser/host_zoom_map_impl_unittest.cc:46: EXPECT_DOUBLE_EQ(host_zoom_map.GetZoomLevel("chrome", "login"), 0); ...
7 years, 10 months ago (2013-02-11 17:13:26 UTC) #23
sky
Denis pointed out that zoom level applies to the pair scheme+host, so that using a ...
7 years, 10 months ago (2013-02-11 19:20:31 UTC) #24
Jói
> Joi, currently the patch treats an empty string as applying to all schemes, > ...
7 years, 10 months ago (2013-02-11 19:42:36 UTC) #25
Denis Kuznetsov (DE-MUC)
https://chromiumcodereview.appspot.com/11866004/diff/26001/content/browser/host_zoom_map_impl_unittest.cc File content/browser/host_zoom_map_impl_unittest.cc (right): https://chromiumcodereview.appspot.com/11866004/diff/26001/content/browser/host_zoom_map_impl_unittest.cc#newcode46 content/browser/host_zoom_map_impl_unittest.cc:46: EXPECT_DOUBLE_EQ(host_zoom_map.GetZoomLevel("chrome", "login"), 0); On 2013/02/11 17:13:26, sky wrote: > ...
7 years, 10 months ago (2013-02-12 13:10:45 UTC) #26
sky
https://chromiumcodereview.appspot.com/11866004/diff/37002/content/public/browser/host_zoom_map.h File content/public/browser/host_zoom_map.h (right): https://chromiumcodereview.appspot.com/11866004/diff/37002/content/public/browser/host_zoom_map.h#newcode41 content/public/browser/host_zoom_map.h:41: virtual double GetZoomLevelForHost(const std::string& host) const = 0; How ...
7 years, 10 months ago (2013-02-12 18:47:14 UTC) #27
Denis Kuznetsov (DE-MUC)
Here is new version as we discussed - GetZoomLevelForHost is not in API anymore, and ...
7 years, 9 months ago (2013-03-06 19:05:25 UTC) #28
Jói
content/public: Couple of documentation things to address. https://codereview.chromium.org/11866004/diff/50001/content/public/browser/host_zoom_map.h File content/public/browser/host_zoom_map.h (right): https://codereview.chromium.org/11866004/diff/50001/content/public/browser/host_zoom_map.h#newcode29 content/public/browser/host_zoom_map.h:29: // Enum ...
7 years, 9 months ago (2013-03-06 20:43:17 UTC) #29
sky
Looking much better, than you. https://codereview.chromium.org/11866004/diff/50001/content/public/browser/host_zoom_map.h File content/public/browser/host_zoom_map.h (right): https://codereview.chromium.org/11866004/diff/50001/content/public/browser/host_zoom_map.h#newcode33 content/public/browser/host_zoom_map.h:33: ZOOM_CHANGED_GENERIC, // Some zoom ...
7 years, 9 months ago (2013-03-06 22:21:11 UTC) #30
Denis Kuznetsov (DE-MUC)
https://codereview.chromium.org/11866004/diff/50001/content/public/browser/host_zoom_map.h File content/public/browser/host_zoom_map.h (right): https://codereview.chromium.org/11866004/diff/50001/content/public/browser/host_zoom_map.h#newcode29 content/public/browser/host_zoom_map.h:29: // Enum that indicates how On 2013/03/06 20:43:17, Jói ...
7 years, 9 months ago (2013-03-07 15:16:59 UTC) #31
sky
LGTM https://codereview.chromium.org/11866004/diff/54001/chrome/browser/profiles/off_the_record_profile_impl.cc File chrome/browser/profiles/off_the_record_profile_impl.cc (right): https://codereview.chromium.org/11866004/diff/54001/chrome/browser/profiles/off_the_record_profile_impl.cc#newcode489 chrome/browser/profiles/off_the_record_profile_impl.cc:489: default: Remove default so that we get compile ...
7 years, 9 months ago (2013-03-07 15:47:02 UTC) #32
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/[email protected]/11866004/60001
7 years, 9 months ago (2013-03-07 16:28:36 UTC) #33
commit-bot: I haz the power
Failed to trigger a try job on win_x64_rel HTTP Error 400: Bad Request
7 years, 9 months ago (2013-03-07 16:36:11 UTC) #34
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/[email protected]/11866004/72001
7 years, 9 months ago (2013-03-07 16:36:16 UTC) #35
commit-bot: I haz the power
Sorry for I got bad news for ya. Compile failed with a clobber build on ...
7 years, 9 months ago (2013-03-07 16:59:31 UTC) #36
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/[email protected]/11866004/75001
7 years, 9 months ago (2013-03-07 18:35:24 UTC) #37
commit-bot: I haz the power
Sorry for I got bad news for ya. Compile failed with a clobber build on ...
7 years, 9 months ago (2013-03-07 19:15:55 UTC) #38
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/[email protected]/11866004/83002
7 years, 9 months ago (2013-03-11 12:23:39 UTC) #39
commit-bot: I haz the power
Retried try job too often on win_rel for step(s) browser_tests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=win_rel&number=120628
7 years, 9 months ago (2013-03-11 14:32:05 UTC) #40
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/[email protected]/11866004/83002
7 years, 9 months ago (2013-03-11 14:47:18 UTC) #41
commit-bot: I haz the power
7 years, 9 months ago (2013-03-11 18:59:05 UTC) #42
Message was sent while issue was closed.
Change committed as 187331

Powered by Google App Engine
This is Rietveld 408576698