| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "chrome/browser/ui/app_modal_dialogs/chrome_javascript_native_dialog_fa
ctory.h" | 5 #include "chrome/browser/ui/app_modal_dialogs/chrome_javascript_native_dialog_fa
ctory.h" |
| 6 | 6 |
| 7 #include "components/app_modal_dialogs/javascript_dialog_manager.h" | 7 #include "components/app_modal_dialogs/javascript_dialog_manager.h" |
| 8 #include "components/app_modal_dialogs/javascript_native_dialog_factory.h" | 8 #include "components/app_modal_dialogs/javascript_native_dialog_factory.h" |
| 9 #include "components/constrained_window/constrained_window_views.h" | 9 #include "components/constrained_window/constrained_window_views.h" |
| 10 | 10 |
| (...skipping 24 matching lines...) Expand all Loading... |
| 35 CreateBrowserModalDialogViews(d, parent_window); | 35 CreateBrowserModalDialogViews(d, parent_window); |
| 36 return d; | 36 return d; |
| 37 } | 37 } |
| 38 | 38 |
| 39 DISALLOW_COPY_AND_ASSIGN(ChromeJavaScriptNativeDialogViewsFactory); | 39 DISALLOW_COPY_AND_ASSIGN(ChromeJavaScriptNativeDialogViewsFactory); |
| 40 }; | 40 }; |
| 41 | 41 |
| 42 } // namespace | 42 } // namespace |
| 43 | 43 |
| 44 void InstallChromeJavaScriptNativeDialogFactory() { | 44 void InstallChromeJavaScriptNativeDialogFactory() { |
| 45 SetJavaScriptNativeDialogFactory( | 45 JavaScriptDialogManager::GetInstance()->SetNativeDialogFactory( |
| 46 make_scoped_ptr(new ChromeJavaScriptNativeDialogViewsFactory)); | 46 make_scoped_ptr(new ChromeJavaScriptNativeDialogViewsFactory)); |
| 47 } | 47 } |
| OLD | NEW |