| OLD | NEW |
| 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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/content_settings_window_view.h" | 5 #include "chrome/browser/views/options/content_settings_window_view.h" |
| 6 | 6 |
| 7 #include "app/l10n_util.h" | 7 #include "app/l10n_util.h" |
| 8 #include "app/resource_bundle.h" | 8 #include "app/resource_bundle.h" |
| 9 #include "chrome/browser/browser_process.h" | 9 #include "chrome/browser/browser_process.h" |
| 10 #include "chrome/browser/pref_service.h" | 10 #include "chrome/browser/pref_service.h" |
| (...skipping 151 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 162 tabs_->AddTabAtIndex(tab_index++, | 162 tabs_->AddTabAtIndex(tab_index++, |
| 163 l10n_util::GetString(IDS_PLUGIN_TAB_LABEL), | 163 l10n_util::GetString(IDS_PLUGIN_TAB_LABEL), |
| 164 plugin_page, false); | 164 plugin_page, false); |
| 165 | 165 |
| 166 ContentFilterPageView* popup_page = | 166 ContentFilterPageView* popup_page = |
| 167 new ContentFilterPageView(profile_, CONTENT_SETTINGS_TYPE_POPUPS); | 167 new ContentFilterPageView(profile_, CONTENT_SETTINGS_TYPE_POPUPS); |
| 168 tabs_->AddTabAtIndex(tab_index++, | 168 tabs_->AddTabAtIndex(tab_index++, |
| 169 l10n_util::GetString(IDS_POPUP_TAB_LABEL), | 169 l10n_util::GetString(IDS_POPUP_TAB_LABEL), |
| 170 popup_page, false); | 170 popup_page, false); |
| 171 | 171 |
| 172 DCHECK_EQ(tabs_->GetTabCount(), CONTENT_SETTINGS_NUM_TYPES); | 172 // TODO(joth): remove -1 when geolocation tab is added. |
| 173 DCHECK_EQ(tabs_->GetTabCount(), CONTENT_SETTINGS_NUM_TYPES - 1); |
| 173 } | 174 } |
| 174 | 175 |
| 175 const OptionsPageView* | 176 const OptionsPageView* |
| 176 ContentSettingsWindowView::GetCurrentContentSettingsTabView() const { | 177 ContentSettingsWindowView::GetCurrentContentSettingsTabView() const { |
| 177 return static_cast<OptionsPageView*>(tabs_->GetSelectedTab()); | 178 return static_cast<OptionsPageView*>(tabs_->GetSelectedTab()); |
| 178 } | 179 } |
| OLD | NEW |