| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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/string16.h" | 9 #include "base/string16.h" |
| 10 #include "base/utf_string_conversions.h" | 10 #include "base/utf_string_conversions.h" |
| 11 #include "chrome/browser/shell_integration.h" | 11 #include "chrome/browser/shell_integration.h" |
| 12 #include "chrome/common/chrome_result_codes.h" | 12 #include "chrome/common/chrome_result_codes.h" |
| 13 #include "chrome/installer/util/browser_distribution.h" | 13 #include "chrome/installer/util/browser_distribution.h" |
| 14 #include "chrome/installer/util/shell_util.h" | 14 #include "chrome/installer/util/shell_util.h" |
| 15 #include "grit/chromium_strings.h" | 15 #include "grit/chromium_strings.h" |
| 16 #include "ui/base/l10n/l10n_util.h" | 16 #include "ui/base/l10n/l10n_util.h" |
| 17 #include "ui/views/layout/grid_layout.h" |
| 18 #include "ui/views/layout/layout_constants.h" |
| 17 #include "views/controls/button/checkbox.h" | 19 #include "views/controls/button/checkbox.h" |
| 18 #include "views/controls/label.h" | 20 #include "views/controls/label.h" |
| 19 #include "views/layout/grid_layout.h" | |
| 20 #include "views/layout/layout_constants.h" | |
| 21 | 21 |
| 22 UninstallView::UninstallView(int* user_selection) | 22 UninstallView::UninstallView(int* user_selection) |
| 23 : confirm_label_(NULL), | 23 : confirm_label_(NULL), |
| 24 delete_profile_(NULL), | 24 delete_profile_(NULL), |
| 25 change_default_browser_(NULL), | 25 change_default_browser_(NULL), |
| 26 browsers_combo_(NULL), | 26 browsers_combo_(NULL), |
| 27 browsers_(NULL), | 27 browsers_(NULL), |
| 28 user_selection_(*user_selection) { | 28 user_selection_(*user_selection) { |
| 29 SetupControls(); | 29 SetupControls(); |
| 30 } | 30 } |
| (...skipping 114 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 145 DCHECK(!browsers_->empty()); | 145 DCHECK(!browsers_->empty()); |
| 146 return browsers_->size(); | 146 return browsers_->size(); |
| 147 } | 147 } |
| 148 | 148 |
| 149 string16 UninstallView::GetItemAt(int index) { | 149 string16 UninstallView::GetItemAt(int index) { |
| 150 DCHECK_LT(index, static_cast<int>(browsers_->size())); | 150 DCHECK_LT(index, static_cast<int>(browsers_->size())); |
| 151 BrowsersMap::const_iterator it = browsers_->begin(); | 151 BrowsersMap::const_iterator it = browsers_->begin(); |
| 152 std::advance(it, index); | 152 std::advance(it, index); |
| 153 return WideToUTF16Hack((*it).first); | 153 return WideToUTF16Hack((*it).first); |
| 154 } | 154 } |
| OLD | NEW |