Index: chrome/browser/geolocation/win7_location_api_unittest_win.cc |
diff --git a/chrome/browser/geolocation/win7_location_api_unittest_win.cc b/chrome/browser/geolocation/win7_location_api_unittest_win.cc |
index a22b99b58203593ffaeddaddf99fed106f45e660..47dfd7453286c20c6e33dc57591c0d9d1ff2bfbf 100644 |
--- a/chrome/browser/geolocation/win7_location_api_unittest_win.cc |
+++ b/chrome/browser/geolocation/win7_location_api_unittest_win.cc |
@@ -293,9 +293,9 @@ class GeolocationApiWin7Tests : public testing::Test { |
Win7LocationApi* CreateMock() { |
MockLocation* locator = new MockLocation(); |
locator_ = locator; |
- return new Win7LocationApi(NULL, |
- &MockPropVariantToDoubleFunction, |
- locator); |
+ Win7LocationApi* api = new Win7LocationApi(); |
+ api->Init(NULL, &MockPropVariantToDoubleFunction, locator); |
+ return api; |
} |
scoped_ptr<Win7LocationApi> api_; |