diff options
Diffstat (limited to 'chrome/browser/views/options')
-rw-r--r-- | chrome/browser/views/options/content_page_view.cc | 12 | ||||
-rw-r--r-- | chrome/browser/views/options/content_page_view.h | 1 |
2 files changed, 13 insertions, 0 deletions
diff --git a/chrome/browser/views/options/content_page_view.cc b/chrome/browser/views/options/content_page_view.cc index 774b0fe..541a362 100644 --- a/chrome/browser/views/options/content_page_view.cc +++ b/chrome/browser/views/options/content_page_view.cc @@ -71,6 +71,7 @@ ContentPageView::ContentPageView(Profile* profile) sync_status_label_(NULL), sync_start_stop_button_(NULL), sync_customize_button_(NULL), + privacy_dashboard_link_(NULL), sync_service_(NULL), OptionsPageView(profile) { if (profile->GetProfileSyncService()) { @@ -160,6 +161,10 @@ void ContentPageView::LinkActivated(views::Link* source, int event_flags) { sync_service_->ShowLoginDialog(GetWindow()->GetNativeWindow()); return; } + if (source == privacy_dashboard_link_) { + BrowserList::GetLastActive()->OpenPrivacyDashboardTabAndActivate(); + return; + } NOTREACHED() << "Invalid link source."; } @@ -409,6 +414,12 @@ void ContentPageView::InitSyncGroup() { sync_action_link_->set_collapse_when_hidden(true); sync_action_link_->SetController(this); + privacy_dashboard_link_ = new views::Link(); + privacy_dashboard_link_->set_collapse_when_hidden(true); + privacy_dashboard_link_->SetController(this); + privacy_dashboard_link_->SetText( + l10n_util::GetString(IDS_SYNC_PRIVACY_DASHBOARD_LINK_LABEL)); + sync_start_stop_button_ = new views::NativeButton(this, std::wstring()); sync_customize_button_ = new views::NativeButton(this, std::wstring()); @@ -438,6 +449,7 @@ void ContentPageView::InitSyncGroup() { layout->AddView(sync_customize_button_); layout->AddPaddingRow(0, kRelatedControlVerticalSpacing); layout->StartRow(0, single_column_view_set_id); + layout->AddView(privacy_dashboard_link_, 3, 1); sync_group_ = new OptionsGroupView(contents, l10n_util::GetString(IDS_SYNC_OPTIONS_GROUP_NAME), std::wstring(), true); diff --git a/chrome/browser/views/options/content_page_view.h b/chrome/browser/views/options/content_page_view.h index 7f19bdd..181f8a1 100644 --- a/chrome/browser/views/options/content_page_view.h +++ b/chrome/browser/views/options/content_page_view.h @@ -101,6 +101,7 @@ class ContentPageView : public OptionsPageView, views::Link* sync_action_link_; views::NativeButton* sync_start_stop_button_; views::NativeButton* sync_customize_button_; + views::Link* privacy_dashboard_link_; BooleanPrefMember ask_to_save_passwords_; BooleanPrefMember form_autofill_enabled_; |