OLD | NEW |
1 // Copyright (c) 2009 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/views/options/exceptions_page_view.h" | 5 #include "chrome/browser/ui/views/options/exceptions_page_view.h" |
6 | 6 |
7 #include "app/l10n_util.h" | 7 #include "app/l10n_util.h" |
8 #include "base/string_util.h" | 8 #include "base/string_util.h" |
9 #include "base/utf_string_conversions.h" | 9 #include "base/utf_string_conversions.h" |
10 #include "chrome/browser/prefs/pref_service.h" | 10 #include "chrome/browser/prefs/pref_service.h" |
11 #include "chrome/browser/profiles/profile.h" | 11 #include "chrome/browser/profiles/profile.h" |
12 #include "chrome/common/pref_names.h" | 12 #include "chrome/common/pref_names.h" |
13 #include "grit/generated_resources.h" | 13 #include "grit/generated_resources.h" |
14 #include "views/background.h" | 14 #include "views/background.h" |
15 #include "views/controls/button/native_button.h" | 15 #include "views/controls/button/native_button.h" |
(...skipping 172 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
188 columns.back().sortable = true; | 188 columns.back().sortable = true; |
189 table_view_ = new views::TableView(&table_model_, columns, views::TEXT_ONLY, | 189 table_view_ = new views::TableView(&table_model_, columns, views::TEXT_ONLY, |
190 true, true, true); | 190 true, true, true); |
191 // Make the table initially sorted by host. | 191 // Make the table initially sorted by host. |
192 views::TableView::SortDescriptors sort; | 192 views::TableView::SortDescriptors sort; |
193 sort.push_back(views::TableView::SortDescriptor( | 193 sort.push_back(views::TableView::SortDescriptor( |
194 IDS_PASSWORDS_PAGE_VIEW_SITE_COLUMN, true)); | 194 IDS_PASSWORDS_PAGE_VIEW_SITE_COLUMN, true)); |
195 table_view_->SetSortDescriptors(sort); | 195 table_view_->SetSortDescriptors(sort); |
196 table_view_->SetObserver(this); | 196 table_view_->SetObserver(this); |
197 } | 197 } |
OLD | NEW |