OLD | NEW |
1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2009 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/views/uninstall_dialog.h" | 5 #include "chrome/browser/views/uninstall_dialog.h" |
6 | 6 |
| 7 #include "app/l10n_util.h" |
7 #include "base/message_loop.h" | 8 #include "base/message_loop.h" |
8 #include "chrome/common/l10n_util.h" | |
9 #include "chrome/common/result_codes.h" | 9 #include "chrome/common/result_codes.h" |
10 #include "chrome/common/message_box_flags.h" | 10 #include "chrome/common/message_box_flags.h" |
11 #include "chrome/views/controls/message_box_view.h" | 11 #include "chrome/views/controls/message_box_view.h" |
12 #include "chrome/views/window/window.h" | 12 #include "chrome/views/window/window.h" |
13 #include "grit/chromium_strings.h" | 13 #include "grit/chromium_strings.h" |
14 | 14 |
15 // static | 15 // static |
16 void UninstallDialog::ShowUninstallDialog(int& user_selection) { | 16 void UninstallDialog::ShowUninstallDialog(int& user_selection) { |
17 // When the window closes, it will delete itself. | 17 // When the window closes, it will delete itself. |
18 new UninstallDialog(user_selection); | 18 new UninstallDialog(user_selection); |
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
52 std::wstring()); | 52 std::wstring()); |
53 message_box_view_->SetCheckBoxLabel( | 53 message_box_view_->SetCheckBoxLabel( |
54 l10n_util::GetString(IDS_UNINSTALL_DELETE_PROFILE)); | 54 l10n_util::GetString(IDS_UNINSTALL_DELETE_PROFILE)); |
55 message_box_view_->SetCheckBoxSelected(false); | 55 message_box_view_->SetCheckBoxSelected(false); |
56 views::Window::CreateChromeWindow(NULL, gfx::Rect(), this)->Show(); | 56 views::Window::CreateChromeWindow(NULL, gfx::Rect(), this)->Show(); |
57 } | 57 } |
58 | 58 |
59 UninstallDialog::~UninstallDialog() { | 59 UninstallDialog::~UninstallDialog() { |
60 MessageLoop::current()->Quit(); | 60 MessageLoop::current()->Quit(); |
61 } | 61 } |
62 | |
63 | |
OLD | NEW |