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

Issue 697953002: ObserverList::HasObserver now takes a const pointer. (Closed)

Created:
6 years, 1 month ago by Matt Giuca
Modified:
6 years, 1 month ago
CC:
chromium-reviews, skanuj+watch_chromium.org, sadrul, nkostylev+watch_chromium.org, zea+watch_chromium.org, dhollowa+watch_chromium.org, dougw+watch_chromium.org, sievers+watch_chromium.org, stevenjb+watch_chromium.org, tim+watch_chromium.org, extensions-reviews_chromium.org, tdanderson+views_chromium.org, melevin+watch_chromium.org, jam, jbauman+watch_chromium.org, pvalenzuela+watch_chromium.org, darin-cc_chromium.org, chromium-apps-reviews_chromium.org, erikwright+watch_chromium.org, chrome-apps-syd-reviews_chromium.org, derat+watch_chromium.org, jfweitz+watch_chromium.org, oshima+watch_chromium.org, kalyank, piman+watch_chromium.org, cc-bugs_chromium.org, Jered, maniscalco+watch_chromium.org, michaeln, hashimoto+watch_chromium.org, Ian Vollick, tfarina, donnd+watch_chromium.org, David Black, samarth+watch_chromium.org, kmadhusu+watch_chromium.org, danakj+watch_chromium.org, davemoore+watch_chromium.org, calamity
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Project:
chromium
Visibility:
Public.

Description

ObserverList::HasObserver now takes a const pointer. Updated all clients that wrap HasObserver and expose it to also take a const pointer. This change avoids further propagation of non-constness (which was previously required when using HasObserver methods). BUG=429588 TBR=michaeln@chromium.org,nyquist@chromium.org,pkotwicz@chromium.org,satorux@chromium.org,sky@chromium.org,zea@chromium.org Committed: https://crrev.com/64ccf236e6657cf0a85506c56d4ba226fdea4765 Cr-Commit-Position: refs/heads/master@{#303428}

Patch Set 1 #

Total comments: 2

Patch Set 2 : Rebase. #

Patch Set 3 : app_list_model_unittest: Fix compile error due to rebase. #

Patch Set 4 : Fix compile errors (unit tests & ChromeOS). #

Patch Set 5 : Fix compile errors (ChromeOS unit tests). #

Unified diffs Side-by-side diffs Delta from patch set Stats (+81 lines, -67 lines) Patch
M ash/wm/lock_state_controller.h View 1 chunk +1 line, -1 line 0 comments Download
M ash/wm/lock_state_controller.cc View 1 chunk +1 line, -1 line 0 comments Download
M base/observer_list.h View 2 chunks +4 lines, -2 lines 0 comments Download
M base/observer_list_unittest.cc View 1 chunk +3 lines, -0 lines 0 comments Download
M chrome/browser/chromeos/settings/device_settings_test_helper.h View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/chromeos/settings/device_settings_test_helper.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/extensions/api/dial/dial_registry_unittest.cc View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/extensions/api/dial/dial_service.h View 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/browser/extensions/api/dial/dial_service.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/search/instant_unittest_base.h View 1 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/search/instant_unittest_base.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/sync/backend_migrator.h View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/sync/backend_migrator.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/sync/profile_sync_service.h View 1 chunk +2 lines, -1 line 0 comments Download
M chrome/browser/sync/profile_sync_service.cc View 1 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/sync/profile_sync_service_base.h View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/ash/screenshot_taker.h View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/ash/screenshot_taker.cc View 1 1 chunk +2 lines, -1 line 0 comments Download
M chromeos/dbus/cras_audio_client.h View 1 chunk +1 line, -1 line 0 comments Download
M chromeos/dbus/cras_audio_client.cc View 1 chunk +1 line, -1 line 0 comments Download
M chromeos/dbus/fake_cras_audio_client.h View 1 chunk +1 line, -1 line 0 comments Download
M chromeos/dbus/fake_cras_audio_client.cc View 1 chunk +1 line, -1 line 0 comments Download
M chromeos/dbus/fake_power_manager_client.h View 1 chunk +1 line, -1 line 0 comments Download
M chromeos/dbus/fake_power_manager_client.cc View 1 chunk +1 line, -1 line 0 comments Download
M chromeos/dbus/fake_session_manager_client.h View 1 chunk +1 line, -1 line 0 comments Download
M chromeos/dbus/fake_session_manager_client.cc View 1 chunk +1 line, -1 line 0 comments Download
M chromeos/dbus/fake_system_clock_client.h View 1 chunk +1 line, -1 line 0 comments Download
M chromeos/dbus/fake_system_clock_client.cc View 1 chunk +1 line, -1 line 0 comments Download
M chromeos/dbus/fake_update_engine_client.h View 1 chunk +1 line, -1 line 0 comments Download
M chromeos/dbus/fake_update_engine_client.cc View 1 chunk +1 line, -1 line 0 comments Download
M chromeos/dbus/mock_session_manager_client.h View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M chromeos/dbus/power_manager_client.h View 1 chunk +1 line, -1 line 0 comments Download
M chromeos/dbus/power_manager_client.cc View 2 chunks +2 lines, -2 lines 0 comments Download
M chromeos/dbus/session_manager_client.h View 1 chunk +1 line, -1 line 0 comments Download
M chromeos/dbus/session_manager_client.cc View 2 chunks +2 lines, -2 lines 0 comments Download
M chromeos/dbus/system_clock_client.h View 1 chunk +1 line, -1 line 0 comments Download
M chromeos/dbus/system_clock_client.cc View 1 chunk +1 line, -1 line 0 comments Download
M chromeos/dbus/update_engine_client.h View 1 chunk +1 line, -1 line 0 comments Download
M chromeos/dbus/update_engine_client.cc View 1 2 3 3 chunks +5 lines, -3 lines 0 comments Download
M components/invalidation/invalidation_logger.h View 1 chunk +2 lines, -1 line 0 comments Download
M components/invalidation/invalidation_logger.cc View 1 chunk +1 line, -1 line 0 comments Download
M components/invalidation/invalidator_registrar.h View 1 chunk +1 line, -1 line 0 comments Download
M components/invalidation/invalidator_registrar.cc View 1 chunk +1 line, -1 line 0 comments Download
M content/browser/appcache/appcache_group.h View 1 chunk +2 lines, -2 lines 0 comments Download
M content/browser/appcache/appcache_group.cc View 1 chunk +3 lines, -1 line 0 comments Download
M sync/sessions/model_type_registry.h View 1 chunk +1 line, -1 line 0 comments Download
M sync/sessions/model_type_registry.cc View 1 chunk +1 line, -1 line 0 comments Download
M ui/app_list/app_list_model_unittest.cc View 1 2 1 chunk +2 lines, -2 lines 0 comments Download
M ui/aura/window.h View 1 chunk +1 line, -1 line 0 comments Download
M ui/aura/window.cc View 1 chunk +1 line, -1 line 0 comments Download
M ui/compositor/compositor.h View 1 1 chunk +2 lines, -2 lines 0 comments Download
M ui/compositor/compositor.cc View 1 2 chunks +3 lines, -2 lines 0 comments Download
M ui/views/widget/widget.h View 1 1 chunk +2 lines, -2 lines 0 comments Download
M ui/views/widget/widget.cc View 1 2 chunks +2 lines, -2 lines 0 comments Download
M ui/wm/core/user_activity_detector.h View 1 1 chunk +1 line, -1 line 0 comments Download
M ui/wm/core/user_activity_detector.cc View 1 1 chunk +2 lines, -1 line 0 comments Download

Messages

Total messages: 21 (9 generated)
Matt Giuca
Hi reviewers, This is a fairly big change in terms of the number of files ...
6 years, 1 month ago (2014-11-03 23:22:00 UTC) #3
Matt Giuca
calamity: Actually, you are not required as I am an OWNER in ui/app_list.
6 years, 1 month ago (2014-11-03 23:23:35 UTC) #5
Lei Zhang
lgtm
6 years, 1 month ago (2014-11-03 23:43:03 UTC) #6
Matt Giuca
Thanks for the fast response. I will wait until after branch point (Friday) to avoid ...
6 years, 1 month ago (2014-11-04 00:08:08 UTC) #7
Matt Giuca
Adding TBR reviewers for OWNERS (mechanical change): - michaeln: content/browser/appcache/* - nyquist: components/invalidation/* - pkotwicz: ...
6 years, 1 month ago (2014-11-10 02:45:21 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/697953002/40001
6 years, 1 month ago (2014-11-10 02:46:14 UTC) #11
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_asan_rel on tryserver.chromium.linux (http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_asan_rel/builds/9377) linux_chromium_chromeos_rel on tryserver.chromium.linux (http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_chromeos_rel/builds/10258)
6 years, 1 month ago (2014-11-10 03:23:42 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/697953002/60001
6 years, 1 month ago (2014-11-10 04:58:02 UTC) #15
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_chromeos_rel on tryserver.chromium.linux (http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_chromeos_rel/builds/10272)
6 years, 1 month ago (2014-11-10 05:34:07 UTC) #17
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/697953002/80001
6 years, 1 month ago (2014-11-10 05:37:41 UTC) #19
commit-bot: I haz the power
Committed patchset #5 (id:80001)
6 years, 1 month ago (2014-11-10 06:44:37 UTC) #20
commit-bot: I haz the power
6 years, 1 month ago (2014-11-10 06:45:15 UTC) #21
Message was sent while issue was closed.
Patchset 5 (id:??) landed as
https://crrev.com/64ccf236e6657cf0a85506c56d4ba226fdea4765
Cr-Commit-Position: refs/heads/master@{#303428}

Powered by Google App Engine
This is Rietveld 408576698