summaryrefslogtreecommitdiffstats
path: root/chrome/browser/device_orientation/provider.h
diff options
context:
space:
mode:
Diffstat (limited to 'chrome/browser/device_orientation/provider.h')
-rw-r--r--chrome/browser/device_orientation/provider.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/chrome/browser/device_orientation/provider.h b/chrome/browser/device_orientation/provider.h
index c6b1b7a..ce1b89d 100644
--- a/chrome/browser/device_orientation/provider.h
+++ b/chrome/browser/device_orientation/provider.h
@@ -33,6 +33,9 @@ class Provider : public base::RefCountedThreadSafe<Provider> {
// injected object's reference count.
static void SetInstanceForTests(Provider* provider);
+ // Get the current instance. Used for testing.
+ static Provider* GetInstanceForTests();
+
// Note: AddObserver may call back synchronously to the observer with
// orientation data.
virtual void AddObserver(Observer* observer) = 0;