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

Issue 2562993002: Disallow [in]equality operator for PageTransition (Closed)

Created:
4 years ago by mastiz
Modified:
4 years ago
Reviewers:
jam, sky
CC:
chromium-reviews, cbentzel+watch_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Disallow [in]equality operator for PageTransition Direct comparison of the enum is error-prone since users can easily forget about the qualifier bits. The available helper functions should be used instead as documented in the comment. Most occurrences were addressed in earlier patches and a few leftovers are updated here, together with the change in page_transition_types.h that causes compiler errors if [in]equality operator is used for the enum. BUG= Committed: https://crrev.com/1b34e0ef500c487ac6294ab36efb640195d32aee Cr-Commit-Position: refs/heads/master@{#439079}

Patch Set 1 #

Patch Set 2 : Fixed iOS. #

Patch Set 3 : Updated more occurrences. #

Patch Set 4 : git cl try #

Patch Set 5 : Disallow [in]equality operator for PageTransition #

Unified diffs Side-by-side diffs Delta from patch set Stats (+29 lines, -25 lines) Patch
M chrome/browser/android/download/download_manager_service.cc View 1 chunk +10 lines, -7 lines 0 comments Download
M chrome/browser/net/net_error_tab_helper.cc View 1 chunk +2 lines, -1 line 0 comments Download
M components/arc/intent_helper/page_transition_util_unittest.cc View 1 2 3 4 2 chunks +9 lines, -9 lines 0 comments Download
M content/test/test_render_frame_host.cc View 1 2 1 chunk +1 line, -1 line 0 comments Download
M ios/web/web_state/ui/crw_web_controller.mm View 1 1 chunk +2 lines, -1 line 0 comments Download
M ui/base/page_transition_types.h View 1 chunk +5 lines, -6 lines 0 comments Download

Messages

Total messages: 29 (22 generated)
mastiz
Longstanding patch, including some client-code updates that my earlier patches missed. Let me know if ...
4 years ago (2016-12-13 12:24:17 UTC) #18
sky
LGTM
4 years ago (2016-12-13 14:16:06 UTC) #19
mastiz
jam@chromium.org: Please review changes in components/ and ios/
4 years ago (2016-12-14 20:18:12 UTC) #21
jam
lgtm
4 years ago (2016-12-15 20:19:43 UTC) #22
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/2562993002/80001
4 years ago (2016-12-16 08:36:14 UTC) #24
commit-bot: I haz the power
Committed patchset #5 (id:80001)
4 years ago (2016-12-16 09:50:04 UTC) #27
commit-bot: I haz the power
4 years ago (2016-12-16 09:53:41 UTC) #29
Message was sent while issue was closed.
Patchset 5 (id:??) landed as
https://crrev.com/1b34e0ef500c487ac6294ab36efb640195d32aee
Cr-Commit-Position: refs/heads/master@{#439079}

Powered by Google App Engine
This is Rietveld 408576698