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

Issue 7812036: Update base/timer.h code to pass through Location from call sites. (Closed)

Created:
9 years, 3 months ago by jbates
Modified:
9 years, 3 months ago
CC:
chromium-reviews, Raghu Simha, ncarter (slow), idana, tim (not reviewing)
Visibility:
Public.

Description

Currently, base/timer.cc calls PostTask with FROM_HERE as the Location, so the original code that created the delayed callback is lost. This change adds a tracked_objects::Location parameter to the APIs in base/timer.h so we can trace the PostTask callbacks. The other files are touched to add the FROM_HERE Location parameter. Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=99284

Patch Set 1 #

Total comments: 2

Patch Set 2 : fix build, consistency #

Total comments: 4

Patch Set 3 : . #

Patch Set 4 : rm explicit #

Patch Set 5 : . #

Unified diffs Side-by-side diffs Delta from patch set Stats (+235 lines, -178 lines) Patch
M base/system_monitor/system_monitor.cc View 1 1 chunk +1 line, -1 line 0 comments Download
M base/timer.h View 1 2 3 7 chunks +25 lines, -9 lines 0 comments Download
M base/timer.cc View 1 chunk +1 line, -1 line 0 comments Download
M base/timer_unittest.cc View 1 8 chunks +9 lines, -9 lines 0 comments Download
M chrome/browser/autocomplete/autocomplete.cc View 1 2 1 chunk +2 lines, -1 line 0 comments Download
M chrome/browser/autocomplete/search_provider.cc View 1 2 1 chunk +2 lines, -1 line 0 comments Download
M chrome/browser/bookmarks/bookmark_drop_info.cc View 1 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/browser_process_impl.cc View 1 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/chromeos/cros/login_library.cc View 1 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/chromeos/cros/power_library.cc View 1 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/chromeos/customization_document.cc View 1 1 chunk +2 lines, -1 line 0 comments Download
M chrome/browser/chromeos/login/network_screen.cc View 1 1 chunk +2 lines, -1 line 0 comments Download
M chrome/browser/chromeos/login/screen_locker.cc View 1 1 chunk +2 lines, -1 line 0 comments Download
M chrome/browser/chromeos/login/update_screen.cc View 1 1 chunk +2 lines, -1 line 0 comments Download
M chrome/browser/chromeos/login/web_page_screen.cc View 1 1 chunk +2 lines, -1 line 0 comments Download
M chrome/browser/chromeos/login/web_page_view.cc View 1 2 chunks +4 lines, -2 lines 0 comments Download
M chrome/browser/chromeos/login/wizard_controller.cc View 1 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/chromeos/setting_level_bubble.cc View 1 2 chunks +4 lines, -2 lines 0 comments Download
M chrome/browser/chromeos/status/clock_menu_button.cc View 1 2 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/chromeos/status/memory_menu_button.cc View 1 2 1 chunk +2 lines, -1 line 0 comments Download
M chrome/browser/chromeos/upgrade_detector_chromeos.cc View 1 2 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/component_updater/component_updater_service.cc View 1 2 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/browser/enumerate_modules_model_win.cc View 1 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/extensions/extension_updater.cc View 1 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/extensions/extension_web_socket_proxy_private_api.cc View 1 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/extensions/extensions_quota_service.cc View 1 1 chunk +2 lines, -1 line 0 comments Download
M chrome/browser/history/top_sites.cc View 1 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/instant/instant_controller.cc View 1 2 3 chunks +4 lines, -3 lines 0 comments Download
M chrome/browser/instant/instant_loader.cc View 1 2 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/internal_auth.cc View 1 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/net/predictor_unittest.cc View 1 2 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/notifications/notification_ui_manager.cc View 1 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/oom_priority_manager.cc View 1 1 chunk +2 lines, -1 line 0 comments Download
M chrome/browser/policy/delayed_work_scheduler.cc View 1 1 chunk +2 lines, -1 line 0 comments Download
M chrome/browser/prerender/prerender_manager.cc View 1 2 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/browser/printing/print_job.cc View 1 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/printing/print_view_manager.cc View 1 1 chunk +2 lines, -1 line 0 comments Download
M chrome/browser/process_singleton_linux.cc View 1 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/profiles/profile_impl.cc View 1 2 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/renderer_host/safe_browsing_resource_handler.cc View 1 1 chunk +2 lines, -1 line 0 comments Download
M chrome/browser/safe_browsing/protocol_manager.cc View 1 2 chunks +4 lines, -3 lines 0 comments Download
M chrome/browser/sessions/session_restore.cc View 1 2 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/spellchecker/spellcheck_host_metrics.cc View 1 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/sync/engine/sync_scheduler.cc View 1 2 3 4 2 chunks +3 lines, -3 lines 0 comments Download
M chrome/browser/sync/glue/database_model_worker_unittest.cc View 1 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/sync/glue/sync_backend_host.cc View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/sync/notifier/registration_manager.cc View 1 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/sync/profile_sync_service.cc View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/fullscreen_exit_bubble.cc View 1 2 chunks +5 lines, -3 lines 0 comments Download
M chrome/browser/ui/gtk/browser_window_gtk.cc View 1 2 2 chunks +3 lines, -3 lines 0 comments Download
M chrome/browser/ui/gtk/download/download_item_gtk.cc View 1 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/gtk/reload_button_gtk.cc View 1 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/browser/ui/gtk/status_bubble_gtk.cc View 1 2 chunks +3 lines, -2 lines 0 comments Download
M chrome/browser/ui/gtk/tabs/dragged_tab_controller_gtk.cc View 1 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/panels/auto_hiding_desktop_bar_win.cc View 1 2 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/views/compact_nav/compact_location_bar_view_host.cc View 1 1 chunk +2 lines, -1 line 0 comments Download
M chrome/browser/ui/views/download/download_item_view.cc View 1 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/views/frame/browser_view.cc View 1 2 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/views/reload_button.cc View 1 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/browser/ui/views/tab_contents/tab_contents_view_views.cc View 1 1 chunk +2 lines, -2 lines 0 comments Download
M chrome/browser/ui/views/tabs/dragged_tab_controller.cc View 1 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/webui/chromeos/mobile_setup_ui.cc View 1 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/ui/webui/flash_ui.cc View 1 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/webui/ntp/new_tab_ui.cc View 1 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/browser/upgrade_detector_impl.cc View 1 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/browser/visitedlink/visitedlink_event_listener.cc View 1 1 chunk +1 line, -1 line 0 comments Download
M chrome/common/important_file_writer.cc View 1 1 chunk +1 line, -1 line 0 comments Download
M chrome/renderer/extensions/extension_dispatcher.cc View 1 2 chunks +2 lines, -2 lines 0 comments Download
M content/browser/download/download_file_manager.cc View 1 1 chunk +2 lines, -1 line 0 comments Download
M content/browser/download/download_item.cc View 1 1 chunk +2 lines, -1 line 0 comments Download
M content/browser/download/download_resource_handler.cc View 1 1 chunk +2 lines, -1 line 0 comments Download
M content/browser/net/url_request_slow_http_job.cc View 1 1 chunk +1 line, -1 line 0 comments Download
M content/browser/renderer_host/browser_render_process_host.cc View 1 2 1 chunk +1 line, -1 line 0 comments Download
M content/browser/renderer_host/render_widget_host.cc View 1 1 chunk +1 line, -1 line 0 comments Download
M content/browser/renderer_host/resource_dispatcher_host.cc View 1 1 chunk +1 line, -1 line 0 comments Download
M content/renderer/render_process_impl.cc View 1 1 chunk +1 line, -1 line 0 comments Download
M content/renderer/render_thread.cc View 1 1 chunk +1 line, -1 line 0 comments Download
M content/renderer/render_view.cc View 1 2 2 chunks +4 lines, -3 lines 0 comments Download
M jingle/glue/pseudotcp_adapter.cc View 1 1 chunk +2 lines, -1 line 0 comments Download
M jingle/notifier/communicator/login.cc View 1 1 chunk +1 line, -1 line 0 comments Download
M media/audio/audio_input_controller.cc View 1 1 chunk +1 line, -1 line 0 comments Download
M media/audio/audio_output_dispatcher.cc View 1 1 chunk +1 line, -1 line 0 comments Download
M media/filters/adaptive_demuxer.cc View 1 1 chunk +2 lines, -1 line 0 comments Download
M net/base/network_change_notifier_win.cc View 1 1 chunk +1 line, -1 line 0 comments Download
M net/curvecp/messenger.cc View 1 3 chunks +6 lines, -5 lines 0 comments Download
M net/disk_cache/backend_impl.cc View 1 2 1 chunk +1 line, -1 line 0 comments Download
M net/disk_cache/disk_cache_test_util.cc View 1 1 chunk +1 line, -1 line 0 comments Download
M net/dns/dns_transaction.cc View 1 1 chunk +1 line, -1 line 0 comments Download
M net/http/http_response_body_drainer.cc View 1 1 chunk +2 lines, -1 line 0 comments Download
M net/proxy/dhcp_proxy_script_adapter_fetcher_win.cc View 1 1 chunk +1 line, -1 line 0 comments Download
M net/proxy/dhcp_proxy_script_adapter_fetcher_win_unittest.cc View 1 1 chunk +1 line, -1 line 0 comments Download
M net/proxy/dhcp_proxy_script_fetcher_win.cc View 1 1 chunk +1 line, -1 line 0 comments Download
M net/proxy/dhcp_proxy_script_fetcher_win_unittest.cc View 1 3 chunks +3 lines, -3 lines 0 comments Download
M net/proxy/init_proxy_resolver.cc View 1 1 chunk +2 lines, -1 line 0 comments Download
M net/proxy/proxy_config_service_linux.cc View 1 3 chunks +3 lines, -3 lines 0 comments Download
M net/socket/client_socket_pool_base.cc View 1 3 chunks +3 lines, -3 lines 0 comments Download
M net/socket/ssl_client_socket_nss.cc View 1 2 1 chunk +1 line, -1 line 0 comments Download
M net/socket/transport_client_socket_pool.cc View 1 1 chunk +1 line, -1 line 0 comments Download
M remoting/host/heartbeat_sender.cc View 1 2 chunks +3 lines, -3 lines 0 comments Download
M remoting/host/screen_recorder.cc View 1 1 chunk +1 line, -1 line 0 comments Download
M ui/base/animation/animation_container.cc View 1 1 chunk +1 line, -1 line 0 comments Download
M views/controls/menu/menu_controller.cc View 1 3 chunks +6 lines, -4 lines 0 comments Download
M views/controls/throbber.cc View 1 3 chunks +5 lines, -5 lines 0 comments Download
M views/repeat_controller.cc View 1 2 chunks +3 lines, -3 lines 0 comments Download
M views/touchui/touch_factory.cc View 1 1 chunk +2 lines, -1 line 0 comments Download
M webkit/fileapi/obfuscated_file_system_file_util.cc View 1 1 chunk +2 lines, -2 lines 0 comments Download
M webkit/glue/resource_fetcher.cc View 1 1 chunk +1 line, -1 line 0 comments Download
M webkit/glue/resource_fetcher_unittest.cc View 1 1 chunk +2 lines, -1 line 0 comments Download
M webkit/glue/webkitclient_impl.cc View 1 1 chunk +2 lines, -2 lines 0 comments Download
M webkit/plugins/npapi/webplugin_delegate_impl_mac.mm View 1 2 2 chunks +3 lines, -2 lines 0 comments Download
M webkit/quota/quota_database.cc View 1 1 chunk +2 lines, -2 lines 0 comments Download
M webkit/quota/quota_manager.cc View 1 1 chunk +2 lines, -1 line 0 comments Download
M webkit/quota/quota_temporary_storage_evictor.cc View 1 1 chunk +3 lines, -3 lines 0 comments Download
M webkit/tools/test_shell/layout_test_controller.cc View 1 1 chunk +1 line, -1 line 0 comments Download
M webkit/tools/test_shell/simple_resource_loader_bridge.cc View 1 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 10 (0 generated)
jbates
This is related to http://codereview.chromium.org/7778033/ (but not dependent on it).
9 years, 3 months ago (2011-08-31 20:59:53 UTC) #1
darin (slow to review)
http://codereview.chromium.org/7812036/diff/1/base/timer.h File base/timer.h (right): http://codereview.chromium.org/7812036/diff/1/base/timer.h#newcode124 base/timer.h:124: void Start(TimeDelta delay, consistency nit: it'd be nice to ...
9 years, 3 months ago (2011-08-31 21:27:38 UTC) #2
darin (slow to review)
... apologies, i know my suggestion amounts to a lot of busy work :-(
9 years, 3 months ago (2011-08-31 21:28:26 UTC) #3
jbates
On 2011/08/31 21:28:26, darin wrote: > ... apologies, i know my suggestion amounts to a ...
9 years, 3 months ago (2011-08-31 21:33:58 UTC) #4
jbates
http://codereview.chromium.org/7812036/diff/1/base/timer.h File base/timer.h (right): http://codereview.chromium.org/7812036/diff/1/base/timer.h#newcode124 base/timer.h:124: void Start(TimeDelta delay, On 2011/08/31 21:27:38, darin wrote: > ...
9 years, 3 months ago (2011-08-31 23:01:59 UTC) #5
darin (slow to review)
This change LGTM except for this one issue: http://codereview.chromium.org/7812036/diff/3002/base/timer.h File base/timer.h (right): http://codereview.chromium.org/7812036/diff/3002/base/timer.h#newcode97 base/timer.h:97: tracked_objects::Location ...
9 years, 3 months ago (2011-08-31 23:28:46 UTC) #6
darin (slow to review)
Also, you might want to add some TRACK_ALL_TASK_OBJECTS guards since PostTask will just drop the ...
9 years, 3 months ago (2011-08-31 23:29:55 UTC) #7
jbates
I think we're good then, assuming tracked_objects::Tracked is deleted (filed http://code.google.com/p/chromium/issues/detail?id=95001). It looks like TRACK_ALL_TASK_OBJECTS ...
9 years, 3 months ago (2011-09-01 00:26:58 UTC) #8
awong
LGTM w/ nit http://codereview.chromium.org/7812036/diff/3002/base/timer.h File base/timer.h (right): http://codereview.chromium.org/7812036/diff/3002/base/timer.h#newcode90 base/timer.h:90: explicit TimerTask(const tracked_objects::Location& posted_from, No need ...
9 years, 3 months ago (2011-09-01 00:37:04 UTC) #9
darin (slow to review)
9 years, 3 months ago (2011-09-01 05:52:09 UTC) #10
LGTM2

Powered by Google App Engine
This is Rietveld 408576698