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

Issue 513073002: Add SetProvider function (Closed)

Created:
6 years, 3 months ago by jiajia.qin
Modified:
6 years, 3 months ago
CC:
chromium-reviews, darin-cc_chromium.org, jam
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Project:
chromium
Visibility:
Public.

Description

Add SetProvider function This CL will move static function ScreenOrientationProvider::Create implementation to cc file. So, other platforms can also include screen_orientation_provider.h and won't have many times defined error. Meanwhile, add SetProvider function so that other platform can inherit class ScreenOrientationProvider and reset the provider rather than null. R=mlamouri@chromium.org BUG=408573

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+26 lines, -9 lines) Patch
M content/browser/screen_orientation/screen_orientation_dispatcher_host.h View 1 chunk +2 lines, -0 lines 0 comments Download
M content/browser/screen_orientation/screen_orientation_dispatcher_host.cc View 1 chunk +5 lines, -0 lines 0 comments Download
M content/browser/screen_orientation/screen_orientation_provider.h View 1 chunk +0 lines, -9 lines 0 comments Download
A content/browser/screen_orientation/screen_orientation_provider.cc View 1 chunk +18 lines, -0 lines 0 comments Download
M content/content_browser.gypi View 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 14 (0 generated)
jiajia.qin
Hi, Lamouri. Please help to review it.
6 years, 3 months ago (2014-08-28 07:22:42 UTC) #1
mlamouri (slow - plz ping)
On 2014/08/28 07:22:42, jiajia.qin wrote: > Hi, Lamouri. Please help to review it. The idea ...
6 years, 3 months ago (2014-08-28 09:53:34 UTC) #2
jiajia.qin
On 2014/08/28 09:53:34, Mounir Lamouri wrote: > On 2014/08/28 07:22:42, jiajia.qin wrote: > > Hi, ...
6 years, 3 months ago (2014-08-28 16:53:02 UTC) #3
Raphael Kubo da Costa (rakuco)
On 2014/08/28 09:53:34, Mounir Lamouri wrote: > The idea was that new implementation would create ...
6 years, 3 months ago (2014-08-29 10:46:12 UTC) #4
jiajia.qin
On 2014/08/29 10:46:12, Raphael Kubo da Costa (rakuco) wrote: > On 2014-08-28 16:53:02, jiajia.qin wrote: ...
6 years, 3 months ago (2014-09-02 07:21:47 UTC) #5
mlamouri (slow - plz ping)
In your implementation, ScreenOrientationProvider::Create() will return NULL and then you will inject the right provider? ...
6 years, 3 months ago (2014-09-03 12:39:55 UTC) #6
mlamouri (slow - plz ping)
On 2014/09/03 12:39:55, Mounir Lamouri wrote: > In your implementation, ScreenOrientationProvider::Create() will return NULL and ...
6 years, 3 months ago (2014-09-04 17:19:08 UTC) #7
jonross
On 2014/09/04 17:19:08, Mounir Lamouri wrote: > On 2014/09/03 12:39:55, Mounir Lamouri wrote: > > ...
6 years, 3 months ago (2014-09-04 21:18:58 UTC) #8
jiajia.qin
On 2014/09/04 21:18:58, jonross wrote: > On 2014/09/04 17:19:08, Mounir Lamouri wrote: > > On ...
6 years, 3 months ago (2014-09-05 14:38:50 UTC) #9
mlamouri (slow - plz ping)
On 2014/09/05 14:38:50, jiajia.qin wrote: > Jonross, I am not very clear about your implementation ...
6 years, 3 months ago (2014-09-08 09:09:24 UTC) #10
jonross
On 2014/09/08 09:09:24, Mounir Lamouri wrote: > On 2014/09/05 14:38:50, jiajia.qin wrote: > > Jonross, ...
6 years, 3 months ago (2014-09-08 15:06:35 UTC) #11
jiajia.qin
On 2014/09/08 09:09:24, Mounir Lamouri wrote: > On 2014/09/05 14:38:50, jiajia.qin wrote: > > Jonross, ...
6 years, 3 months ago (2014-09-09 11:43:49 UTC) #12
jiajia.qin
On 2014/09/09 11:43:49, jiajia.qin wrote: > On 2014/09/08 09:09:24, Mounir Lamouri wrote: > > On ...
6 years, 3 months ago (2014-09-09 11:47:49 UTC) #13
mlamouri (slow - plz ping)
6 years, 3 months ago (2014-09-09 12:00:40 UTC) #14
On 2014/09/09 11:43:49, jiajia.qin wrote:
> On 2014/09/08 09:09:24, Mounir Lamouri wrote:
> > On 2014/09/05 14:38:50, jiajia.qin wrote:
> > > Jonross, I am not very clear about your implementation
> > > https://codereview.chromium.org/546453004/. Is this Cl's target same with
> the
> > > current one?
> > > It seems that it can't solve my problem. I can't see the new added
function
> > > SetFactory's purpose in your CL if you put it in 
> ScreenOrientationProvider.h
> > 
> > Given that ScreenOrientationProvider would be moved to content/public, would
> you
> > still not be able to access it?
> 
> Hi, Mounir. Thanks for your advice. Based on
> https://codereview.chromium.org/546453004/, it can see my implementation. It
> seems that my cl doesn't needed.

Great! Feel free to close this CL then. We will get the other to land as soon as
possible.

Powered by Google App Engine
This is Rietveld 408576698