summaryrefslogtreecommitdiffstats
path: root/chrome/browser/views
diff options
context:
space:
mode:
authormunjal@chromium.org <munjal@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2008-12-05 20:02:03 +0000
committermunjal@chromium.org <munjal@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2008-12-05 20:02:03 +0000
commit52d96989ad2e04a03054612a01756bb77325e012 (patch)
treea348ddf03e44d02786b9c545a97050563756865f /chrome/browser/views
parent02ca9ed3f3240658cf5ab6b6ae219f737f51e8f0 (diff)
downloadchromium_src-52d96989ad2e04a03054612a01756bb77325e012.zip
chromium_src-52d96989ad2e04a03054612a01756bb77325e012.tar.gz
chromium_src-52d96989ad2e04a03054612a01756bb77325e012.tar.bz2
UserData Options tab
Plumbing for User Data tab in Options dialog. Review URL: http://codereview.chromium.org/13150 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@6442 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/views')
-rw-r--r--chrome/browser/views/options/options_window_view.cc20
1 files changed, 17 insertions, 3 deletions
diff --git a/chrome/browser/views/options/options_window_view.cc b/chrome/browser/views/options/options_window_view.cc
index cb4e05b..5b23707 100644
--- a/chrome/browser/views/options/options_window_view.cc
+++ b/chrome/browser/views/options/options_window_view.cc
@@ -15,6 +15,9 @@
#include "chrome/common/pref_names.h"
#include "chrome/common/pref_service.h"
#include "chrome/common/resource_bundle.h"
+#ifdef CHROME_PERSONALIZATION
+#include "chrome/personalization/views/user_data_page_view.h"
+#endif
#include "chrome/views/dialog_delegate.h"
#include "chrome/views/tabbed_pane.h"
#include "chrome/views/root_view.h"
@@ -183,16 +186,27 @@ void OptionsWindowView::Init() {
tabs_->SetListener(this);
AddChildView(tabs_);
+ int tab_index = 0;
GeneralPageView* general_page = new GeneralPageView(profile_);
- tabs_->AddTabAtIndex(0, l10n_util::GetString(IDS_OPTIONS_GENERAL_TAB_LABEL),
+ tabs_->AddTabAtIndex(tab_index++,
+ l10n_util::GetString(IDS_OPTIONS_GENERAL_TAB_LABEL),
general_page, false);
ContentPageView* content_page = new ContentPageView(profile_);
- tabs_->AddTabAtIndex(1, l10n_util::GetString(IDS_OPTIONS_CONTENT_TAB_LABEL),
+ tabs_->AddTabAtIndex(tab_index++,
+ l10n_util::GetString(IDS_OPTIONS_CONTENT_TAB_LABEL),
content_page, false);
+#ifdef CHROME_PERSONALIZATION
+ UserDataPageView* user_data_page = new UserDataPageView(profile_);
+ tabs_->AddTabAtIndex(tab_index++,
+ l10n_util::GetString(IDS_OPTIONS_USER_DATA_TAB_LABEL),
+ user_data_page, false);
+#endif
+
AdvancedPageView* advanced_page = new AdvancedPageView(profile_);
- tabs_->AddTabAtIndex(2, l10n_util::GetString(IDS_OPTIONS_ADVANCED_TAB_LABEL),
+ tabs_->AddTabAtIndex(tab_index++,
+ l10n_util::GetString(IDS_OPTIONS_ADVANCED_TAB_LABEL),
advanced_page, false);
DCHECK(tabs_->GetTabCount() == OPTIONS_PAGE_COUNT);