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

Issue 2619063003: Update viewport_meta setting on any navigation. (Closed)

Created:
3 years, 11 months ago by aelias_OOO_until_Jul13
Modified:
3 years, 10 months ago
CC:
chromium-reviews, creis+watch_chromium.org, darin-cc_chromium.org, jam, nasko+codewatch_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Update viewport_meta setting on any navigation. In http://crrev.com/1785953002 I tied a setting to the is_overriding_user_agent property of NavigationEntry, but I forgot to keep the preference updated during arbitrary navigation entry changes (e.g. back button). BUG=671580 CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.linux:linux_site_isolation

Patch Set 1 #

Total comments: 4

Patch Set 2 : Move to RendererDidNavigateToExistingPage #

Total comments: 2

Patch Set 3 : Reupload patch set 1 #

Total comments: 2

Patch Set 4 : Add unit test #

Patch Set 5 : Bring back pending_entry_ null check #

Total comments: 4

Patch Set 6 : EXPECT_EQ -> EXPECT_TRUE/FALSE #

Patch Set 7 : Change test to test GoBack() #

Patch Set 8 : Another EXPECT_EQ -> EXPECT_FALSE #

Unified diffs Side-by-side diffs Delta from patch set Stats (+67 lines, -0 lines) Patch
M content/browser/frame_host/navigation_controller_impl.cc View 2 4 2 chunks +8 lines, -0 lines 0 comments Download
M content/browser/frame_host/navigation_controller_impl_unittest.cc View 1 2 3 4 5 6 7 1 chunk +42 lines, -0 lines 0 comments Download
M content/test/test_render_view_host.h View 1 2 3 4 5 6 3 chunks +10 lines, -0 lines 0 comments Download
M content/test/test_render_view_host.cc View 1 2 3 2 chunks +7 lines, -0 lines 0 comments Download

Messages

Total messages: 53 (32 generated)
aelias_OOO_until_Jul13
Hi nasko@, PTAL.
3 years, 11 months ago (2017-01-06 23:36:39 UTC) #3
nasko
https://codereview.chromium.org/2619063003/diff/1/content/browser/frame_host/navigation_controller_impl.cc File content/browser/frame_host/navigation_controller_impl.cc (right): https://codereview.chromium.org/2619063003/diff/1/content/browser/frame_host/navigation_controller_impl.cc#newcode962 content/browser/frame_host/navigation_controller_impl.cc:962: delegate_->UpdateOverridingUserAgent(); Technically this should only be called if we ...
3 years, 11 months ago (2017-01-09 23:07:53 UTC) #4
aelias_OOO_until_Jul13
https://codereview.chromium.org/2619063003/diff/1/content/browser/frame_host/navigation_controller_impl.cc File content/browser/frame_host/navigation_controller_impl.cc (right): https://codereview.chromium.org/2619063003/diff/1/content/browser/frame_host/navigation_controller_impl.cc#newcode962 content/browser/frame_host/navigation_controller_impl.cc:962: delegate_->UpdateOverridingUserAgent(); On 2017/01/09 at 23:07:53, nasko wrote: > Technically ...
3 years, 11 months ago (2017-01-09 23:10:52 UTC) #5
nasko
https://codereview.chromium.org/2619063003/diff/1/content/browser/frame_host/navigation_controller_impl.cc File content/browser/frame_host/navigation_controller_impl.cc (right): https://codereview.chromium.org/2619063003/diff/1/content/browser/frame_host/navigation_controller_impl.cc#newcode962 content/browser/frame_host/navigation_controller_impl.cc:962: delegate_->UpdateOverridingUserAgent(); On 2017/01/09 23:10:52, aelias wrote: > On 2017/01/09 ...
3 years, 11 months ago (2017-01-09 23:44:03 UTC) #6
aelias_OOO_until_Jul13
https://codereview.chromium.org/2619063003/diff/1/content/browser/frame_host/navigation_controller_impl.cc File content/browser/frame_host/navigation_controller_impl.cc (right): https://codereview.chromium.org/2619063003/diff/1/content/browser/frame_host/navigation_controller_impl.cc#newcode962 content/browser/frame_host/navigation_controller_impl.cc:962: delegate_->UpdateOverridingUserAgent(); On 2017/01/09 at 23:44:03, nasko wrote: > History ...
3 years, 11 months ago (2017-01-10 01:17:43 UTC) #8
nasko
https://codereview.chromium.org/2619063003/diff/20001/content/browser/web_contents/web_contents_impl.cc File content/browser/web_contents/web_contents_impl.cc (right): https://codereview.chromium.org/2619063003/diff/20001/content/browser/web_contents/web_contents_impl.cc#newcode2386 content/browser/web_contents/web_contents_impl.cc:2386: return GetController().GetActiveEntry() && This is not an ok change, ...
3 years, 11 months ago (2017-01-10 17:33:35 UTC) #12
aelias_OOO_until_Jul13
https://codereview.chromium.org/2619063003/diff/20001/content/browser/web_contents/web_contents_impl.cc File content/browser/web_contents/web_contents_impl.cc (right): https://codereview.chromium.org/2619063003/diff/20001/content/browser/web_contents/web_contents_impl.cc#newcode2386 content/browser/web_contents/web_contents_impl.cc:2386: return GetController().GetActiveEntry() && On 2017/01/10 at 17:33:35, nasko wrote: ...
3 years, 11 months ago (2017-01-10 21:31:16 UTC) #15
nasko
Adding creis@, who was interested in this CL and whether the code belongs in NavigationController ...
3 years, 11 months ago (2017-01-10 23:22:54 UTC) #19
aelias_OOO_until_Jul13
For what it's worth, the reason this feature is tied to navigation is because the ...
3 years, 11 months ago (2017-01-11 00:22:36 UTC) #22
Charlie Reis
On 2017/01/11 00:22:36, aelias wrote: > For what it's worth, the reason this feature is ...
3 years, 11 months ago (2017-01-11 00:44:00 UTC) #23
aelias_OOO_until_Jul13
OK, thanks for the detailed review, I added a unit test.
3 years, 11 months ago (2017-01-12 04:03:31 UTC) #28
jonchitchat
On 2017/01/12 04:03:31, aelias wrote: > OK, thanks for the detailed review, I added a ...
3 years, 11 months ago (2017-01-12 04:28:23 UTC) #31
Charlie Reis
https://codereview.chromium.org/2619063003/diff/40001/content/browser/frame_host/navigation_controller_impl.cc File content/browser/frame_host/navigation_controller_impl.cc (right): https://codereview.chromium.org/2619063003/diff/40001/content/browser/frame_host/navigation_controller_impl.cc#newcode810 content/browser/frame_host/navigation_controller_impl.cc:810: if (pending_entry_ && I don't think you can remove ...
3 years, 11 months ago (2017-01-12 17:46:00 UTC) #32
aelias_OOO_until_Jul13
https://codereview.chromium.org/2619063003/diff/40001/content/browser/frame_host/navigation_controller_impl.cc File content/browser/frame_host/navigation_controller_impl.cc (right): https://codereview.chromium.org/2619063003/diff/40001/content/browser/frame_host/navigation_controller_impl.cc#newcode810 content/browser/frame_host/navigation_controller_impl.cc:810: if (pending_entry_ && On 2017/01/12 at 17:45:59, Charlie Reis ...
3 years, 11 months ago (2017-01-12 19:27:30 UTC) #35
Charlie Reis
Thanks. LGTM with one addition to the test. https://codereview.chromium.org/2619063003/diff/80001/content/browser/frame_host/navigation_controller_impl_unittest.cc File content/browser/frame_host/navigation_controller_impl_unittest.cc (right): https://codereview.chromium.org/2619063003/diff/80001/content/browser/frame_host/navigation_controller_impl_unittest.cc#newcode1694 content/browser/frame_host/navigation_controller_impl_unittest.cc:1694: EXPECT_EQ(2, ...
3 years, 11 months ago (2017-01-12 19:37:54 UTC) #36
aelias_OOO_until_Jul13
https://codereview.chromium.org/2619063003/diff/80001/content/browser/frame_host/navigation_controller_impl_unittest.cc File content/browser/frame_host/navigation_controller_impl_unittest.cc (right): https://codereview.chromium.org/2619063003/diff/80001/content/browser/frame_host/navigation_controller_impl_unittest.cc#newcode1694 content/browser/frame_host/navigation_controller_impl_unittest.cc:1694: EXPECT_EQ(2, change_counter); On 2017/01/12 at 19:37:54, Charlie Reis wrote: ...
3 years, 11 months ago (2017-01-12 21:19:14 UTC) #44
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/2619063003/140001
3 years, 11 months ago (2017-01-12 21:19:40 UTC) #46
commit-bot: I haz the power
Prior attempt to commit was detected, but we were not able to check whether the ...
3 years, 11 months ago (2017-01-13 00:10:25 UTC) #49
aelias_OOO_until_Jul13
Committed as http://crrev.com/443399
3 years, 11 months ago (2017-01-13 00:12:06 UTC) #50
jonchitchat
lgtm
3 years, 11 months ago (2017-01-22 15:37:26 UTC) #52
jonchitchat
3 years, 10 months ago (2017-01-28 10:30:01 UTC) #53
Message was sent while issue was closed.
On 2017/01/06 23:36:15, aelias wrote:
> Description was changed from
> 
> ==========
> Update viewport_meta setting on any navigation.
> 
> In http://crrev.com/1785953002 I tied a setting to the
> is_overriding_user_agent property of NavigationEntry, but I forgot to
> keep the preference updated during arbitrary navigation entry changes
> (e.g. back button).
> 
> BUG=671580
> ==========
> 
> to
> 
> ==========
> Update viewport_meta setting on any navigation.
> 
> In http://crrev.com/1785953002 I tied a setting to the
> is_overriding_user_agent property of NavigationEntry, but I forgot to
> keep the preference updated during arbitrary navigation entry changes
> (e.g. back button).
> 
> BUG=671580
> CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.linux:linux_site_isolation
> ==========
Wtf

Powered by Google App Engine
This is Rietveld 408576698