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

Issue 1715683002: chrome: Use base's ContainsValue helper function instead of std::find (Closed)

Created:
4 years, 10 months ago by chakshu
Modified:
4 years, 8 months ago
Reviewers:
vivekg, sky
CC:
chromium-reviews, extensions-reviews_chromium.org, yusukes+watch_chromium.org, shishir+watch_chromium.org, shuchen+watch_chromium.org, samuong+watch_chromium.org, dzhioev+watch_chromium.org, achuith+watch_chromium.org, nona+watch_chromium.org, grt+watch_chromium.org, rlp+watch_chromium.org, pfeldman, oshima+watch_chromium.org, devtools-reviews_chromium.org, groby+spellwatch_chromium.org, chromium-apps-reviews_chromium.org, jshin+watch_chromium.org, davemoore+watch_chromium.org, rouslan+spell_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

chrome: Use base's ContainsValue helper function instead of std::find This simplifies many conditions around the code. BUG=561800 Committed: https://crrev.com/c20f387895601a5f9de440683c3faa9d66c7c485 Cr-Commit-Position: refs/heads/master@{#385427}

Patch Set 1 #

Patch Set 2 : Updated as per latest code #

Total comments: 14

Patch Set 3 : Changes as per review comments #

Patch Set 4 : Removing non ContainsValue changes #

Total comments: 2

Patch Set 5 : Changes as per review comments #

Patch Set 6 : Updated as per latest code #

Unified diffs Side-by-side diffs Delta from patch set Stats (+50 lines, -78 lines) Patch
M chrome/browser/android/thumbnail/thumbnail_cache.cc View 1 2 3 5 chunks +6 lines, -11 lines 0 comments Download
M chrome/browser/apps/app_window_registry_util.cc View 2 chunks +2 lines, -3 lines 0 comments Download
M chrome/browser/chromeos/login/screens/controller_pairing_screen.cc View 1 2 2 chunks +2 lines, -3 lines 0 comments Download
M chrome/browser/chromeos/platform_keys/platform_keys_service.cc View 1 2 2 chunks +2 lines, -3 lines 0 comments Download
M chrome/browser/devtools/device/tcp_device_provider.cc View 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/browser/extensions/external_provider_impl.cc View 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/browser/predictors/autocomplete_action_predictor.cc View 1 2 3 4 2 chunks +2 lines, -3 lines 0 comments Download
M chrome/browser/safe_browsing/safe_browsing_service_browsertest.cc View 1 2 3 4 5 3 chunks +3 lines, -5 lines 0 comments Download
M chrome/browser/signin/oauth2_token_service_delegate_android.cc View 1 2 5 chunks +7 lines, -12 lines 0 comments Download
M chrome/browser/themes/browser_theme_pack.cc View 1 2 3 1 chunk +1 line, -3 lines 0 comments Download
M chrome/browser/ui/android/website_settings_popup_android.cc View 1 2 2 chunks +2 lines, -3 lines 0 comments Download
M chrome/browser/ui/cocoa/browser_window_controller_browsertest.mm View 1 2 3 4 5 2 chunks +2 lines, -1 line 0 comments Download
M chrome/browser/ui/toolbar/toolbar_actions_model.cc View 1 2 3 4 5 4 chunks +4 lines, -6 lines 0 comments Download
M chrome/browser/ui/webui/chromeos/login/gaia_screen_handler.cc View 1 2 3 4 5 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/browser/ui/webui/chromeos/login/l10n_util.cc View 1 2 5 chunks +4 lines, -11 lines 0 comments Download
M chrome/renderer/spellchecker/spellcheck.cc View 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/test/chromedriver/chrome/device_manager.cc View 3 chunks +3 lines, -3 lines 0 comments Download
M chrome/test/chromedriver/commands.cc View 2 chunks +2 lines, -3 lines 0 comments Download

Messages

Total messages: 40 (16 generated)
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1715683002/1 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1715683002/1
4 years, 10 months ago (2016-02-19 13:04:25 UTC) #2
commit-bot: I haz the power
Dry run: No L-G-T-M from a valid reviewer yet. Only full committers are accepted. Even ...
4 years, 10 months ago (2016-02-19 13:04:27 UTC) #4
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1715683002/1 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1715683002/1
4 years, 10 months ago (2016-02-19 13:20:03 UTC) #6
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: android_arm64_dbg_recipe on tryserver.chromium.android (JOB_FAILED, https://build.chromium.org/p/tryserver.chromium.android/builders/android_arm64_dbg_recipe/builds/24199) android_chromium_gn_compile_dbg on ...
4 years, 10 months ago (2016-02-19 13:26:49 UTC) #8
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1715683002/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1715683002/20001
4 years, 10 months ago (2016-02-19 14:51:34 UTC) #10
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 10 months ago (2016-02-19 15:49:00 UTC) #12
vivekg
On 2016/02/19 15:49:00, commit-bot: I haz the power wrote: > Dry run: This issue passed ...
4 years, 10 months ago (2016-02-22 06:21:36 UTC) #13
chakshu
On 2016/02/22 06:21:36, vivekg_ wrote: > On 2016/02/19 15:49:00, commit-bot: I haz the power wrote: ...
4 years, 10 months ago (2016-02-24 10:20:26 UTC) #16
chakshu
On 2016/02/24 10:20:26, chakshu wrote: > On 2016/02/22 06:21:36, vivekg_ wrote: > > On 2016/02/19 ...
4 years, 9 months ago (2016-03-02 05:28:53 UTC) #17
sky
https://codereview.chromium.org/1715683002/diff/20001/chrome/browser/chromeos/input_method/input_method_util.cc File chrome/browser/chromeos/input_method/input_method_util.cc (right): https://codereview.chromium.org/1715683002/diff/20001/chrome/browser/chromeos/input_method/input_method_util.cc#newcode693 chrome/browser/chromeos/input_method/input_method_util.cc:693: std::vector<std::string> new_ids; Make this use std::unique https://codereview.chromium.org/1715683002/diff/20001/chrome/browser/chromeos/login/screens/controller_pairing_screen.cc File chrome/browser/chromeos/login/screens/controller_pairing_screen.cc ...
4 years, 9 months ago (2016-03-02 17:19:35 UTC) #18
sky
Also, run git cl format On Wed, Mar 2, 2016 at 9:19 AM, <sky@chromium.org> wrote: ...
4 years, 9 months ago (2016-03-02 18:00:36 UTC) #19
chakshu
Changes as per review comments https://codereview.chromium.org/1715683002/diff/20001/chrome/browser/chromeos/input_method/input_method_util.cc File chrome/browser/chromeos/input_method/input_method_util.cc (right): https://codereview.chromium.org/1715683002/diff/20001/chrome/browser/chromeos/input_method/input_method_util.cc#newcode693 chrome/browser/chromeos/input_method/input_method_util.cc:693: std::vector<std::string> new_ids; On 2016/03/02 ...
4 years, 9 months ago (2016-03-07 08:10:47 UTC) #20
chakshu
On 2016/03/07 08:10:47, chakshu wrote: > Changes as per review comments > > https://codereview.chromium.org/1715683002/diff/20001/chrome/browser/chromeos/input_method/input_method_util.cc > ...
4 years, 9 months ago (2016-03-22 11:35:26 UTC) #21
sky
Please separate out the non ContainsValue to a separate patch and get local owners to ...
4 years, 9 months ago (2016-03-22 16:20:29 UTC) #22
chakshu
On 2016/03/22 16:20:29, sky wrote: > Please separate out the non ContainsValue to a separate ...
4 years, 9 months ago (2016-03-24 13:02:58 UTC) #23
chakshu
On 2016/03/24 13:02:58, chakshu wrote: > On 2016/03/22 16:20:29, sky wrote: > > Please separate ...
4 years, 8 months ago (2016-04-04 05:34:17 UTC) #24
sky
https://codereview.chromium.org/1715683002/diff/60001/chrome/browser/predictors/autocomplete_action_predictor.cc File chrome/browser/predictors/autocomplete_action_predictor.cc (right): https://codereview.chromium.org/1715683002/diff/60001/chrome/browser/predictors/autocomplete_action_predictor.cc#newcode131 chrome/browser/predictors/autocomplete_action_predictor.cc:131: for (const auto& i : result) keep the {} ...
4 years, 8 months ago (2016-04-04 15:39:00 UTC) #25
chakshu
Changes made according to review comments https://codereview.chromium.org/1715683002/diff/60001/chrome/browser/predictors/autocomplete_action_predictor.cc File chrome/browser/predictors/autocomplete_action_predictor.cc (right): https://codereview.chromium.org/1715683002/diff/60001/chrome/browser/predictors/autocomplete_action_predictor.cc#newcode131 chrome/browser/predictors/autocomplete_action_predictor.cc:131: for (const auto& ...
4 years, 8 months ago (2016-04-05 05:03:36 UTC) #26
sky
LGTM
4 years, 8 months ago (2016-04-05 16:55:15 UTC) #27
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1715683002/80001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1715683002/80001
4 years, 8 months ago (2016-04-06 04:49:02 UTC) #31
commit-bot: I haz the power
Try jobs failed on following builders: ios_dbg_simulator_gn on tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/ios_dbg_simulator_gn/builds/14600) ios_dbg_simulator_ninja on tryserver.chromium.mac (JOB_FAILED, ...
4 years, 8 months ago (2016-04-06 04:51:50 UTC) #33
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1715683002/100001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1715683002/100001
4 years, 8 months ago (2016-04-06 09:08:06 UTC) #36
commit-bot: I haz the power
Committed patchset #6 (id:100001)
4 years, 8 months ago (2016-04-06 09:58:18 UTC) #38
commit-bot: I haz the power
4 years, 8 months ago (2016-04-06 09:59:44 UTC) #40
Message was sent while issue was closed.
Patchset 6 (id:??) landed as
https://crrev.com/c20f387895601a5f9de440683c3faa9d66c7c485
Cr-Commit-Position: refs/heads/master@{#385427}

Powered by Google App Engine
This is Rietveld 408576698