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

Side by Side Diff: chrome/browser/views/options/content_settings_window_view.cc

Issue 1241006: Add Geolocation to the content types. This adds several special case guards s... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 10 years, 9 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/tab_contents/tab_contents.cc ('k') | chrome/common/content_settings_types.h » ('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) 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
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 }
OLDNEW
« no previous file with comments | « chrome/browser/tab_contents/tab_contents.cc ('k') | chrome/common/content_settings_types.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698