Index: chrome/browser/net/prediction_options.cc |
diff --git a/chrome/browser/net/prediction_options.cc b/chrome/browser/net/prediction_options.cc |
index 53769cf3c7eab65f9ffe60e18733a1298112e8a1..b881902a24fa38a5be840d1a0ec6ef1e2eb13718 100644 |
--- a/chrome/browser/net/prediction_options.cc |
+++ b/chrome/browser/net/prediction_options.cc |
@@ -6,12 +6,10 @@ |
#include "base/logging.h" |
#include "base/prefs/pref_service.h" |
-#include "chrome/browser/net/predictor.h" |
#include "chrome/browser/profiles/profile_io_data.h" |
#include "chrome/common/pref_names.h" |
#include "components/pref_registry/pref_registry_syncable.h" |
#include "content/public/browser/browser_thread.h" |
-#include "net/base/network_change_notifier.h" |
namespace { |
@@ -47,11 +45,10 @@ void RegisterPredictionOptionsProfilePrefs( |
user_prefs::PrefRegistrySyncable::SYNCABLE_PREF); |
} |
-bool CanPredictNetworkActionsIO(content::ResourceContext* resource_context) { |
+bool CanPredictNetworkActionsIO(ProfileIOData* io_data) { |
DCHECK(content::BrowserThread::CurrentlyOn(content::BrowserThread::IO)); |
- DCHECK(resource_context); |
+ DCHECK(io_data); |
- ProfileIOData* io_data = ProfileIOData::FromResourceContext(resource_context); |
return CanPredictNetworkActions( |
io_data->network_prediction_options()->GetValue(), |
io_data->network_prediction_enabled()->GetValue()); |