| 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 95cf26d10ec8e5690680e2ebce5cad1de0b40a2f..5b6fb7a802d7d1b7cea79dd824c7299885c7b1f5 100644
|
| --- a/chrome/browser/geolocation/geolocation_permission_context_unittest.cc
|
| +++ b/chrome/browser/geolocation/geolocation_permission_context_unittest.cc
|
| @@ -17,6 +17,7 @@
|
| #include "base/test/simple_test_clock.h"
|
| #include "base/time/clock.h"
|
| #include "chrome/browser/chrome_notification_types.h"
|
| +#include "chrome/browser/content_settings/host_content_settings_map_factory.h"
|
| #include "chrome/browser/content_settings/tab_specific_content_settings.h"
|
| #include "chrome/browser/geolocation/geolocation_permission_context_factory.h"
|
| #include "chrome/browser/infobars/infobar_service.h"
|
| @@ -330,8 +331,11 @@ void GeolocationPermissionContextTests::BubbleManagerDocumentLoadCompleted(
|
|
|
| ContentSetting GeolocationPermissionContextTests::GetGeolocationContentSetting(
|
| GURL frame_0, GURL frame_1) {
|
| - return profile()->GetHostContentSettingsMap()->GetContentSetting(
|
| - frame_0, frame_1, CONTENT_SETTINGS_TYPE_GEOLOCATION, std::string());
|
| + return HostContentSettingsMapFactory::GetForProfile(profile())
|
| + ->GetContentSetting(frame_0,
|
| + frame_1,
|
| + CONTENT_SETTINGS_TYPE_GEOLOCATION,
|
| + std::string());
|
| }
|
|
|
| bool GeolocationPermissionContextTests::BubbleEnabled() const {
|
| @@ -833,7 +837,8 @@ TEST_F(GeolocationPermissionContextTests, LastUsageAudited) {
|
| test_clock->SetNow(base::Time::UnixEpoch() +
|
| base::TimeDelta::FromSeconds(10));
|
|
|
| - HostContentSettingsMap* map = profile()->GetHostContentSettingsMap();
|
| + HostContentSettingsMap* map =
|
| + HostContentSettingsMapFactory::GetForProfile(profile());
|
| map->SetPrefClockForTesting(scoped_ptr<base::Clock>(test_clock));
|
|
|
| // The permission shouldn't have been used yet.
|
| @@ -872,7 +877,8 @@ TEST_F(GeolocationPermissionContextTests, LastUsageAuditedMultipleFrames) {
|
| test_clock->SetNow(base::Time::UnixEpoch() +
|
| base::TimeDelta::FromSeconds(10));
|
|
|
| - HostContentSettingsMap* map = profile()->GetHostContentSettingsMap();
|
| + HostContentSettingsMap* map =
|
| + HostContentSettingsMapFactory::GetForProfile(profile());
|
| map->SetPrefClockForTesting(scoped_ptr<base::Clock>(test_clock));
|
|
|
| GURL requesting_frame_0("http://www.example.com/geolocation");
|
|
|