| Index: chrome/browser/ui/browser_init.cc
|
| ===================================================================
|
| --- chrome/browser/ui/browser_init.cc (revision 96009)
|
| +++ chrome/browser/ui/browser_init.cc (working copy)
|
| @@ -28,7 +28,7 @@
|
| #include "chrome/browser/extensions/extension_service.h"
|
| #include "chrome/browser/extensions/pack_extension_job.h"
|
| #include "chrome/browser/first_run/first_run.h"
|
| -#include "chrome/browser/net/predictor_api.h"
|
| +#include "chrome/browser/net/predictor.h"
|
| #include "chrome/browser/net/url_fixer_upper.h"
|
| #include "chrome/browser/notifications/desktop_notification_service.h"
|
| #include "chrome/browser/prefs/incognito_mode_prefs.h"
|
| @@ -650,8 +650,10 @@
|
|
|
| if (command_line_.HasSwitch(switches::kDnsLogDetails))
|
| chrome_browser_net::EnablePredictorDetailedLog(true);
|
| - if (command_line_.HasSwitch(switches::kDnsPrefetchDisable))
|
| - chrome_browser_net::EnablePredictor(false);
|
| + if (command_line_.HasSwitch(switches::kDnsPrefetchDisable)) {
|
| + if (profile->GetNetworkPredictor())
|
| + profile->GetNetworkPredictor()->EnablePredictor(false);
|
| + }
|
|
|
| if (command_line_.HasSwitch(switches::kDumpHistogramsOnExit))
|
| base::StatisticsRecorder::set_dump_on_exit(true);
|
|
|