summaryrefslogtreecommitdiffstats
path: root/chrome/browser/browser_main.cc
diff options
context:
space:
mode:
authorjcampan@chromium.org <jcampan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-02-01 08:45:15 +0000
committerjcampan@chromium.org <jcampan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-02-01 08:45:15 +0000
commit7e0831b90c618af96931fcbd0908c4fd05ae0ec5 (patch)
tree6ae2ee1358ecb452ed7c06335ddd643ee47bc109 /chrome/browser/browser_main.cc
parent6db4b6c354f638cfe9beb849ca0ad0beb1bb4a8d (diff)
downloadchromium_src-7e0831b90c618af96931fcbd0908c4fd05ae0ec5.zip
chromium_src-7e0831b90c618af96931fcbd0908c4fd05ae0ec5.tar.gz
chromium_src-7e0831b90c618af96931fcbd0908c4fd05ae0ec5.tar.bz2
Relanding the hooking of the translate feature UI.
See http://codereview.chromium.org/549217 Review URL: http://codereview.chromium.org/558065 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@37688 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/browser_main.cc')
-rw-r--r--chrome/browser/browser_main.cc8
1 files changed, 8 insertions, 0 deletions
diff --git a/chrome/browser/browser_main.cc b/chrome/browser/browser_main.cc
index 42d2c14..a0ba774 100644
--- a/chrome/browser/browser_main.cc
+++ b/chrome/browser/browser_main.cc
@@ -46,6 +46,7 @@
#include "chrome/browser/profile_manager.h"
#include "chrome/browser/renderer_host/resource_dispatcher_host.h"
#include "chrome/browser/shell_integration.h"
+#include "chrome/browser/translate/translate_manager.h"
#include "chrome/browser/user_data_manager.h"
#include "chrome/common/chrome_constants.h"
#include "chrome/common/chrome_paths.h"
@@ -803,6 +804,13 @@ int BrowserMain(const MainFunctionParams& parameters) {
process_singleton.Create();
+#if defined(OS_WIN)
+ // Create the TranslateManager singleton.
+ // TODO(jcampan): enable on non Windows platforms when the info-bars are
+ // implemented.
+ Singleton<TranslateManager>::get();
+#endif
+
// Show the First Run UI if this is the first time Chrome has been run on
// this computer, or we're being compelled to do so by a command line flag.
// Note that this be done _after_ the PrefService is initialized and all