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

Issue 1782963002: Remove std::mem_fun uses. (Closed)

Created:
4 years, 9 months ago by vmpstr
Modified:
4 years, 9 months ago
Reviewers:
Nico, gavinp, no sievers, tzik
CC:
chromium-reviews, davidben+watch_chromium.org, michaeln, cbentzel+watch_chromium.org, sadrul, gavinp+disk_chromium.org, hashimoto+watch_chromium.org, tburkard+watch_chromium.org, jam, nhiroki, gavinp+prer_chromium.org, darin-cc_chromium.org, jkarlin+watch_chromium.org, oshima+watch_chromium.org, kalyank, markusheintz_
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Remove std::mem_fun uses. This patch removes std::mem_fun and std::mem_fun_ref uses from the codebase, since those are deprecated in C++11. Additionally, the resulting code should be simpler to parse, since most of the time the use is replaced with a ranged based for-loop, which is a more familiar construct. Discussion: https://groups.google.com/a/chromium.org/forum/#!topic/cxx/ip8T6u-o7KY TBR=gavinp BUG=593407 Committed: https://crrev.com/ad1b44e489281f42a0ea6d7d9516ba30d5879225 Cr-Commit-Position: refs/heads/master@{#380740}

Patch Set 1 #

Patch Set 2 : #

Total comments: 3

Patch Set 3 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+24 lines, -32 lines) Patch
M chrome/browser/browsing_data/cookies_tree_model.cc View 1 chunk +2 lines, -3 lines 0 comments Download
M chrome/browser/prerender/prerender_manager.cc View 1 chunk +6 lines, -8 lines 0 comments Download
M chrome/browser/search_engines/search_provider_install_data.cc View 1 chunk +2 lines, -3 lines 0 comments Download
M chrome/browser/ui/ash/multi_user/multi_user_window_manager_chromeos_unittest.cc View 1 chunk +2 lines, -2 lines 0 comments Download
M content/browser/appcache/appcache_service_impl.cc View 1 chunk +2 lines, -3 lines 0 comments Download
M content/browser/appcache/appcache_storage_impl.cc View 1 chunk +4 lines, -6 lines 0 comments Download
M net/disk_cache/simple/simple_backend_impl.cc View 1 chunk +2 lines, -2 lines 0 comments Download
M storage/browser/quota/quota_manager.cc View 1 chunk +2 lines, -2 lines 0 comments Download
M storage/browser/quota/quota_task.cc View 1 chunk +2 lines, -3 lines 0 comments Download

Messages

Total messages: 31 (11 generated)
vmpstr
Please take a look.
4 years, 9 months ago (2016-03-10 19:29:37 UTC) #2
Nico
the trybots hate this. Also, maybe link to the cxx@ discussion for context.
4 years, 9 months ago (2016-03-10 19:52:11 UTC) #3
vmpstr
On 2016/03/10 19:52:11, Nico wrote: > the trybots hate this. > > Also, maybe link ...
4 years, 9 months ago (2016-03-10 20:46:46 UTC) #4
vmpstr
On 2016/03/10 20:46:46, vmpstr wrote: > On 2016/03/10 19:52:11, Nico wrote: > > the trybots ...
4 years, 9 months ago (2016-03-10 22:16:09 UTC) #6
Nico
I meant the "Is std::mem_fn allowed?" thread on cxx@ https://codereview.chromium.org/1782963002/diff/20001/chrome/browser/browsing_data/cookies_tree_model.cc File chrome/browser/browsing_data/cookies_tree_model.cc (right): https://codereview.chromium.org/1782963002/diff/20001/chrome/browser/browsing_data/cookies_tree_model.cc#newcode294 chrome/browser/browsing_data/cookies_tree_model.cc:294: ...
4 years, 9 months ago (2016-03-10 22:23:19 UTC) #7
vmpstr
PTAL > I meant the "Is std::mem_fn allowed?" thread on cxx@ Cool that's the one ...
4 years, 9 months ago (2016-03-10 22:45:00 UTC) #8
Nico
lgtm
4 years, 9 months ago (2016-03-10 22:50:39 UTC) #9
vmpstr
+sievers for content/ +gavinp for net/disk_cache/simple/ +tzik for storage/browser/quota/ Please take a look.
4 years, 9 months ago (2016-03-10 22:53:40 UTC) #11
no sievers
On 2016/03/10 22:53:40, vmpstr wrote: > +sievers for content/ > +gavinp for net/disk_cache/simple/ > +tzik ...
4 years, 9 months ago (2016-03-10 23:54:00 UTC) #13
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1782963002/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1782963002/40001
4 years, 9 months ago (2016-03-10 23:54:42 UTC) #14
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: linux_chromium_asan_rel_ng on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_asan_rel_ng/builds/129151) linux_chromium_rel_ng on ...
4 years, 9 months ago (2016-03-11 00:33:20 UTC) #16
tzik
lgtm
4 years, 9 months ago (2016-03-11 03:05:59 UTC) #17
Nico
(i think you can tbr this to gavinp per the 2nd bullet on https://www.chromium.org/developers/owners-files#TOC-When-to-use-To-Be-Reviewed-TBR- fwiw)
4 years, 9 months ago (2016-03-11 15:16:43 UTC) #18
vmpstr
On 2016/03/11 15:16:43, Nico wrote: > (i think you can tbr this to gavinp per ...
4 years, 9 months ago (2016-03-11 18:35:11 UTC) #21
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1782963002/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1782963002/40001
4 years, 9 months ago (2016-03-11 18:35:48 UTC) #22
gavinp
lgtm, and I agree, TBR was appropriate.
4 years, 9 months ago (2016-03-11 18:50:50 UTC) #23
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/195564)
4 years, 9 months ago (2016-03-11 19:58:31 UTC) #25
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1782963002/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1782963002/40001
4 years, 9 months ago (2016-03-11 21:06:00 UTC) #27
commit-bot: I haz the power
Committed patchset #3 (id:40001)
4 years, 9 months ago (2016-03-11 21:40:08 UTC) #29
commit-bot: I haz the power
4 years, 9 months ago (2016-03-11 21:41:11 UTC) #31
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/ad1b44e489281f42a0ea6d7d9516ba30d5879225
Cr-Commit-Position: refs/heads/master@{#380740}

Powered by Google App Engine
This is Rietveld 408576698