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

Issue 2961033002: Use ContainsValue() instead of std::find() in chrome/browser/extensions (Closed)

Created:
3 years, 5 months ago by Tripta
Modified:
3 years, 5 months ago
Reviewers:
Devlin, benwells
CC:
chromium-reviews, chromium-apps-reviews_chromium.org, tzik, kinuko+fileapi, nhiroki, extensions-reviews_chromium.org
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Use ContainsValue() instead of std::find() in chrome/browser/extensions BUG=561800 Review-Url: https://codereview.chromium.org/2961033002 Cr-Commit-Position: refs/heads/master@{#484841} Committed: https://chromium.googlesource.com/chromium/src/+/0ac673a26607b9b82c21b2f88987f396ec284c66

Patch Set 1 #

Total comments: 4

Patch Set 2 : Code review changes added. #

Total comments: 2

Patch Set 3 : Reverted code changes in language_settings_private_api.cc:307 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+29 lines, -53 lines) Patch
M chrome/browser/extensions/api/file_system/file_system_api.cc View 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/browser/extensions/api/gcm/gcm_apitest.cc View 2 chunks +3 lines, -4 lines 0 comments Download
M chrome/browser/extensions/api/language_settings_private/language_settings_private_api.cc View 1 2 3 chunks +3 lines, -4 lines 0 comments Download
M chrome/browser/extensions/api/web_request/web_request_api_unittest.cc View 1 2 chunks +8 lines, -16 lines 0 comments Download
M chrome/browser/extensions/extension_management.cc View 3 chunks +2 lines, -3 lines 0 comments Download
M chrome/browser/extensions/extension_management_unittest.cc View 3 chunks +6 lines, -16 lines 0 comments Download
M chrome/browser/extensions/extension_service.cc View 3 chunks +2 lines, -2 lines 0 comments Download
M chrome/browser/extensions/updater/extension_updater.cc View 1 2 chunks +3 lines, -6 lines 0 comments Download

Messages

Total messages: 17 (8 generated)
Tripta
Hi benwells, Please review code changes for below files: chrome/browser/extensions/api/file_system/file_system_api.cc chrome/browser/extensions/api/gcm/gcm_apitest.cc chrome/browser/extensions/api/language_settings_private/language_settings_private_api.cc chrome/browser/extensions/api/web_request/web_request_api_unittest.cc chrome/browser/extensions/extension_management.cc chrome/browser/extensions/extension_management_unittest.cc ...
3 years, 5 months ago (2017-06-28 09:45:36 UTC) #3
benwells
Sorry I was sheriffing the past couple of days and am just heading out on ...
3 years, 5 months ago (2017-06-29 22:16:04 UTC) #5
Devlin
https://codereview.chromium.org/2961033002/diff/1/chrome/browser/extensions/api/web_request/web_request_api_unittest.cc File chrome/browser/extensions/api/web_request/web_request_api_unittest.cc (right): https://codereview.chromium.org/2961033002/diff/1/chrome/browser/extensions/api/web_request/web_request_api_unittest.cc#newcode116 chrome/browser/extensions/api/web_request/web_request_api_unittest.cc:116: return base::ContainsValue(collection, key); Here, could we just replace all ...
3 years, 5 months ago (2017-06-30 01:52:00 UTC) #6
Tripta
Have made changes. Please check. https://codereview.chromium.org/2961033002/diff/1/chrome/browser/extensions/api/web_request/web_request_api_unittest.cc File chrome/browser/extensions/api/web_request/web_request_api_unittest.cc (right): https://codereview.chromium.org/2961033002/diff/1/chrome/browser/extensions/api/web_request/web_request_api_unittest.cc#newcode116 chrome/browser/extensions/api/web_request/web_request_api_unittest.cc:116: return base::ContainsValue(collection, key); On ...
3 years, 5 months ago (2017-07-03 05:34:44 UTC) #7
Devlin
One last issue https://codereview.chromium.org/2961033002/diff/20001/chrome/browser/extensions/api/language_settings_private/language_settings_private_api.cc File chrome/browser/extensions/api/language_settings_private/language_settings_private_api.cc (right): https://codereview.chromium.org/2961033002/diff/20001/chrome/browser/extensions/api/language_settings_private/language_settings_private_api.cc#newcode307 chrome/browser/extensions/api/language_settings_private/language_settings_private_api.cc:307: languages.erase(it); Does this compile? The iterator ...
3 years, 5 months ago (2017-07-05 15:37:23 UTC) #8
Tripta
Hi Devlin, My build setup does not compile file under chrome/browser/extensions. I keep check of ...
3 years, 5 months ago (2017-07-06 14:29:04 UTC) #11
Devlin
lgtm, thanks for the cleanup!
3 years, 5 months ago (2017-07-06 14:57:20 UTC) #12
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/2961033002/80001
3 years, 5 months ago (2017-07-07 04:51:29 UTC) #14
commit-bot: I haz the power
3 years, 5 months ago (2017-07-07 05:45:22 UTC) #17
Message was sent while issue was closed.
Committed patchset #3 (id:80001) as
https://chromium.googlesource.com/chromium/src/+/0ac673a26607b9b82c21b2f88987...

Powered by Google App Engine
This is Rietveld 408576698