|
|
Chromium Code Reviews|
Created:
5 years, 10 months ago by halliwell Modified:
5 years, 10 months ago Reviewers:
gunsch CC:
chromium-reviews, gunsch+watch_chromium.org, lcwu+watch_chromium.org Base URL:
https://chromium.googlesource.com/chromium/src.git@master Target Ref:
refs/pending/heads/master Project:
chromium Visibility:
Public. |
DescriptionFix for white screen when casting on Android.
This was fixed a while back on Chromecast, but no equivalent fix
was made for Android.
BUG=internal b/19484287
Committed: https://crrev.com/f428c79fe88b2458ea659c889227a40383e65e23
Cr-Commit-Position: refs/heads/master@{#317759}
Patch Set 1 #Patch Set 2 : Merge/update to latest #
Total comments: 2
Messages
Total messages: 13 (2 generated)
halliwell@chromium.org changed reviewers: + gunsch@chromium.org
On 2015/02/24 00:53:04, halliwell wrote: Thanks for the fix! Looks okay, but I think you need to sync---CastWindowAndroid was largely rewritten recently-ish.
On 2015/02/24 01:16:01, gunsch wrote: > On 2015/02/24 00:53:04, halliwell wrote: > > Thanks for the fix! Looks okay, but I think you need to sync---CastWindowAndroid > was largely rewritten recently-ish. Doh. Updated & merged ... PTAL :)
lgtm % comment https://codereview.chromium.org/934433003/diff/20001/chromecast/browser/andro... File chromecast/browser/android/cast_window_android.cc (right): https://codereview.chromium.org/934433003/diff/20001/chromecast/browser/andro... chromecast/browser/android/cast_window_android.cc:47: window_android->web_contents_->GetRenderWidgetHostView(); optional: instead of accessing web_contents_ (private member from a static method), you could call web_contents() API (provided by WebContentsDelegate*).
https://codereview.chromium.org/934433003/diff/20001/chromecast/browser/andro... File chromecast/browser/android/cast_window_android.cc (right): https://codereview.chromium.org/934433003/diff/20001/chromecast/browser/andro... chromecast/browser/android/cast_window_android.cc:47: window_android->web_contents_->GetRenderWidgetHostView(); On 2015/02/24 05:55:09, gunsch wrote: > optional: instead of accessing web_contents_ (private member from a static > method), you could call web_contents() API (provided by WebContentsDelegate*). I don't believe there is such an API? WebContentsDelegate actually maintains an entire set of WebContents*'s. Is private member from a static method a problem in the style guide? If so, we could add an accessor into CastWindowAndroid. If not ... I don't personally have a problem with it, at least not for simple cases like this.
On 2015/02/24 06:23:43, halliwell wrote: > https://codereview.chromium.org/934433003/diff/20001/chromecast/browser/andro... > File chromecast/browser/android/cast_window_android.cc (right): > > https://codereview.chromium.org/934433003/diff/20001/chromecast/browser/andro... > chromecast/browser/android/cast_window_android.cc:47: > window_android->web_contents_->GetRenderWidgetHostView(); > On 2015/02/24 05:55:09, gunsch wrote: > > optional: instead of accessing web_contents_ (private member from a static > > method), you could call web_contents() API (provided by WebContentsDelegate*). > > I don't believe there is such an API? WebContentsDelegate actually maintains an > entire set of WebContents*'s. > > Is private member from a static method a problem in the style guide? If so, we > could add an accessor into CastWindowAndroid. If not ... I don't personally > have a problem with it, at least not for simple cases like this. Ha, sent you down the wrong path because I said WebContentsDelegate when I meant WebContentsObserver :( https://code.google.com/p/chromium/codesearch#chromium/src/content/public/bro... but alternately it's really fine as-is, hence "optional", just a stylistic preference and thought I'd point out the API was there. Feel free to submit.
On 2015/02/24 06:27:09, gunsch wrote: > On 2015/02/24 06:23:43, halliwell wrote: > > > https://codereview.chromium.org/934433003/diff/20001/chromecast/browser/andro... > > File chromecast/browser/android/cast_window_android.cc (right): > > > > > https://codereview.chromium.org/934433003/diff/20001/chromecast/browser/andro... > > chromecast/browser/android/cast_window_android.cc:47: > > window_android->web_contents_->GetRenderWidgetHostView(); > > On 2015/02/24 05:55:09, gunsch wrote: > > > optional: instead of accessing web_contents_ (private member from a static > > > method), you could call web_contents() API (provided by > WebContentsDelegate*). > > > > I don't believe there is such an API? WebContentsDelegate actually maintains > an > > entire set of WebContents*'s. > > > > Is private member from a static method a problem in the style guide? If so, > we > > could add an accessor into CastWindowAndroid. If not ... I don't personally > > have a problem with it, at least not for simple cases like this. > > Ha, sent you down the wrong path because I said WebContentsDelegate when I meant > WebContentsObserver :( > > https://code.google.com/p/chromium/codesearch#chromium/src/content/public/bro... > > but alternately it's really fine as-is, hence "optional", just a stylistic > preference and thought I'd point out the API was there. Feel free to submit. Ok, see it now :)
The CQ bit was checked by halliwell@chromium.org
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/934433003/20001
Message was sent while issue was closed.
Committed patchset #2 (id:20001)
Message was sent while issue was closed.
Patchset 2 (id:??) landed as https://crrev.com/f428c79fe88b2458ea659c889227a40383e65e23 Cr-Commit-Position: refs/heads/master@{#317759} |
