| 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.h" | 7 #include "base/message_loop.h" |
| 8 #include "base/process_util.h" | 8 #include "base/process_util.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" |
| (...skipping 163 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 174 // this code can be called while the module refcount is still at 0. | 174 // this code can be called while the module refcount is still at 0. |
| 175 // Note that this reference is never released, as this code is shown on a path | 175 // Note that this reference is never released, as this code is shown on a path |
| 176 // that immediately exits Chrome anyway. | 176 // that immediately exits Chrome anyway. |
| 177 // See http://crbug.com/241366 for details. | 177 // See http://crbug.com/241366 for details. |
| 178 g_browser_process->AddRefModule(); | 178 g_browser_process->AddRefModule(); |
| 179 | 179 |
| 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::Widget::CreateWindow(view)->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 |