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

Unified Diff: content/browser/device_sensors/data_fetcher_shared_memory_base.h

Issue 578863002: Fix the indirect pure virtual calls in DataFetcherSharedMemoryBase destructor. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix comment in data_fetcher_shared_memory_base Created 6 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
Index: content/browser/device_sensors/data_fetcher_shared_memory_base.h
diff --git a/content/browser/device_sensors/data_fetcher_shared_memory_base.h b/content/browser/device_sensors/data_fetcher_shared_memory_base.h
index c959e8254fd6dfadb922289ce75e8e246663a1ec..f98e9720fad2505d2eccfb7c93ce42a29d7fe3ad 100644
--- a/content/browser/device_sensors/data_fetcher_shared_memory_base.h
+++ b/content/browser/device_sensors/data_fetcher_shared_memory_base.h
@@ -77,6 +77,10 @@ class CONTENT_EXPORT DataFetcherSharedMemoryBase {
bool IsPollingTimerRunningForTesting() const;
+ // Should be used in deriving classes to make sure all active sensors are
Bernhard Bauer 2014/09/17 16:41:00 Nit: "derived"
timvolodine 2014/09/17 18:25:00 Done.
+ // unregistered upon destruction.
+ void StopFetchingAllDeviceData();
Bernhard Bauer 2014/09/17 16:41:00 Instead of requiring each subclass to call this me
timvolodine 2014/09/17 18:25:00 Done. though not sure it's that much better..
Bernhard Bauer 2014/09/17 21:36:37 Well, it means you only have to care about this in
+
private:
bool InitAndStartPollingThreadIfNecessary();
base::SharedMemory* GetSharedMemory(ConsumerType consumer_type);

Powered by Google App Engine
This is Rietveld 408576698