| OLD | NEW |
| 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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 "app/l10n_util.h" | 5 #include "app/l10n_util.h" |
| 6 #include "base/file_util.h" | 6 #include "base/file_util.h" |
| 7 #include "base/string_util.h" | 7 #include "base/string_util.h" |
| 8 #include "base/utf_string_conversions.h" |
| 8 #include "chrome/browser/browser_list.h" | 9 #include "chrome/browser/browser_list.h" |
| 9 #include "chrome/browser/browser_window.h" | 10 #include "chrome/browser/browser_window.h" |
| 10 #include "chrome/browser/extensions/extension_install_ui.h" | 11 #include "chrome/browser/extensions/extension_install_ui.h" |
| 11 #include "chrome/common/extensions/extension.h" | 12 #include "chrome/common/extensions/extension.h" |
| 12 #include "grit/generated_resources.h" | 13 #include "grit/generated_resources.h" |
| 13 #include "views/controls/button/checkbox.h" | 14 #include "views/controls/button/checkbox.h" |
| 14 #include "views/controls/image_view.h" | 15 #include "views/controls/image_view.h" |
| 15 #include "views/controls/label.h" | 16 #include "views/controls/label.h" |
| 16 #include "views/controls/link.h" | 17 #include "views/controls/link.h" |
| 17 #include "views/standard_layout.h" | 18 #include "views/standard_layout.h" |
| (...skipping 189 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 207 if (!window) { | 208 if (!window) { |
| 208 delegate->InstallUIAbort(); | 209 delegate->InstallUIAbort(); |
| 209 return; | 210 return; |
| 210 } | 211 } |
| 211 | 212 |
| 212 views::Window::CreateChromeWindow(window->GetNativeHandle(), gfx::Rect(), | 213 views::Window::CreateChromeWindow(window->GetNativeHandle(), gfx::Rect(), |
| 213 new InstallDialogContent(delegate, extension, icon, | 214 new InstallDialogContent(delegate, extension, icon, |
| 214 UTF16ToWideHack(warning_text), | 215 UTF16ToWideHack(warning_text), |
| 215 type))->Show(); | 216 type))->Show(); |
| 216 } | 217 } |
| OLD | NEW |