summaryrefslogtreecommitdiffstats
path: root/chrome/browser/browser_main.cc
diff options
context:
space:
mode:
authorpkasting@chromium.org <pkasting@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-01-08 19:12:47 +0000
committerpkasting@chromium.org <pkasting@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-01-08 19:12:47 +0000
commitc4ff495718e7b190229e863e3387c4e5f99475a9 (patch)
tree3d2aef85fe5590905f80e71687154c664b9c42c0 /chrome/browser/browser_main.cc
parent8348cb325bebf4d3516bd94949f5a4eb7c4056a9 (diff)
downloadchromium_src-c4ff495718e7b190229e863e3387c4e5f99475a9.zip
chromium_src-c4ff495718e7b190229e863e3387c4e5f99475a9.tar.gz
chromium_src-c4ff495718e7b190229e863e3387c4e5f99475a9.tar.bz2
Add autodetection of "intranet" redirection, for ISPs etc. that send typos and nonexistent addresses to custom pages, and plumb it to the code that puts up infobars when users type in a search that appears to be an intranet address, so we don't show these for erroneous cases.
BUG=31556 TEST=none Review URL: http://codereview.chromium.org/525079 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@35807 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/browser_main.cc')
-rw-r--r--chrome/browser/browser_main.cc20
1 files changed, 10 insertions, 10 deletions
diff --git a/chrome/browser/browser_main.cc b/chrome/browser/browser_main.cc
index c5e4484..995f625 100644
--- a/chrome/browser/browser_main.cc
+++ b/chrome/browser/browser_main.cc
@@ -1,4 +1,4 @@
-// Copyright (c) 2006-2009 The Chromium Authors. All rights reserved.
+// Copyright (c) 2010 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
@@ -797,19 +797,19 @@ int BrowserMain(const MainFunctionParams& parameters) {
RegisterMetadataURLRequestHandler();
// In unittest mode, this will do nothing. In normal mode, this will create
- // the global GoogleURLTracker instance, which will promptly go to sleep for
- // five seconds (to avoid slowing startup), and wake up afterwards to see if
- // it should do anything else. If we don't cause this creation now, it won't
- // happen until someone else asks for the tracker, at which point we may no
- // longer want to sleep for five seconds.
+ // the global GoogleURLTracker and IntranetRedirectDetector instances, which
+ // will promptly go to sleep for five and seven seconds, respectively (to
+ // avoid slowing startup), and wake up afterwards to see if they should do
+ // anything else.
//
// A simpler way of doing all this would be to have some function which could
- // give the time elapsed since startup, and simply have the tracker check that
- // when asked to initialize itself, but this doesn't seem to exist.
+ // give the time elapsed since startup, and simply have these objects check
+ // that when asked to initialize themselves, but this doesn't seem to exist.
//
- // This can't be created in the BrowserProcessImpl constructor because it
- // needs to read prefs that get set after that runs.
+ // These can't be created in the BrowserProcessImpl constructor because they
+ // need to read prefs that get set after that runs.
browser_process->google_url_tracker();
+ browser_process->intranet_redirect_detector();
// Have Chrome plugins write their data to the profile directory.
PluginService::GetInstance()->SetChromePluginDataDir(profile->GetPath());