|
|
Created:
3 years, 9 months ago by sgurun-gerrit only Modified:
3 years, 9 months ago CC:
chromium-reviews Target Ref:
refs/heads/master Project:
chromium Visibility:
Public. |
DescriptionUpdate the assignment operator
The navigation_params was added a new parameter. The parameter has to be
copied correctly in assignment.
BUG=645983
Review-Url: https://codereview.chromium.org/2759723002
Cr-Commit-Position: refs/heads/master@{#457927}
Committed: https://chromium.googlesource.com/chromium/src/+/ab03e18490552251ca0e2ee6249509071f8c5b15
Patch Set 1 #
Total comments: 2
Patch Set 2 : Address jam review #
Total comments: 1
Patch Set 3 : fix compile fail #
Messages
Total messages: 29 (14 generated)
Description was changed from ========== Update the assignment operator The navigation_params was added a new parameter. The parameter has to be copied correctly in assignment. BUG=645983 ========== to ========== Update the assignment operator The navigation_params was added a new parameter. The parameter has to be copied correctly in assignment. BUG=645983 ==========
sgurun@chromium.org changed reviewers: + jam@chromium.org
On 2017/03/17 18:20:48, sgurun wrote: > mailto:sgurun@chromium.org changed reviewers: > + mailto:jam@chromium.org ptal, thanks
if you run this through trybots there are also reliable failures now in LoadDataWithBaseUrlTest#testInvalidBaseUrl LoadDataWithBaseUrlTest#testOnPageFinishedWithInvalidBaseUrlWhenInterrupted The fix is to remove the DCHECK I added in base::android::ScopedJavaLocalRef<jobject> CreateJavaNavigationParams(, since the tests check that it's possible to pass invalid URLs therel. also, to change ConvertUTF8ToJavaString(env, url.spec()); to ConvertUTF8ToJavaString(env, url.possibly_invalid_spec()); with that, the two new failures should pass and lgtm https://codereview.chromium.org/2759723002/diff/1/components/navigation_inter... File components/navigation_interception/navigation_params.cc (right): https://codereview.chromium.org/2759723002/diff/1/components/navigation_inter... components/navigation_interception/navigation_params.cc:36: void NavigationParams::Assign(const NavigationParams& other) { can you just get rid of this method and the manually defined assignment operator, and instead use the default one? i.e. in the header: NavigationParams(const NavigationParams& other) = default;
The CQ bit was checked by sgurun@chromium.org
The patchset sent to the CQ was uploaded after l-g-t-m from jam@chromium.org Link to the patchset: https://codereview.chromium.org/2759723002/#ps20001 (title: "Address jam review")
https://codereview.chromium.org/2759723002/diff/1/components/navigation_inter... File components/navigation_interception/navigation_params.cc (right): https://codereview.chromium.org/2759723002/diff/1/components/navigation_inter... components/navigation_interception/navigation_params.cc:36: void NavigationParams::Assign(const NavigationParams& other) { On 2017/03/17 19:16:23, jam wrote: > can you just get rid of this method and the manually defined assignment > operator, and instead use the default one? i.e. in the header: > > NavigationParams(const NavigationParams& other) = default; that removes a lot of boilerplate.
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
jam@google.com changed reviewers: + jam@google.com
https://codereview.chromium.org/2759723002/diff/20001/components/navigation_i... File components/navigation_interception/navigation_params.h (right): https://codereview.chromium.org/2759723002/diff/20001/components/navigation_i... components/navigation_interception/navigation_params.h:27: NavigationParams& operator=(const NavigationParams&) = default; nit: i think this isn't actually used
The CQ bit was unchecked by commit-bot@chromium.org
Try jobs failed on following builders: mac_chromium_compile_dbg_ng on master.tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/mac_chromium_comp...)
On 2017/03/17 19:59:39, jam1 wrote: > https://codereview.chromium.org/2759723002/diff/20001/components/navigation_i... > File components/navigation_interception/navigation_params.h (right): > > https://codereview.chromium.org/2759723002/diff/20001/components/navigation_i... > components/navigation_interception/navigation_params.h:27: NavigationParams& > operator=(const NavigationParams&) = default; > nit: i think this isn't actually used Heh, compilation failure on mac: n file included from ../../chrome/browser/plugins/flash_download_interception.cc:18: ../../components/navigation_interception/navigation_params.h:26:3: error: [chromium-style] Complex constructor has an inlined body. NavigationParams(const NavigationParams&) = default; ^ 1 error generated.
The CQ bit was checked by sgurun@chromium.org
The patchset sent to the CQ was uploaded after l-g-t-m from jam@chromium.org Link to the patchset: https://codereview.chromium.org/2759723002/#ps40001 (title: "fix compile fail")
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
On 2017/03/17 20:09:35, sgurun wrote: > On 2017/03/17 19:59:39, jam1 wrote: > > > https://codereview.chromium.org/2759723002/diff/20001/components/navigation_i... > > File components/navigation_interception/navigation_params.h (right): > > > > > https://codereview.chromium.org/2759723002/diff/20001/components/navigation_i... > > components/navigation_interception/navigation_params.h:27: NavigationParams& > > operator=(const NavigationParams&) = default; > > nit: i think this isn't actually used > > Heh, compilation failure on mac: > n file included from > ../../chrome/browser/plugins/flash_download_interception.cc:18: > ../../components/navigation_interception/navigation_params.h:26:3: error: > [chromium-style] Complex constructor has an inlined body. > NavigationParams(const NavigationParams&) = default; > ^ > 1 error generated. I meant just the assignment operator, but as is is ok too. we can remove it later in the interest of getting this patch landed so we can update the waterfall :)
The CQ bit was unchecked by commit-bot@chromium.org
Try jobs failed on following builders: linux_chromium_rel_ng on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_...)
The CQ bit was checked by jam@chromium.org
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
The CQ bit was unchecked by commit-bot@chromium.org
Try jobs failed on following builders: win_chromium_rel_ng on master.tryserver.chromium.win (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.win/builders/win_chromium_rel_...)
The CQ bit was checked by jam@chromium.org
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
CQ is committing da patch. Bot data: {"patchset_id": 40001, "attempt_start_ts": 1489792270673700, "parent_rev": "4494b892750fe71d43c2dc0cef3247a38d777b42", "commit_rev": "ab03e18490552251ca0e2ee6249509071f8c5b15"}
Message was sent while issue was closed.
Description was changed from ========== Update the assignment operator The navigation_params was added a new parameter. The parameter has to be copied correctly in assignment. BUG=645983 ========== to ========== Update the assignment operator The navigation_params was added a new parameter. The parameter has to be copied correctly in assignment. BUG=645983 Review-Url: https://codereview.chromium.org/2759723002 Cr-Commit-Position: refs/heads/master@{#457927} Committed: https://chromium.googlesource.com/chromium/src/+/ab03e18490552251ca0e2ee62495... ==========
Message was sent while issue was closed.
Committed patchset #3 (id:40001) as https://chromium.googlesource.com/chromium/src/+/ab03e18490552251ca0e2ee62495...
Message was sent while issue was closed.
On 2017/03/18 02:18:25, commit-bot: I haz the power wrote: > Committed patchset #3 (id:40001) as > https://chromium.googlesource.com/chromium/src/+/ab03e18490552251ca0e2ee62495... finally :) |