Index: chrome/browser/geolocation/geolocation_permission_context_unittest.cc |
diff --git a/chrome/browser/geolocation/geolocation_permission_context_unittest.cc b/chrome/browser/geolocation/geolocation_permission_context_unittest.cc |
index 6e4086281a74d6af305115840b4402b254fe0b66..0fadbe74215cdb62f1a21d3fd046bae7973ba7c7 100644 |
--- a/chrome/browser/geolocation/geolocation_permission_context_unittest.cc |
+++ b/chrome/browser/geolocation/geolocation_permission_context_unittest.cc |
@@ -290,7 +290,14 @@ TEST_F(GeolocationPermissionContextTests, CancelGeolocationPermissionRequest) { |
requesting_frame_1, requesting_frame_0)); |
} |
-TEST_F(GeolocationPermissionContextTests, StopUpdating) { |
+// TODO(jknotten): Remove this test once we have completely |
+// switched over to client-based geolocation. |
+#if defined(ENABLE_CLIENT_BASED_GEOLOCATION) |
+#define MAYBE_StopUpdating DISABLED_StopUpdating |
+#else |
+#define MAYBE_StopUpdating StopUpdating |
+#endif |
+TEST_F(GeolocationPermissionContextTests, MAYBE_StopUpdating) { |
GURL requesting_frame("http://www.example.com/geolocation"); |
NavigateAndCommit(requesting_frame); |
EXPECT_EQ(0, contents()->infobar_delegate_count()); |