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

Issue 2825003002: Rewrite base::Bind to base::BindOnce with base_bind_rewriters in //chrome/browser/{a,b,c,d,e,f,g}* (Closed)

Created:
3 years, 8 months ago by tzik
Modified:
3 years, 8 months ago
CC:
chromium-reviews, achuith+watch_chromium.org, johnme+watch_chromium.org, dcheng, melevin+watch_chromium.org, sebsg+autofillwatch_chromium.org, raymes+watch_chromium.org, dbeam+watch-downloads_chromium.org, rlp+watch_chromium.org, tbansal+watch-data-reduction-proxy_chromium.org, subresource-filter-reviews_chromium.org, ntp-dev+reviews_chromium.org, Randy Smith (Not in Mondays), loading-reviews_chromium.org, pam+watch_chromium.org, mlamouri+watch-permissions_chromium.org, pfeldman, vabr+watchlistlogin_chromium.org, rogerm+autofillwatch_chromium.org, tfarina, avayvod+watch_chromium.org, David Black, estade+watch_chromium.org, vabr+watchlistautofill_chromium.org, isheriff+watch_chromium.org, mmenke, msramek+watch_chromium.org, viettrungluu+watch_chromium.org, tburkard+watch_chromium.org, lgarron+watch_chromium.org, noyau+watch_chromium.org, native-client-reviews_googlegroups.com, tapted, Matt Giuca, mlamouri+watch-geolocation_chromium.org, Aaron Boodman, jam, groby+spellwatch_chromium.org, chromium-apps-reviews_chromium.org, alemate+watch_chromium.org, nhiroki, timvolodine, asvitkine+watch_chromium.org, Jered, michaelpg+watch-options_chromium.org, gavinp+prer_chromium.org, loading-reviews+metrics_chromium.org, eroman, jshin+watch_chromium.org, samarth+watch_chromium.org, kmadhusu+watch_chromium.org, stevenjb+watch-md-settings_chromium.org, vakh+watch_chromium.org, zea+watch_chromium.org, michaelpg+watch-md-settings_chromium.org, browser-components-watch_chromium.org, dominickn+watch_chromium.org, yzshen+watch_chromium.org, rginda+watch_chromium.org, abarth-chromium, miu+watch_chromium.org, extensions-reviews_chromium.org, awdf+watch_chromium.org, net-reviews_chromium.org, jkarlin+watch_chromium.org, devtools-reviews_chromium.org, xjz+watch_chromium.org, imcheng+watch_chromium.org, rouslan+autofill_chromium.org, jasonroberts+watch_google.com, csharrison+watch_chromium.org, jfweitz+watch_chromium.org, rouslan+spell_chromium.org, sync-reviews_chromium.org, David Trainor- moved to gerrit, harkness+watch_chromium.org, donnd+watch_chromium.org, tommycli, tbansal+watch-nqe_chromium.org, kinuko+fileapi, erickung+watch_chromium.org, skanuj+watch_chromium.org, qsr+mojo_chromium.org, chfremer+watch_chromium.org, bnc+watch_chromium.org, mcasas+geolocation_chromium.org, apacible+watch_chromium.org, markusheintz_, cbentzel+watch_chromium.org, grt+watch_chromium.org, dbeam+watch-options_chromium.org, vabr+watchlistpasswordmanager_chromium.org, Peter Beverloo, speed-metrics-reviews_chromium.org, mlamouri+watch-notifications_chromium.org, feature-media-reviews_chromium.org, gcasto+watchlist_chromium.org, dbeam+watch-settings_chromium.org, media-router+watch_chromium.org, mathp+autofillwatch_chromium.org, darin (slow to review)
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Rewrite base::Bind to base::BindOnce with base_bind_rewriters in //chrome/browser/{a,b,c,d,e,f,g}* This is a generated CL by a clang refactoring tool at //tools/clang/base_bind_rewriters. The tool rewrites base::Bind to base::BindOnce where the resulting Callback is immediately converted to OnceCallback. E.g.: base::PostTask(FROM_HERE, base::Bind(&Foo)); is rewritten to: base::PostTask(FROM_HERE, base::BindOnce(&Foo)); In terms of the behavior change after the rewrite, the OnceCallback implementation moves out the bound argument to the target function, unlike Callback. BUG=554299 Review-Url: https://codereview.chromium.org/2825003002 Cr-Commit-Position: refs/heads/master@{#465863} Committed: https://chromium.googlesource.com/chromium/src/+/29ea5c72b53e6155f6be77abcb7c65ed5187e122

Patch Set 1 #

Patch Set 2 : revert //chrome/browser/ui/webui/options/ #

Patch Set 3 : rebase #

Patch Set 4 : split extensions, ui, safe_browsing and sync_file_system into separate CL #

Patch Set 5 : split browsing_data and sync part to separate CLs #

Patch Set 6 : split component_updater, devtools, download into separate CLs #

Patch Set 7 : split media, net, printing, prerender, profiles #

Patch Set 8 : split media_galleries, notifications, metrics, password_manager, predictors #

Patch Set 9 : split renderer_host, policy #

Patch Set 10 : split rest of changes to 3 CLs #

Unified diffs Side-by-side diffs Delta from patch set Stats (+245 lines, -270 lines) Patch
M chrome/browser/after_startup_task_utils.cc View 1 2 3 3 chunks +7 lines, -6 lines 0 comments Download
M chrome/browser/after_startup_task_utils_unittest.cc View 1 2 3 5 chunks +17 lines, -17 lines 0 comments Download
M chrome/browser/apps/guest_view/web_view_browsertest.cc View 1 2 3 3 chunks +6 lines, -6 lines 0 comments Download
M chrome/browser/apps/guest_view/web_view_interactive_browsertest.cc View 1 2 3 2 chunks +4 lines, -3 lines 0 comments Download
M chrome/browser/apps/shortcut_manager.cc View 1 2 3 2 chunks +5 lines, -7 lines 0 comments Download
M chrome/browser/background/background_contents_service.cc View 1 2 3 3 chunks +9 lines, -7 lines 0 comments Download
M chrome/browser/background/background_mode_manager.cc View 1 2 3 1 chunk +2 lines, -2 lines 0 comments Download
M chrome/browser/bookmarks/bookmark_html_writer.cc View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/browser_about_handler.cc View 1 2 3 1 chunk +2 lines, -2 lines 0 comments Download
M chrome/browser/browser_encoding_browsertest.cc View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/browser_process_impl.cc View 1 2 3 2 chunks +3 lines, -3 lines 0 comments Download
M chrome/browser/browser_shutdown.cc View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/captive_portal/captive_portal_browsertest.cc View 1 2 3 7 chunks +17 lines, -16 lines 0 comments Download
M chrome/browser/captive_portal/captive_portal_tab_reloader.cc View 1 2 3 1 chunk +2 lines, -2 lines 0 comments Download
M chrome/browser/certificate_manager_model.cc View 1 2 3 2 chunks +8 lines, -16 lines 0 comments Download
M chrome/browser/chrome_browser_main.cc View 1 2 3 4 chunks +9 lines, -14 lines 0 comments Download
M chrome/browser/chrome_browser_main_extra_parts_x11.cc View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/chrome_browser_main_linux.cc View 1 2 3 1 chunk +4 lines, -3 lines 0 comments Download
M chrome/browser/chrome_browser_main_posix.cc View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/chrome_content_browser_client.cc View 1 2 3 9 chunks +28 lines, -34 lines 0 comments Download
M chrome/browser/chrome_plugin_browsertest.cc View 1 2 3 2 chunks +4 lines, -6 lines 0 comments Download
M chrome/browser/chrome_quota_permission_context.cc View 1 2 3 2 chunks +5 lines, -4 lines 0 comments Download
M chrome/browser/chrome_site_per_process_browsertest.cc View 1 2 3 1 chunk +2 lines, -2 lines 0 comments Download
M chrome/browser/content_settings/content_settings_browsertest.cc View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/custom_handlers/protocol_handler_registry.cc View 1 2 3 5 chunks +12 lines, -16 lines 0 comments Download
M chrome/browser/custom_handlers/protocol_handler_registry_unittest.cc View 1 2 3 2 chunks +6 lines, -11 lines 0 comments Download
M chrome/browser/data_usage/tab_id_annotator_unittest.cc View 1 2 3 4 chunks +12 lines, -12 lines 0 comments Download
M chrome/browser/data_use_measurement/chrome_data_use_ascriber_service.cc View 1 2 3 7 chunks +37 lines, -36 lines 0 comments Download
M chrome/browser/engagement/site_engagement_service.cc View 1 2 3 1 chunk +5 lines, -4 lines 0 comments Download
M chrome/browser/engagement/site_engagement_service_unittest.cc View 1 2 3 1 chunk +3 lines, -3 lines 0 comments Download
M chrome/browser/experiments/memory_ablation_experiment.cc View 1 2 3 1 chunk +2 lines, -2 lines 0 comments Download
M chrome/browser/favicon/content_favicon_driver_browsertest.cc View 1 2 3 1 chunk +2 lines, -2 lines 0 comments Download
M chrome/browser/feedback/feedback_profile_observer.cc View 1 2 3 2 chunks +7 lines, -6 lines 0 comments Download
M chrome/browser/file_select_helper.cc View 1 2 3 3 chunks +6 lines, -7 lines 0 comments Download
M chrome/browser/gcm/fake_gcm_profile_service.cc View 1 2 3 3 chunks +7 lines, -7 lines 0 comments Download
M chrome/browser/geolocation/access_token_store_browsertest.cc View 1 2 3 1 chunk +2 lines, -3 lines 0 comments Download
M chrome/browser/geolocation/chrome_access_token_store.cc View 1 2 3 2 chunks +4 lines, -5 lines 0 comments Download

Messages

Total messages: 51 (37 generated)
tzik
PTAL
3 years, 8 months ago (2017-04-18 11:56:33 UTC) #9
sky
Oy, a review this big is too much for me to go through. I don't ...
3 years, 8 months ago (2017-04-18 16:17:47 UTC) #10
Bernhard Bauer
FWIW, I glanced through c/b/supervised_user and c/b/ntp_suggestions, and those LGTM. On Tue, Apr 18, 2017 ...
3 years, 8 months ago (2017-04-18 16:53:15 UTC) #11
Bernhard Bauer
FWIW, I glanced through c/b/supervised_user and c/b/ntp_suggestions, and those LGTM. On Tue, Apr 18, 2017 ...
3 years, 8 months ago (2017-04-18 16:53:15 UTC) #12
skym
c/b/sync/ and c/b/ui/sync/ lgtm
3 years, 8 months ago (2017-04-18 17:11:44 UTC) #14
msramek
Well, since you guys already started... :) browsing_data/ and content_settings/ LGTM. All changes are in ...
3 years, 8 months ago (2017-04-18 17:39:20 UTC) #16
Lei Zhang
On 2017/04/18 16:17:47, sky wrote: > Oy, a review this big is too much for ...
3 years, 8 months ago (2017-04-18 20:43:44 UTC) #17
Bernhard Bauer
This time from Rietveld: c/b/supervised_user and c/b/ntp_suggestions LGTM.
3 years, 8 months ago (2017-04-19 08:55:30 UTC) #36
tzik
On 2017/04/18 16:17:47, sky wrote: > Oy, a review this big is too much for ...
3 years, 8 months ago (2017-04-19 09:27:23 UTC) #40
tzik
skym, msramek, bauerb: Thanks for reviewing this! skym, msramek: I moved c/b/sync/ part to http://crrev.com/2830603002/, ...
3 years, 8 months ago (2017-04-19 09:34:38 UTC) #41
tzik
On 2017/04/18 20:43:44, Lei Zhang wrote: > On 2017/04/18 16:17:47, sky wrote: > > Oy, ...
3 years, 8 months ago (2017-04-19 09:35:35 UTC) #42
sky
Thanks for splitting up. LGTM
3 years, 8 months ago (2017-04-19 16:02:38 UTC) #45
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/2825003002/150001
3 years, 8 months ago (2017-04-20 02:10:06 UTC) #48
commit-bot: I haz the power
3 years, 8 months ago (2017-04-20 02:17:09 UTC) #51
Message was sent while issue was closed.
Committed patchset #10 (id:150001) as
https://chromium.googlesource.com/chromium/src/+/29ea5c72b53e6155f6be77abcb7c...

Powered by Google App Engine
This is Rietveld 408576698