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

Issue 2649823002: [ScreenOrientation] Merge ScreenOrientation into ScreenOrientationProvider. (Closed)

Created:
3 years, 11 months ago by leonhsl(Using Gerrit)
Modified:
3 years, 10 months ago
CC:
chromium-reviews, creis+watch_chromium.org, darin-cc_chromium.org, jam, mlamouri+watch-screen-orientation_chromium.org, nasko+codewatch_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

[ScreenOrientation] Merge ScreenOrientation into ScreenOrientationProvider. ScreenOrientation has no actual functionality other than forwarding lock/unlock requests to ScreenOrientationProvider, so this CL merges it into ScreenOrientationProvider and removes it. This CL also removes declarition of content::RenderFrameHostDelegate::GetScreenOrientationProvider() because no codes expect RenderFrameHostDelegate has such a method. BUG=678545 TEST=content_unittests CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.linux:linux_site_isolation Review-Url: https://codereview.chromium.org/2649823002 Cr-Commit-Position: refs/heads/master@{#448617} Committed: https://chromium.googlesource.com/chromium/src/+/e4db177a6f1e8cde2f3f85788161d42dab5cb8e0

Patch Set 1 #

Patch Set 2 : Remove content::RenderFrameHostDelegate::GetScreenOrientationProvider() #

Patch Set 3 : Add initial tests #

Total comments: 3

Patch Set 4 : Add more tests #

Total comments: 1

Patch Set 5 : Fix tests #

Total comments: 16

Patch Set 6 : Rebase only #

Patch Set 7 : Address comments from mlamouri@ #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+382 lines, -123 lines) Patch
M content/browser/BUILD.gn View 1 2 3 4 5 3 chunks +1 line, -3 lines 0 comments Download
M content/browser/frame_host/render_frame_host_delegate.h View 1 2 3 4 5 2 chunks +0 lines, -4 lines 1 comment Download
M content/browser/frame_host/render_frame_host_delegate.cc View 1 2 3 4 5 1 chunk +0 lines, -5 lines 0 comments Download
D content/browser/screen_orientation/screen_orientation.h View 1 2 3 4 5 6 1 chunk +0 lines, -42 lines 0 comments Download
D content/browser/screen_orientation/screen_orientation.cc View 1 2 3 4 5 6 1 chunk +0 lines, -46 lines 0 comments Download
A content/browser/screen_orientation/screen_orientation_provider_unittest.cc View 1 2 3 4 5 6 1 chunk +343 lines, -0 lines 0 comments Download
M content/browser/web_contents/web_contents_impl.h View 1 2 3 4 5 4 chunks +3 lines, -3 lines 0 comments Download
M content/browser/web_contents/web_contents_impl.cc View 1 2 3 4 5 4 chunks +6 lines, -6 lines 0 comments Download
M content/public/browser/screen_orientation_provider.h View 1 2 3 4 5 4 chunks +13 lines, -11 lines 0 comments Download
M content/public/browser/screen_orientation_provider.cc View 1 2 3 4 5 4 chunks +15 lines, -3 lines 0 comments Download
M content/test/BUILD.gn View 1 2 3 4 5 1 chunk +1 line, -0 lines 0 comments Download

Dependent Patchsets:

Messages

Total messages: 78 (55 generated)
leonhsl(Using Gerrit)
PTAL with my attached questions :) Thanks! https://codereview.chromium.org/2649823002/diff/40001/content/browser/screen_orientation/screen_orientation_provider_unittest.cc File content/browser/screen_orientation/screen_orientation_provider_unittest.cc (right): https://codereview.chromium.org/2649823002/diff/40001/content/browser/screen_orientation/screen_orientation_provider_unittest.cc#newcode14 content/browser/screen_orientation/screen_orientation_provider_unittest.cc:14: namespace content ...
3 years, 11 months ago (2017-01-23 10:11:10 UTC) #16
blundell
LGTM I was going to ask whether your unittests would be able to catch the ...
3 years, 11 months ago (2017-01-24 09:58:24 UTC) #19
blundell
To be clear, my suggested refactoring is for a followup CL :).
3 years, 11 months ago (2017-01-24 09:58:45 UTC) #20
leonhsl(Using Gerrit)
Uploaded ps#4 to add more tests, PTAnL, Thanks! https://codereview.chromium.org/2649823002/diff/60001/content/browser/screen_orientation/screen_orientation_provider_unittest.cc File content/browser/screen_orientation/screen_orientation_provider_unittest.cc (right): https://codereview.chromium.org/2649823002/diff/60001/content/browser/screen_orientation/screen_orientation_provider_unittest.cc#newcode39 content/browser/screen_orientation/screen_orientation_provider_unittest.cc:39: lock_count_++; ...
3 years, 11 months ago (2017-01-25 10:52:21 UTC) #23
leonhsl(Using Gerrit)
On 2017/01/24 09:58:45, blundell wrote: > To be clear, my suggested refactoring is for a ...
3 years, 11 months ago (2017-01-25 10:58:17 UTC) #24
blundell
Is the redness on the trybots related to this change?
3 years, 10 months ago (2017-01-26 08:03:05 UTC) #27
leonhsl(Using Gerrit)
On 2017/01/26 08:03:05, blundell wrote: > Is the redness on the trybots related to this ...
3 years, 10 months ago (2017-01-26 08:52:58 UTC) #28
leonhsl(Using Gerrit)
Uploaded ps#5 to fix tests, trybots have turned green, PTAnL, Thanks.
3 years, 10 months ago (2017-01-26 12:11:32 UTC) #32
nasko
Drive-by comment: I see that you are removing ways for frames to get their screen ...
3 years, 10 months ago (2017-01-26 15:03:46 UTC) #36
blundell
On 2017/01/26 15:03:46, nasko wrote: > Drive-by comment: I see that you are removing ways ...
3 years, 10 months ago (2017-01-26 15:32:37 UTC) #37
nasko
On 2017/01/26 15:32:37, blundell wrote: > On 2017/01/26 15:03:46, nasko wrote: > > Drive-by comment: ...
3 years, 10 months ago (2017-01-26 17:36:10 UTC) #38
leonhsl(Using Gerrit)
On 2017/01/26 17:36:10, nasko wrote: > On 2017/01/26 15:32:37, blundell wrote: > > On 2017/01/26 ...
3 years, 10 months ago (2017-01-27 04:10:41 UTC) #39
blundell
Mounir: friendly ping. Will you be able to get to this review soon? If not, ...
3 years, 10 months ago (2017-01-27 12:57:23 UTC) #40
mlamouri (slow - plz ping)
This CL looks fantastic! :) lgtm https://codereview.chromium.org/2649823002/diff/100001/content/browser/screen_orientation/screen_orientation_provider_unittest.cc File content/browser/screen_orientation/screen_orientation_provider_unittest.cc (right): https://codereview.chromium.org/2649823002/diff/100001/content/browser/screen_orientation/screen_orientation_provider_unittest.cc#newcode29 content/browser/screen_orientation/screen_orientation_provider_unittest.cc:29: ~FakeScreenOrientationDelegate() override {} ...
3 years, 10 months ago (2017-01-28 02:17:51 UTC) #41
leonhsl(Using Gerrit)
Hi, nasko@, would you PTAL for content/ OWNER review? Thanks. ps#7 has addressed all nit ...
3 years, 10 months ago (2017-02-04 03:13:45 UTC) #46
leonhsl(Using Gerrit)
Friendly ping nasko@, Thanks.
3 years, 10 months ago (2017-02-07 05:02:20 UTC) #61
leonhsl(Using Gerrit)
Hi, mlamouri@, WDYT about suggestions in https://codereview.chromium.org/2649823002/#msg19? Thanks.
3 years, 10 months ago (2017-02-07 05:04:50 UTC) #62
leonhsl(Using Gerrit)
+kinuko@, would you mind to help take a took for content/ OWNER review, too? Thanks. ...
3 years, 10 months ago (2017-02-07 09:17:01 UTC) #69
kinuko
Putting aside nasko's concern about having this work well with OOPIF, this change itself lgtm ...
3 years, 10 months ago (2017-02-07 11:53:32 UTC) #70
kinuko
On 2017/02/07 11:53:32, kinuko wrote: > Putting aside nasko's concern about having this work well ...
3 years, 10 months ago (2017-02-07 11:54:09 UTC) #71
mlamouri (slow - plz ping)
On 2017/02/07 at 05:04:50, leon.han wrote: > Hi, mlamouri@, WDYT about suggestions in https://codereview.chromium.org/2649823002/#msg19? Thanks. ...
3 years, 10 months ago (2017-02-07 12:26:35 UTC) #72
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/2649823002/160001
3 years, 10 months ago (2017-02-07 14:15:03 UTC) #75
commit-bot: I haz the power
3 years, 10 months ago (2017-02-07 14:19:55 UTC) #78
Message was sent while issue was closed.
Committed patchset #7 (id:160001) as
https://chromium.googlesource.com/chromium/src/+/e4db177a6f1e8cde2f3f85788161...

Powered by Google App Engine
This is Rietveld 408576698