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

Issue 10134024: Move Referrer into CommonParamTraits (Closed)

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

Description

Move Referrer into CommonParamTraits While working on http://codereview.chromium.org/9875026/ , I ended up needing to put a content::Referrer into the prerender_messages. The problem was that it's already used in view_messages, and the compile would fail due to duplicate definitions. The CommonParamTraits approach here avoids this problem by explicitly including a serializer and deserializer. BUG=None Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=133915

Patch Set 1 #

Total comments: 6

Patch Set 2 : remediate to jam's review #

Total comments: 1

Patch Set 3 : fix include order #

Unified diffs Side-by-side diffs Delta from patch set Stats (+41 lines, -7 lines) Patch
M content/common/view_messages.h View 1 2 chunks +0 lines, -6 lines 0 comments Download
M content/public/common/common_param_traits.h View 1 2 4 chunks +20 lines, -1 line 0 comments Download
M content/public/common/common_param_traits.cc View 1 2 chunks +21 lines, -0 lines 0 comments Download

Messages

Total messages: 7 (0 generated)
gavinp
John, I'm not totally happy with this solution; but it does avoid the issue I ...
8 years, 8 months ago (2012-04-22 22:26:13 UTC) #1
jam
http://codereview.chromium.org/10134024/diff/1/content/public/common/common_param_traits.cc File content/public/common/common_param_traits.cc (right): http://codereview.chromium.org/10134024/diff/1/content/public/common/common_param_traits.cc#newcode13 content/public/common/common_param_traits.cc:13: #include "third_party/WebKit/Source/Platform/chromium/public/WebReferrerPolicy.h" nit: not needed since it's in the ...
8 years, 8 months ago (2012-04-23 15:25:40 UTC) #2
gavinp
Thanks for your review, John. You'll see some weirdness if you take the delta-from-patch-set view ...
8 years, 8 months ago (2012-04-23 19:17:41 UTC) #3
gavinp
http://codereview.chromium.org/10134024/diff/8003/content/public/common/common_param_traits.h File content/public/common/common_param_traits.h (right): http://codereview.chromium.org/10134024/diff/8003/content/public/common/common_param_traits.h#newcode29 content/public/common/common_param_traits.h:29: #include "third_party/WebKit/Source/WebKit/chromium/public/WebReferrerPolicy.h" N.B. This change makes the new upload ...
8 years, 8 months ago (2012-04-23 19:25:04 UTC) #4
jam
lgtm
8 years, 8 months ago (2012-04-23 22:36:59 UTC) #5
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/gavinp@chromium.org/10134024/11003
8 years, 8 months ago (2012-04-25 13:43:01 UTC) #6
commit-bot: I haz the power
8 years, 8 months ago (2012-04-25 15:05:56 UTC) #7
Change committed as 133915

Powered by Google App Engine
This is Rietveld 408576698