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

Issue 982413002: base: Stop passing a non-const ref to ObserverListBase::Iterator. (Closed)

Created:
5 years, 9 months ago by danakj
Modified:
5 years, 9 months ago
CC:
chromium-reviews, sadrul, tzik, nasko+codewatch_chromium.org, sievers+watch_chromium.org, kinuko+watch, jdduke+watch_chromium.org, extensions-reviews_chromium.org, cbentzel+watch_chromium.org, chromoting-reviews_chromium.org, jam, jbauman+watch_chromium.org, darin-cc_chromium.org, chromium-apps-reviews_chromium.org, tdresser+watch_chromium.org, erikwright+watch_chromium.org, mlamouri+watch-content_chromium.org, creis+watch_chromium.org, jsbell+serviceworker_chromium.org, nhiroki, kalyank, piman+watch_chromium.org, danakj+watch_chromium.org, michaeln, Ian Vollick, serviceworker-reviews, eroman, kinuko+serviceworker, mkwst+moarreviews-renderer_chromium.org, horo+watch_chromium.org, cc-bugs_chromium.org, mmenke, piman
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

base: Stop passing a non-const ref to ObserverListBase::Iterator. Pass a pointer instead, as per the style guide. Also makes the constructor explicit (all callsites already are explicit). BUG=464816 TBR=blundell@chromium.org,agl,dmichael,garykac Committed: https://crrev.com/4ef352de3f24142d38b7d11fe3f9f637b43ee834 Cr-Commit-Position: refs/heads/master@{#319674}

Patch Set 1 #

Patch Set 2 : observerref: androidfix #

Patch Set 3 : observerref: fixwindowsbuild #

Unified diffs Side-by-side diffs Delta from patch set Stats (+51 lines, -53 lines) Patch
M base/observer_list.h View 3 chunks +14 lines, -15 lines 0 comments Download
M base/observer_list_threadsafe.h View 3 chunks +2 lines, -2 lines 0 comments Download
M base/prefs/pref_notifier_impl.cc View 1 chunk +1 line, -1 line 0 comments Download
M base/prefs/pref_notifier_impl_unittest.cc View 1 chunk +1 line, -1 line 0 comments Download
M cc/animation/layer_animation_controller.cc View 6 chunks +6 lines, -6 lines 0 comments Download
M chrome/browser/extensions/extension_toolbar_model.cc View 1 chunk +1 line, -1 line 0 comments Download
M components/renderer_context_menu/render_view_context_menu_base.cc View 3 chunks +3 lines, -3 lines 0 comments Download
M content/browser/loader/resource_dispatcher_host_impl.cc View 2 chunks +2 lines, -2 lines 0 comments Download
M content/browser/service_worker/embedded_worker_instance.cc View 1 chunk +1 line, -1 line 0 comments Download
M content/browser/web_contents/web_contents_impl.cc View 1 chunk +1 line, -1 line 0 comments Download
M content/public/test/mock_render_thread.cc View 1 chunk +1 line, -1 line 0 comments Download
M content/renderer/render_frame_impl.cc View 1 chunk +1 line, -1 line 0 comments Download
M content/renderer/render_thread_impl.cc View 1 chunk +1 line, -1 line 0 comments Download
M content/renderer/render_view_impl.cc View 1 chunk +1 line, -1 line 0 comments Download
M ipc/ipc_test_sink.cc View 1 chunk +1 line, -1 line 0 comments Download
M net/base/net_log.cc View 1 chunk +1 line, -1 line 0 comments Download
M ppapi/proxy/ppapi_proxy_test.cc View 1 1 chunk +1 line, -2 lines 0 comments Download
M remoting/client/plugin/delegating_signal_strategy.cc View 1 chunk +1 line, -1 line 0 comments Download
M remoting/host/register_support_host_request_unittest.cc View 1 2 1 chunk +1 line, -1 line 0 comments Download
M remoting/signaling/fake_signal_strategy.cc View 1 chunk +1 line, -1 line 0 comments Download
M remoting/signaling/xmpp_signal_strategy.cc 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/layer_animation_sequence.cc View 1 chunk +1 line, -1 line 0 comments Download
M ui/compositor/layer_animator.cc View 1 chunk +1 line, -1 line 0 comments Download
M ui/events/platform/platform_event_source.cc View 1 chunk +1 line, -1 line 0 comments Download
M ui/wm/core/compound_event_filter.cc View 4 chunks +4 lines, -4 lines 0 comments Download

Messages

Total messages: 23 (5 generated)
danakj
5 years, 9 months ago (2015-03-06 21:42:07 UTC) #3
Nico
lgtm
5 years, 9 months ago (2015-03-06 21:50:05 UTC) #4
Avi (use Gerrit)
On 2015/03/06 21:50:05, Nico wrote: > lgtm You mean you can't make it a const ...
5 years, 9 months ago (2015-03-06 23:58:49 UTC) #5
danakj
On 2015/03/06 23:58:49, Avi wrote: > On 2015/03/06 21:50:05, Nico wrote: > > lgtm > ...
5 years, 9 months ago (2015-03-07 00:00:08 UTC) #6
Avi (use Gerrit)
On 2015/03/06 23:58:49, Avi wrote: > On 2015/03/06 21:50:05, Nico wrote: > > lgtm > ...
5 years, 9 months ago (2015-03-07 00:00:27 UTC) #7
danakj
On 2015/03/07 00:00:27, Avi wrote: > On 2015/03/06 23:58:49, Avi wrote: > > On 2015/03/06 ...
5 years, 9 months ago (2015-03-07 00:10:09 UTC) #8
Avi (use Gerrit)
On 2015/03/07 00:10:09, danakj wrote: > On 2015/03/07 00:00:27, Avi wrote: > > On 2015/03/06 ...
5 years, 9 months ago (2015-03-07 00:14:11 UTC) #9
Nico
Maybe there could be a const override of AsWeakPtr() that returns a WeakPtr<const T>? Not ...
5 years, 9 months ago (2015-03-07 00:17:57 UTC) #10
Nico
(but i think this is fine as-is too) On Fri, Mar 6, 2015 at 4:17 ...
5 years, 9 months ago (2015-03-07 00:18:48 UTC) #11
danakj
On Fri, Mar 6, 2015 at 4:14 PM, <avi@chromium.org> wrote: > On 2015/03/07 00:10:09, danakj ...
5 years, 9 months ago (2015-03-07 00:22:42 UTC) #12
Avi (use Gerrit)
On 2015/03/07 00:22:42, danakj wrote: > So, I guess the answer to your angry question ...
5 years, 9 months ago (2015-03-07 00:26:40 UTC) #13
danakj
On Fri, Mar 6, 2015 at 4:26 PM, <avi@chromium.org> wrote: > On 2015/03/07 00:22:42, danakj ...
5 years, 9 months ago (2015-03-07 00:31:00 UTC) #14
danakj
The rest of the changes are purely mechanical, TBRing.
5 years, 9 months ago (2015-03-09 16:20:08 UTC) #16
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/982413002/40001
5 years, 9 months ago (2015-03-09 16:20:45 UTC) #19
garykac
remoting lgtm
5 years, 9 months ago (2015-03-09 16:38:52 UTC) #20
dmichael (off chromium)
ppapi lgtm
5 years, 9 months ago (2015-03-09 16:44:31 UTC) #21
commit-bot: I haz the power
Committed patchset #3 (id:40001)
5 years, 9 months ago (2015-03-09 17:46:09 UTC) #22
commit-bot: I haz the power
5 years, 9 months ago (2015-03-09 17:46:49 UTC) #23
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/4ef352de3f24142d38b7d11fe3f9f637b43ee834
Cr-Commit-Position: refs/heads/master@{#319674}

Powered by Google App Engine
This is Rietveld 408576698