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

Issue 2527133002: Remove some WebContents::GetRenderViewHost() calls. (Closed)

Created:
4 years ago by Lei Zhang
Modified:
4 years ago
Reviewers:
Charlie Reis, Devlin, nasko
CC:
chromium-reviews, asanka, skanuj+watch_chromium.org, tburkard+watch_chromium.org, dhollowa+watch_chromium.org, dougw+watch_chromium.org, nasko+codewatch_chromium.org, extensions-reviews_chromium.org, cbentzel+watch_chromium.org, melevin+watch_chromium.org, jam, darin-cc_chromium.org, Jered, chromium-apps-reviews_chromium.org, mlamouri+watch-content_chromium.org, creis+watch_chromium.org, Peter Beverloo, gavinp+prer_chromium.org, jfweitz+watch_chromium.org, jochen+watch_chromium.org, mlamouri+watch-test-runner_chromium.org, donnd+watch_chromium.org, David Black, samarth+watch_chromium.org, kmadhusu+watch_chromium.org, einbinder+watch-test-runner_chromium.org, davidsac (gone - try alexmos)
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Remove some WebContents::GetRenderViewHost() calls. web_contents->GetRenderViewHost()->GetProcess() becomes web_contents->GetMainFrame()->GetProcess() unless the call is part of a process id + routing id pair. Also remove an obsolete RenderViewGone reference in background_printing_manager.cc. BUG=666525 Committed: https://crrev.com/c0cb07a009c9d607d265928ece3ead010a736e2b Cr-Commit-Position: refs/heads/master@{#435358}

Patch Set 1 #

Total comments: 3

Patch Set 2 : rebase #

Patch Set 3 : revert content/test/test_web_contents.cc #

Patch Set 4 : More reverts for the same reason as patch set 3, fixes merge conflict #

Messages

Total messages: 30 (20 generated)
Lei Zhang
No rush, and probably conflicts with https://codereview.chromium.org/2515823002/ so I'll land this later.
4 years ago (2016-11-24 17:30:26 UTC) #6
Devlin
One question: When is web_contents->GetMainFrame()->GetProcess() different than web_contents->GetRenderProcessHost()? I would *expect* them to be the ...
4 years ago (2016-11-28 16:12:03 UTC) #7
nasko
LGTM
4 years ago (2016-11-28 19:34:01 UTC) #8
nasko
On 2016/11/28 16:12:03, Devlin wrote: > One question: When is web_contents->GetMainFrame()->GetProcess() different than > web_contents->GetRenderProcessHost()? ...
4 years ago (2016-11-28 19:39:17 UTC) #9
Devlin
On 2016/11/28 19:39:17, nasko wrote: > On 2016/11/28 16:12:03, Devlin wrote: > > One question: ...
4 years ago (2016-11-28 19:41:08 UTC) #10
Charlie Reis
Thanks, LGTM with one change. Also, please list 666525 as the bug number in the ...
4 years ago (2016-11-28 21:00:41 UTC) #11
Lei Zhang
https://codereview.chromium.org/2527133002/diff/1/content/test/test_web_contents.cc File content/test/test_web_contents.cc (right): https://codereview.chromium.org/2527133002/diff/1/content/test/test_web_contents.cc#newcode268 content/test/test_web_contents.cc:268: ProcessRoutingIdPair key(contents->GetMainFrame()->GetProcess()->GetID(), On 2016/11/28 21:00:41, Charlie Reis (slow) wrote: ...
4 years ago (2016-11-30 10:27:00 UTC) #20
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/2527133002/60001
4 years ago (2016-11-30 18:46:12 UTC) #25
commit-bot: I haz the power
Committed patchset #4 (id:60001)
4 years ago (2016-11-30 18:51:30 UTC) #28
commit-bot: I haz the power
4 years ago (2016-11-30 18:55:05 UTC) #30
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/c0cb07a009c9d607d265928ece3ead010a736e2b
Cr-Commit-Position: refs/heads/master@{#435358}

Powered by Google App Engine
This is Rietveld 408576698