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

Unified Diff: components/storage_monitor/storage_monitor.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 side-by-side diff with in-line comments
Download patch
Index: components/storage_monitor/storage_monitor.cc
diff --git a/components/storage_monitor/storage_monitor.cc b/components/storage_monitor/storage_monitor.cc
index f82995d81a7d57accdfce3963522ab9c344da09d..0f1f6cc6687f0f9b248b443f0676102d6e3b4fdf 100644
--- a/components/storage_monitor/storage_monitor.cc
+++ b/components/storage_monitor/storage_monitor.cc
@@ -172,7 +172,7 @@ void StorageMonitor::ProcessAttach(const StorageInfo& info) {
DVLOG(1) << "StorageAttached id " << info.device_id();
if (StorageInfo::IsRemovableDevice(info.device_id())) {
observer_list_->Notify(
- &RemovableStorageObserver::OnRemovableStorageAttached, info);
+ FROM_HERE, &RemovableStorageObserver::OnRemovableStorageAttached, info);
}
}
@@ -190,7 +190,7 @@ void StorageMonitor::ProcessDetach(const std::string& id) {
DVLOG(1) << "StorageDetached for id " << id;
if (StorageInfo::IsRemovableDevice(info.device_id())) {
observer_list_->Notify(
- &RemovableStorageObserver::OnRemovableStorageDetached, info);
+ FROM_HERE, &RemovableStorageObserver::OnRemovableStorageDetached, info);
}
}
« no previous file with comments | « components/password_manager/core/browser/password_store.cc ('k') | content/browser/gpu/gpu_data_manager_impl_private.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698