Chromium Code Reviews
[email protected] (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(103)

Issue 10830337: Add IPC::Sender and GetRoutingID() to WebContents for convenience and safety. (Closed)

Created:
8 years, 4 months ago by Jói
Modified:
8 years, 4 months ago
Reviewers:
jam
CC:
chromium-reviews, joi+watch-content_chromium.org, darin-cc_chromium.org, jam
Visibility:
Public.

Description

Add IPC::Sender and GetRoutingID() to WebContents for convenience and safety. Code that is or has a WebContentsObserver can already use safe versions of Send() and GetRoutingID() that perform NULL checks and delete the Message object and return MSG_ROUTING_NONE when appropriate. This brings the same thing to code that has just a WebContents. BUG=none Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=151880

Patch Set 1 #

Total comments: 6

Patch Set 2 : Address review comments. #

Patch Set 3 : Merge to LKGR #

Unified diffs Side-by-side diffs Delta from patch set Stats (+40 lines, -19 lines) Patch
M content/browser/web_contents/web_contents_impl.h View 2 chunks +4 lines, -0 lines 0 comments Download
M content/browser/web_contents/web_contents_impl.cc View 1 2 7 chunks +26 lines, -14 lines 0 comments Download
M content/public/browser/web_contents.h View 1 3 chunks +6 lines, -1 line 0 comments Download
M content/public/browser/web_contents_observer.cc View 1 chunk +4 lines, -4 lines 0 comments Download

Messages

Total messages: 9 (0 generated)
Jói
John, as discussed. Cheers, Jói
8 years, 4 months ago (2012-08-15 16:12:10 UTC) #1
jam
lgtm http://codereview.chromium.org/10830337/diff/1/content/browser/web_contents/web_contents_impl.cc File content/browser/web_contents/web_contents_impl.cc (right): http://codereview.chromium.org/10830337/diff/1/content/browser/web_contents/web_contents_impl.cc#newcode2460 content/browser/web_contents/web_contents_impl.cc:2460: Send(new ViewMsg_EnableViewSourceMode(GetRoutingID())); I think you need to keep ...
8 years, 4 months ago (2012-08-15 16:22:02 UTC) #2
Jói
Issues addressed, flipping the CQ bit now. Cheers, Jói http://codereview.chromium.org/10830337/diff/1/content/browser/web_contents/web_contents_impl.cc File content/browser/web_contents/web_contents_impl.cc (right): http://codereview.chromium.org/10830337/diff/1/content/browser/web_contents/web_contents_impl.cc#newcode2460 content/browser/web_contents/web_contents_impl.cc:2460: ...
8 years, 4 months ago (2012-08-15 19:13:23 UTC) #3
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/[email protected]/10830337/6
8 years, 4 months ago (2012-08-15 19:14:16 UTC) #4
commit-bot: I haz the power
Try job failure for 10830337-6 on mac_rel for step "update". http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=mac_rel&number=47996 Step "update" is always ...
8 years, 4 months ago (2012-08-15 19:45:21 UTC) #5
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/[email protected]/10830337/11001
8 years, 4 months ago (2012-08-16 08:55:46 UTC) #6
commit-bot: I haz the power
Try job failure for 10830337-11001 (retry) on linux_rel for step "interactive_ui_tests". It's a second try, ...
8 years, 4 months ago (2012-08-16 10:27:35 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/[email protected]/10830337/11001
8 years, 4 months ago (2012-08-16 10:42:18 UTC) #8
commit-bot: I haz the power
8 years, 4 months ago (2012-08-16 12:59:20 UTC) #9
Change committed as 151880

Powered by Google App Engine
This is Rietveld 408576698