Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(470)

Side by Side Diff: chrome/browser/ui/views/uninstall_view.cc

Issue 6257017: views: Move standard_layout.h into the layout directory. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix win Created 9 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « chrome/browser/ui/views/task_manager_view.cc ('k') | chrome/browser/ui/views/url_picker.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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/result_codes.h" 12 #include "chrome/common/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 "ui/base/l10n/l10n_util.h" 16 #include "ui/base/l10n/l10n_util.h"
16 #include "views/controls/button/checkbox.h" 17 #include "views/controls/button/checkbox.h"
17 #include "views/controls/label.h" 18 #include "views/controls/label.h"
18 #include "views/standard_layout.h" 19 #include "views/grid_layout.h"
19 20 #include "views/layout/layout_constants.h"
20 #include "grit/chromium_strings.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
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(index < (int) browsers_->size()); 150 DCHECK(index < (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 }
OLDNEW
« no previous file with comments | « chrome/browser/ui/views/task_manager_view.cc ('k') | chrome/browser/ui/views/url_picker.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698