|
|
Created:
6 years, 6 months ago by gyuyoung-inactive Modified:
6 years, 5 months ago Reviewers:
jrummell, acolwell GONE FROM CHROMIUM, jochen (gone - plz use gerrit), ddorwin, abarth-chromium CC:
blink-reviews, eric.carlson_apple.com, feature-media-reviews_chromium.org, philipj_slow Base URL:
https://chromium.googlesource.com/chromium/blink.git@master Project:
blink Visibility:
Public. |
DescriptionRemove duplicated provideMediaKeysTo() in MediaKeysClient.h
Though MediaKeysController has already provideMediaKeysTo() which is being used by WebViewImpl, MediaKeysClient.h also has provideMediaKeysTo() unnecessary.
BUG=none
Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=177184
Patch Set 1 #Patch Set 2 : #Patch Set 3 : #
Total comments: 1
Patch Set 4 : #Messages
Total messages: 15 (0 generated)
Add jochen
On 2014/06/15 14:49:01, gyuyoung wrote: > Add jochen What is the purpose of this change? Please include it in your change description.
On 2014/06/15 18:14:15, pdr wrote: > On 2014/06/15 14:49:01, gyuyoung wrote: > > Add jochen > > What is the purpose of this change? Please include it in your change > description. pdr, this cl is minor code refactoring so that we can reduce to keep unnecessary member variable and header file inclusion. Though this cl is not big helpful change, I believe this helps to clean up code.
not lgtm This CL creates a memory leak. The created object is never freed.
On 2014/06/16 04:46:20, abarth wrote: > not lgtm > > This CL creates a memory leak. The created object is never freed. Oops. I'm sorry. I modify this cl as latest one. Though this is minor refactoring, I think it would be better if MediaKeysController manages MediaKeysClient object.
+ddorwin & +jrummell since they are actively working on this code and need to be kept in the loop. gyuyoung, please make sure to include them as reviewers in future changes to the EME code since they are the owners for that module.
On 2014/06/16 15:18:34, acolwell wrote: > +ddorwin & +jrummell since they are actively working on this code and need to be > kept in the loop. > > gyuyoung, please make sure to include them as reviewers in future changes to the > EME code since they are the owners for that module. ok, I see. Anyway, abarth, what do you think about latest patch ?
On 2014/06/17 at 01:25:53, gyuyoung.kim wrote: > ok, I see. Anyway, abarth, what do you think about latest patch ? This CL doesn't appear to solve a real problem. You've removed one pointer on WebViewImpl and replaced it with a startup malloc. It's not clear that trade is worth making.
https://codereview.chromium.org/338713002/diff/40001/Source/web/WebViewImpl.h File Source/web/WebViewImpl.h (left): https://codereview.chromium.org/338713002/diff/40001/Source/web/WebViewImpl.h... Source/web/WebViewImpl.h:694: MediaKeysClientImpl m_mediaKeysClientImpl; m_mediaKeysClientImpl instance is only used by MediaKeyController. So, I thought that it would be good to move ownership to MediaKeyController. However, I agree that this is not big worth to do because this is trivial refactoring. To be honest, I don't understand where memory leak happens in my last patch. Last one is to pass OwnPtr to MediaKeyController's member variable, then it will be free when going out of MediaKeyController. Anyway, now I just would like to remove unused provideMediaKeysTo() in MediaKeyClient.h. Because MediaKeyController has already same function and it is only being used by WebViewImpl.cpp. It looks the function is duplicated.
On 2014/06/23 06:33:07, gyuyoung wrote: > https://codereview.chromium.org/338713002/diff/40001/Source/web/WebViewImpl.h > File Source/web/WebViewImpl.h (left): > > https://codereview.chromium.org/338713002/diff/40001/Source/web/WebViewImpl.h... > Source/web/WebViewImpl.h:694: MediaKeysClientImpl m_mediaKeysClientImpl; > m_mediaKeysClientImpl instance is only used by MediaKeyController. So, I thought > that it would be good to move ownership to MediaKeyController. However, I agree > that this is not big worth to do because this is trivial refactoring. To be > honest, I don't understand where memory leak happens in my last patch. Last one > is to pass OwnPtr to MediaKeyController's member variable, then it will be free > when going out of MediaKeyController. Anyway, now I just would like to remove > unused provideMediaKeysTo() in MediaKeyClient.h. Because MediaKeyController has > already same function and it is only being used by WebViewImpl.cpp. It looks the > function is duplicated. Abarth, could you take a look this cl again ?
On 2014/06/24 22:15:23, gyuyoung wrote: > On 2014/06/23 06:33:07, gyuyoung wrote: > > https://codereview.chromium.org/338713002/diff/40001/Source/web/WebViewImpl.h > > File Source/web/WebViewImpl.h (left): > > > > > https://codereview.chromium.org/338713002/diff/40001/Source/web/WebViewImpl.h... > > Source/web/WebViewImpl.h:694: MediaKeysClientImpl m_mediaKeysClientImpl; > > m_mediaKeysClientImpl instance is only used by MediaKeyController. So, I > thought > > that it would be good to move ownership to MediaKeyController. However, I > agree > > that this is not big worth to do because this is trivial refactoring. To be > > honest, I don't understand where memory leak happens in my last patch. Last > one > > is to pass OwnPtr to MediaKeyController's member variable, then it will be > free > > when going out of MediaKeyController. Anyway, now I just would like to remove > > unused provideMediaKeysTo() in MediaKeyClient.h. Because MediaKeyController > has > > already same function and it is only being used by WebViewImpl.cpp. It looks > the > > function is duplicated. > > Abarth, could you take a look this cl again ? Is there any owner who can take a look last patch ?
lgtm
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/gyuyoung.kim@samsung.com/338713002/60001
Message was sent while issue was closed.
Change committed as 177184 |