| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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/views/uninstall_view.h" | 5 #include "chrome/browser/ui/views/uninstall_view.h" |
| 6 | 6 |
| 7 #include "base/message_loop/message_loop.h" | 7 #include "base/message_loop/message_loop.h" |
| 8 #include "base/process_util.h" | 8 #include "base/process/launch.h" |
| 9 #include "base/run_loop.h" | 9 #include "base/run_loop.h" |
| 10 #include "chrome/browser/browser_process.h" | 10 #include "chrome/browser/browser_process.h" |
| 11 #include "chrome/browser/shell_integration.h" | 11 #include "chrome/browser/shell_integration.h" |
| 12 #include "chrome/browser/ui/uninstall_browser_prompt.h" | 12 #include "chrome/browser/ui/uninstall_browser_prompt.h" |
| 13 #include "chrome/common/chrome_result_codes.h" | 13 #include "chrome/common/chrome_result_codes.h" |
| 14 #include "chrome/installer/util/browser_distribution.h" | 14 #include "chrome/installer/util/browser_distribution.h" |
| 15 #include "chrome/installer/util/shell_util.h" | 15 #include "chrome/installer/util/shell_util.h" |
| 16 #include "grit/chromium_strings.h" | 16 #include "grit/chromium_strings.h" |
| 17 #include "ui/base/l10n/l10n_util.h" | 17 #include "ui/base/l10n/l10n_util.h" |
| 18 #include "ui/views/controls/button/checkbox.h" | 18 #include "ui/views/controls/button/checkbox.h" |
| (...skipping 161 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 180 base::RunLoop run_loop(&accelerator_handler); | 180 base::RunLoop run_loop(&accelerator_handler); |
| 181 UninstallView* view = new UninstallView(&result, | 181 UninstallView* view = new UninstallView(&result, |
| 182 run_loop.QuitClosure(), | 182 run_loop.QuitClosure(), |
| 183 show_delete_profile); | 183 show_delete_profile); |
| 184 views::DialogDelegate::CreateDialogWidget(view, NULL, NULL)->Show(); | 184 views::DialogDelegate::CreateDialogWidget(view, NULL, NULL)->Show(); |
| 185 run_loop.Run(); | 185 run_loop.Run(); |
| 186 return result; | 186 return result; |
| 187 } | 187 } |
| 188 | 188 |
| 189 } // namespace chrome | 189 } // namespace chrome |
| OLD | NEW |