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

Unified Diff: chrome/browser/extensions/api/storage/syncable_settings_storage.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: chrome/browser/extensions/api/storage/syncable_settings_storage.cc
diff --git a/chrome/browser/extensions/api/storage/syncable_settings_storage.cc b/chrome/browser/extensions/api/storage/syncable_settings_storage.cc
index 95d95ec711e1975af16b427743315f8d3289652c..d25bd170c3ef1e61dd9bbf92d4c92c86d927c456 100644
--- a/chrome/browser/extensions/api/storage/syncable_settings_storage.cc
+++ b/chrome/browser/extensions/api/storage/syncable_settings_storage.cc
@@ -356,11 +356,9 @@ syncer::SyncError SyncableSettingsStorage::ProcessSyncChanges(
sync_processor_->NotifyChanges(changes);
- observers_->Notify(
- &SettingsObserver::OnSettingsChanged,
- extension_id_,
- settings_namespace::SYNC,
- ValueStoreChange::ToJson(changes));
+ observers_->Notify(FROM_HERE, &SettingsObserver::OnSettingsChanged,
+ extension_id_, settings_namespace::SYNC,
+ ValueStoreChange::ToJson(changes));
// TODO(kalman): Something sensible with multiple errors.
return errors.empty() ? syncer::SyncError() : errors[0];

Powered by Google App Engine
This is Rietveld 408576698