Chromium Code Reviews| Index: chrome/browser/chrome_browser_main.cc |
| diff --git a/chrome/browser/chrome_browser_main.cc b/chrome/browser/chrome_browser_main.cc |
| index 48e78ea8a92c668dd6211a47ed568f96ede7503c..b1cef215e9409a9ac67e2d9d83154cb00575924e 100644 |
| --- a/chrome/browser/chrome_browser_main.cc |
| +++ b/chrome/browser/chrome_browser_main.cc |
| @@ -190,12 +190,17 @@ |
| #if defined(ENABLE_EXTENSIONS) |
| #include "chrome/browser/extensions/startup_helper.h" |
| #include "extensions/browser/extension_protocols.h" |
| +#include "extensions/components/javascript_dialog_extensions_client/javascript_dialog_extension_client_impl.h" |
| #endif |
| #if defined(ENABLE_FULL_PRINTING) && !defined(OFFICIAL_BUILD) |
| #include "printing/printed_document.h" |
| #endif |
| +#if !defined(OS_IOS) |
|
Lei Zhang
2014/11/06 03:47:38
nit: Group the OS_FOO #ifdefs above the DISABLE/EN
oshima
2014/11/06 06:32:06
Done.
|
| +#include "chrome/browser/ui/app_modal_dialogs/chrome_javascript_native_dialog_factory.h" |
| +#endif |
| + |
| #if defined(ENABLE_RLZ) |
| #include "chrome/browser/rlz/rlz.h" |
| #endif |
| @@ -1061,6 +1066,14 @@ void ChromeBrowserMainParts::PreProfileInit() { |
| base::Bind(&ProfileManager::CleanUpStaleProfiles, profiles_to_delete)); |
| } |
| #endif // OS_ANDROID |
| + |
| +#if defined(ENABLE_EXTENSIONS) |
| + InstallJavaScriptDialogExtensionsClient(); |
| +#endif |
| + |
| +#if !defined(OS_IOS) |
| + InstallChromeJavaScriptNativeDialogFactory(); |
| +#endif |
| } |
| void ChromeBrowserMainParts::PostProfileInit() { |