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

Unified Diff: content/browser/service_worker/embedded_worker_instance.cc

Issue 982413002: base: Stop passing a non-const ref to ObserverListBase::Iterator. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: observerref: fixwindowsbuild Created 5 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: content/browser/service_worker/embedded_worker_instance.cc
diff --git a/content/browser/service_worker/embedded_worker_instance.cc b/content/browser/service_worker/embedded_worker_instance.cc
index 1b15acfe14637141a809291fe743ab5d8fdf394c..e7b27c3057405be34b72617e93bf598b39a2ef11 100644
--- a/content/browser/service_worker/embedded_worker_instance.cc
+++ b/content/browser/service_worker/embedded_worker_instance.cc
@@ -389,7 +389,7 @@ void EmbeddedWorkerInstance::OnPausedAfterDownload() {
}
bool EmbeddedWorkerInstance::OnMessageReceived(const IPC::Message& message) {
- ListenerList::Iterator it(listener_list_);
+ ListenerList::Iterator it(&listener_list_);
while (Listener* listener = it.GetNext()) {
if (listener->OnMessageReceived(message))
return true;
« no previous file with comments | « content/browser/loader/resource_dispatcher_host_impl.cc ('k') | content/browser/web_contents/web_contents_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698