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

Unified Diff: base/system_monitor/system_monitor.h

Issue 10905237: Fix a potential multi-thread issue when manipulating removable storage map (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Created 8 years, 3 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
« no previous file with comments | « no previous file | base/system_monitor/system_monitor.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/system_monitor/system_monitor.h
diff --git a/base/system_monitor/system_monitor.h b/base/system_monitor/system_monitor.h
index 48d512b708c11aa44368c05300dd9a38f29e00ed..45e8a75dcaf7fc79361034c5614f8052ca7390de 100644
--- a/base/system_monitor/system_monitor.h
+++ b/base/system_monitor/system_monitor.h
@@ -95,7 +95,7 @@ class BASE_EXPORT SystemMonitor {
#endif // OS_MACOSX
// Returns information for attached removable storage.
- std::vector<RemovableStorageInfo> GetAttachedRemovableStorage() const;
+ std::vector<RemovableStorageInfo> GetAttachedRemovableStorage();
willchan no longer on Chromium 2012/09/12 17:00:45 This should probably stay const. If you only need
vandebo (ex-Chrome) 2012/09/12 17:12:57 Hmm, I haven't seen a lot of mutable annotations i
//
// Power-related APIs
@@ -219,6 +219,8 @@ class BASE_EXPORT SystemMonitor {
std::vector<id> notification_observers_;
#endif
+ // The lock for manipluating removable_storage_map_ structure.
vandebo (ex-Chrome) 2012/09/12 17:12:57 nit: Remove the: "Lock for..."
+ base::Lock removable_storage_lock_;
// Map of all the attached removable storage devices.
RemovableStorageMap removable_storage_map_;
« no previous file with comments | « no previous file | base/system_monitor/system_monitor.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698