| OLD | NEW |
| 1 // Copyright (c) 2010 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/content_setting_combo_model.h" | 5 #include "chrome/browser/ui/content_settings/content_setting_combo_model.h" |
| 6 | 6 |
| 7 #include "base/command_line.h" | 7 #include "base/command_line.h" |
| 8 #include "base/string16.h" | 8 #include "base/string16.h" |
| 9 #include "chrome/common/chrome_switches.h" | 9 #include "chrome/common/chrome_switches.h" |
| 10 #include "grit/generated_resources.h" | 10 #include "grit/generated_resources.h" |
| 11 #include "ui/base/l10n/l10n_util.h" | 11 #include "ui/base/l10n/l10n_util.h" |
| 12 | 12 |
| 13 namespace { | 13 namespace { |
| 14 | 14 |
| 15 // The settings shown in the combobox if show_session_ is false; | 15 // The settings shown in the combobox if show_session_ is false; |
| (...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 69 return kNoSessionSettings[index]; | 69 return kNoSessionSettings[index]; |
| 70 } | 70 } |
| 71 | 71 |
| 72 int ContentSettingComboModel::IndexForSetting(ContentSetting setting) { | 72 int ContentSettingComboModel::IndexForSetting(ContentSetting setting) { |
| 73 for (int i = 0; i < GetItemCount(); ++i) | 73 for (int i = 0; i < GetItemCount(); ++i) |
| 74 if (SettingForIndex(i) == setting) | 74 if (SettingForIndex(i) == setting) |
| 75 return i; | 75 return i; |
| 76 NOTREACHED(); | 76 NOTREACHED(); |
| 77 return 0; | 77 return 0; |
| 78 } | 78 } |
| 79 | |
| OLD | NEW |