Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(535)

Unified Diff: chrome/browser/chrome_browser_main.cc

Issue 666533007: Move JavaScriptDialogManager, JavascriptAppModalDialogViews to components/app_modal_dialogs (Closed) Base URL: https://chromium.googlesource.com/chromium/src@master
Patch Set: Created 6 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: chrome/browser/chrome_browser_main.cc
diff --git a/chrome/browser/chrome_browser_main.cc b/chrome/browser/chrome_browser_main.cc
index 6ab5340fc15c65e8b1683dcbaadd3f2439c3e8b8..968c34d5142646411f5637e5a0a64db25e0efe7c 100644
--- a/chrome/browser/chrome_browser_main.cc
+++ b/chrome/browser/chrome_browser_main.cc
@@ -182,6 +182,10 @@
#include "chrome/browser/mac/keystone_glue.h"
#endif
+#if !defined(OS_IOS)
+#include "chrome/browser/ui/app_modal_dialogs/chrome_javascript_native_dialog_factory.h"
+#endif
+
#if !defined(DISABLE_NACL)
#include "chrome/browser/component_updater/pnacl/pnacl_component_installer.h"
#include "components/nacl/browser/nacl_process_host.h"
@@ -190,6 +194,7 @@
#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)
@@ -1060,6 +1065,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() {

Powered by Google App Engine
This is Rietveld 408576698