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

Unified Diff: chrome/browser/geolocation/win7_location_api_unittest_win.cc

Issue 6115004: Call CoInitialize before using Win 7 Location API. (Closed) Base URL: jknotten@fandorin.lon:/usr/local/google/chromium/src@GeolocationCleanUp
Patch Set: Style fixes. Created 9 years, 11 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
« no previous file with comments | « no previous file | chrome/browser/geolocation/win7_location_api_win.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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..cfc35c378c63ba52c31312a6fb5260284d8d34ca 100644
--- a/chrome/browser/geolocation/win7_location_api_unittest_win.cc
+++ b/chrome/browser/geolocation/win7_location_api_unittest_win.cc
@@ -293,9 +293,8 @@ class GeolocationApiWin7Tests : public testing::Test {
Win7LocationApi* CreateMock() {
MockLocation* locator = new MockLocation();
locator_ = locator;
- return new Win7LocationApi(NULL,
- &MockPropVariantToDoubleFunction,
- locator);
+ return Win7LocationApi::CreateForTesting(&MockPropVariantToDoubleFunction,
+ locator);
}
scoped_ptr<Win7LocationApi> api_;
« no previous file with comments | « no previous file | chrome/browser/geolocation/win7_location_api_win.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698