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

Issue 1485093003: ui: use base's ContainsValue helper function instead of std::find (Closed)

Created:
5 years ago by tfarina
Modified:
5 years ago
Reviewers:
sky
CC:
chromium-reviews, tdanderson+views_chromium.org, aboxhall+watch_chromium.org, sadrul, yusukes+watch_chromium.org, derat+watch_chromium.org, Peter Beverloo, tfarina, mlamouri+watch-notifications_chromium.org, shuchen+watch_chromium.org, nektar+watch_chromium.org, yuzo+watch_chromium.org, nona+watch_chromium.org, je_julie, dmazzoni+watch_chromium.org, dtseng+watch_chromium.org, James Su, plundblad+watch_chromium.org, danakj, Lei Zhang
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

ui: use base's ContainsValue helper function instead of std::find This simplifies many conditions around the code. BUG=561800 R=sky@chromium.org Committed: https://crrev.com/07a1179cba4c362871d82ee40abe2a985f5b38b6 Cr-Commit-Position: refs/heads/master@{#362863}

Patch Set 1 #

Total comments: 14

Patch Set 2 : review + view.cc fix #

Unified diffs Side-by-side diffs Delta from patch set Stats (+19 lines, -27 lines) Patch
M ui/base/ime/win/tsf_input_scope.cc View 1 2 chunks +2 lines, -4 lines 0 comments Download
M ui/base/win/hwnd_subclass.cc View 2 chunks +2 lines, -1 line 0 comments Download
M ui/base/x/x11_util.cc View 1 2 chunks +2 lines, -3 lines 0 comments Download
M ui/gl/gl_gl_api_implementation.cc View 1 2 chunks +2 lines, -4 lines 0 comments Download
M ui/gl/gl_surface.cc View 1 2 chunks +2 lines, -4 lines 0 comments Download
M ui/message_center/message_center_impl.cc View 1 2 chunks +3 lines, -3 lines 0 comments Download
M ui/views/accessibility/native_view_accessibility_auralinux.cc View 2 chunks +2 lines, -1 line 0 comments Download
M ui/views/view.cc View 1 2 chunks +3 lines, -3 lines 0 comments Download
M ui/wm/core/window_animations.cc View 1 1 chunk +1 line, -4 lines 0 comments Download

Messages

Total messages: 13 (5 generated)
tfarina
PTAL.
5 years ago (2015-12-01 21:05:26 UTC) #1
sky
LGTM https://codereview.chromium.org/1485093003/diff/1/ui/base/ime/win/tsf_input_scope.cc File ui/base/ime/win/tsf_input_scope.cc (left): https://codereview.chromium.org/1485093003/diff/1/ui/base/ime/win/tsf_input_scope.cc#oldcode7 ui/base/ime/win/tsf_input_scope.cc:7: #include <algorithm> I suspect you can nuke this ...
5 years ago (2015-12-01 22:08:31 UTC) #2
tfarina
https://codereview.chromium.org/1485093003/diff/1/ui/base/ime/win/tsf_input_scope.cc File ui/base/ime/win/tsf_input_scope.cc (left): https://codereview.chromium.org/1485093003/diff/1/ui/base/ime/win/tsf_input_scope.cc#oldcode7 ui/base/ime/win/tsf_input_scope.cc:7: #include <algorithm> On 2015/12/01 22:08:31, sky wrote: > I ...
5 years ago (2015-12-02 20:31:41 UTC) #3
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1485093003/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1485093003/20001
5 years ago (2015-12-02 20:32:04 UTC) #6
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_rel_ng on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_rel_ng/builds/149055)
5 years ago (2015-12-02 21:36:15 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1485093003/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1485093003/20001
5 years ago (2015-12-03 00:55:34 UTC) #10
commit-bot: I haz the power
Committed patchset #2 (id:20001)
5 years ago (2015-12-03 02:07:44 UTC) #11
commit-bot: I haz the power
5 years ago (2015-12-03 02:09:22 UTC) #13
Message was sent while issue was closed.
Patchset 2 (id:??) landed as
https://crrev.com/07a1179cba4c362871d82ee40abe2a985f5b38b6
Cr-Commit-Position: refs/heads/master@{#362863}

Powered by Google App Engine
This is Rietveld 408576698