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

Unified Diff: content/browser/device_orientation/device_orientation_browsertest.cc

Issue 10755002: Refactors DeviceOrientation to make it more extensible (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Moves construction of DeviceData objects out of ProviderImpl Created 8 years, 5 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_orientation/device_orientation_browsertest.cc
diff --git a/content/browser/device_orientation/device_orientation_browsertest.cc b/content/browser/device_orientation/device_orientation_browsertest.cc
index 346d59206b1440ce8adf3ca3e08ad09fea85b8c7..805d6011237c291357bfbf83e0b7cf7006ea4b8b 100644
--- a/content/browser/device_orientation/device_orientation_browsertest.cc
+++ b/content/browser/device_orientation/device_orientation_browsertest.cc
@@ -25,7 +25,7 @@ class MockProvider : public Provider {
virtual void AddObserver(Observer* observer) {
added_observer_ = true;
- observer->OnOrientationUpdate(orientation_);
+ observer->OnDeviceDataUpdate(&orientation_);
}
virtual void RemoveObserver(Observer* observer) {
removed_observer_ = true;

Powered by Google App Engine
This is Rietveld 408576698