Chromium Code Reviews| Index: chrome/test/base/testing_profile.cc |
| =================================================================== |
| --- chrome/test/base/testing_profile.cc (revision 106059) |
| +++ chrome/test/base/testing_profile.cc (working copy) |
| @@ -26,7 +26,8 @@ |
| #include "chrome/browser/history/history_backend.h" |
| #include "chrome/browser/history/top_sites.h" |
| #include "chrome/browser/net/gaia/token_service.h" |
| -#include "chrome/browser/net/pref_proxy_config_service.h" |
| +#include "chrome/browser/net/pref_proxy_config_tracker.h" |
| +#include "chrome/browser/net/proxy_service_factory.h" |
| #include "chrome/browser/notifications/desktop_notification_service.h" |
| #include "chrome/browser/notifications/desktop_notification_service_factory.h" |
| #include "chrome/browser/prefs/browser_prefs.h" |
| @@ -62,6 +63,10 @@ |
| #include "webkit/quota/quota_manager.h" |
| #include "webkit/quota/mock_quota_manager.h" |
| +#if defined(OS_CHROMEOS) |
| +#include "chrome/browser/chromeos/proxy_config_service_impl.h" |
|
Mattias Nissler (ping if slow)
2011/10/24 10:18:28
needed?
kuan
2011/10/25 02:01:54
yes, else can't build.
|
| +#endif // defined(OS_CHROMEOS) |
| + |
| using base::Time; |
| using testing::NiceMock; |
| using testing::Return; |
| @@ -714,11 +719,12 @@ |
| last_selected_directory_ = path; |
| } |
| -PrefProxyConfigTracker* TestingProfile::GetProxyConfigTracker() { |
| - if (!pref_proxy_config_tracker_) |
| - pref_proxy_config_tracker_ = new PrefProxyConfigTracker(GetPrefs()); |
| - |
| - return pref_proxy_config_tracker_; |
| +PrefProxyConfigTrackerType* TestingProfile::GetProxyConfigTracker() { |
| + if (!pref_proxy_config_tracker_.get()) { |
| + pref_proxy_config_tracker_.reset( |
| + ProxyServiceFactory::CreatePrefProxyConfigTracker(GetPrefs())); |
| + } |
| + return pref_proxy_config_tracker_.get(); |
| } |
| void TestingProfile::BlockUntilHistoryProcessesPendingRequests() { |