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

Issue 1447153002: Use std::tie() for operator< in components/ (Closed)

Created:
5 years, 1 month ago by jsbell
Modified:
5 years ago
CC:
jochen (gone - plz use gerrit), bondd+autofillwatch_chromium.org, browser-components-watch_chromium.org, chromium-reviews, estade+watch_chromium.org, gcasto+watchlist_chromium.org, jdonnelly+autofillwatch_chromium.org, markusheintz_, msramek+watch_chromium.org, raymes+watch_chromium.org, rjkroege, rouslan+autofill_chromium.org, vabr+watchlistpasswordmanager_chromium.org, vabr+watchlistautofill_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Use std::tie() for operator< in components/ Simplify the code for operator< when comparing multiple members using a common std::tie idiom. BUG=555171 R=thakis@chromium.org,vabr@chromium.org,jochen@chromium.org Committed: https://crrev.com/4afb256b17b1c9a716a031205f48f4648768c308 Cr-Commit-Position: refs/heads/master@{#360367}

Patch Set 1 #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+39 lines, -55 lines) Patch
M components/autofill/core/common/form_data.cc View 2 chunks +5 lines, -9 lines 0 comments Download
M components/autofill/core/common/form_field_data.cc View 2 chunks +9 lines, -21 lines 0 comments Download
M components/autofill/core/common/password_form_fill_data.cc View 2 chunks +4 lines, -5 lines 0 comments Download
M components/content_settings/core/browser/content_settings_origin_identifier_value_map.cc View 3 chunks +6 lines, -8 lines 1 comment Download
M components/guest_view/browser/guest_view_manager.cc View 2 chunks +4 lines, -4 lines 0 comments Download
M components/mus/ws/ids.h View 2 chunks +4 lines, -4 lines 0 comments Download
M components/policy/core/common/policy_namespace.cc View 2 chunks +4 lines, -2 lines 0 comments Download
M components/url_matcher/string_pattern.cc View 2 chunks +3 lines, -2 lines 0 comments Download

Messages

Total messages: 20 (6 generated)
jsbell
thakis@ - please take a look? https://codereview.chromium.org/1447153002/diff/1/components/content_settings/core/browser/content_settings_origin_identifier_value_map.cc File components/content_settings/core/browser/content_settings_origin_identifier_value_map.cc (right): https://codereview.chromium.org/1447153002/diff/1/components/content_settings/core/browser/content_settings_origin_identifier_value_map.cc#newcode82 components/content_settings/core/browser/content_settings_origin_identifier_value_map.cc:82: return std::tie(primary_pattern, secondary_pattern) ...
5 years, 1 month ago (2015-11-17 23:10:00 UTC) #3
Nico
lgtm
5 years, 1 month ago (2015-11-18 01:36:38 UTC) #4
Nico
(not an owner here though)
5 years, 1 month ago (2015-11-18 01:36:49 UTC) #5
vabr (Chromium)
components/autofill/ LGTM!
5 years, 1 month ago (2015-11-18 09:10:01 UTC) #7
jochen (gone - plz use gerrit)
lgtm
5 years, 1 month ago (2015-11-18 16:12:59 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1447153002/1 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1447153002/1
5 years, 1 month ago (2015-11-18 17:12:10 UTC) #11
commit-bot: I haz the power
Committed patchset #1 (id:1)
5 years, 1 month ago (2015-11-18 18:31:08 UTC) #12
commit-bot: I haz the power
Patchset 1 (id:??) landed as https://crrev.com/4afb256b17b1c9a716a031205f48f4648768c308 Cr-Commit-Position: refs/heads/master@{#360367}
5 years, 1 month ago (2015-11-18 18:32:09 UTC) #13
jsbell
A revert of this CL (patchset #1 id:1) has been created in https://codereview.chromium.org/1456263005/ by jsbell@chromium.org. ...
5 years, 1 month ago (2015-11-20 01:23:54 UTC) #14
Alexei Svitkine (slow)
FYI: I think this now causing this (non-fatal) warning on Android build: ../../components/autofill/core/common/form_field_data.cc: In member ...
5 years ago (2015-11-26 21:18:18 UTC) #16
jsbell
On 2015/11/26 21:18:18, Alexei Svitkine (slow) wrote: > FYI: I think this now causing this ...
5 years ago (2015-11-30 17:44:10 UTC) #17
Alexei Svitkine (slow)
I think the goal is to keep builds warning free, so can you see if ...
5 years ago (2015-11-30 17:58:10 UTC) #18
Nico
I'd check what we use -fvar-tracking-assignments for, and if that note can be suppressed. If ...
5 years ago (2015-11-30 17:59:14 UTC) #19
jsbell
5 years ago (2015-12-01 20:13:04 UTC) #20
Message was sent while issue was closed.
I put a revert up at https://codereview.chromium.org/1486173003

It looks like we can't suppress, and if we did it would still recompile the
file. We could bump max-vartrack-size but that doesn't seem worthwhile, and
could slow down compile elsewhere.

Powered by Google App Engine
This is Rietveld 408576698