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

Side by Side Diff: content/browser/service_worker/service_worker_context_wrapper.cc

Issue 877993003: Pass FROM_HERE to ObserverListThreadSafe::Notify to improve profile. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 10 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 unified diff | Download patch
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "content/browser/service_worker/service_worker_context_wrapper.h" 5 #include "content/browser/service_worker/service_worker_context_wrapper.h"
6 6
7 #include <map> 7 #include <map>
8 #include <set> 8 #include <set>
9 #include <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
(...skipping 410 matching lines...) Expand 10 before | Expand all | Expand 10 after
421 void ServiceWorkerContextWrapper::DidDeleteAndStartOver( 421 void ServiceWorkerContextWrapper::DidDeleteAndStartOver(
422 ServiceWorkerStatusCode status) { 422 ServiceWorkerStatusCode status) {
423 DCHECK_CURRENTLY_ON(BrowserThread::IO); 423 DCHECK_CURRENTLY_ON(BrowserThread::IO);
424 if (status != SERVICE_WORKER_OK) { 424 if (status != SERVICE_WORKER_OK) {
425 context_core_.reset(); 425 context_core_.reset();
426 return; 426 return;
427 } 427 }
428 context_core_.reset(new ServiceWorkerContextCore(context_core_.get(), this)); 428 context_core_.reset(new ServiceWorkerContextCore(context_core_.get(), this));
429 DVLOG(1) << "Restarted ServiceWorkerContextCore successfully."; 429 DVLOG(1) << "Restarted ServiceWorkerContextCore successfully.";
430 430
431 observer_list_->Notify(&ServiceWorkerContextObserver::OnStorageWiped); 431 observer_list_->Notify(FROM_HERE,
432 &ServiceWorkerContextObserver::OnStorageWiped);
432 } 433 }
433 434
434 } // namespace content 435 } // namespace content
OLDNEW
« no previous file with comments | « content/browser/service_worker/service_worker_context_core.cc ('k') | content/renderer/p2p/socket_dispatcher.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698