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/gtk/options/content_page_gtk.h" | 5 #include "chrome/browser/gtk/options/content_page_gtk.h" |
6 | 6 |
7 #include <string> | 7 #include <string> |
8 | 8 |
9 #include "app/gtk_util.h" | 9 #include "app/gtk_util.h" |
10 #include "app/l10n_util.h" | 10 #include "app/l10n_util.h" |
(...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
95 InitSyncGroup(), false); | 95 InitSyncGroup(), false); |
96 UpdateSyncControls(); | 96 UpdateSyncControls(); |
97 } | 97 } |
98 | 98 |
99 options_builder->AddOptionGroup( | 99 options_builder->AddOptionGroup( |
100 l10n_util::GetStringUTF8(IDS_OPTIONS_PASSWORDS_GROUP_NAME), | 100 l10n_util::GetStringUTF8(IDS_OPTIONS_PASSWORDS_GROUP_NAME), |
101 InitPasswordSavingGroup(), false); | 101 InitPasswordSavingGroup(), false); |
102 options_builder->AddOptionGroup( | 102 options_builder->AddOptionGroup( |
103 l10n_util::GetStringUTF8(IDS_AUTOFILL_SETTING_WINDOWS_GROUP_NAME), | 103 l10n_util::GetStringUTF8(IDS_AUTOFILL_SETTING_WINDOWS_GROUP_NAME), |
104 InitFormAutoFillGroup(), false); | 104 InitFormAutoFillGroup(), false); |
| 105 #if !defined(OS_CHROMEOS) |
105 options_builder->AddOptionGroup( | 106 options_builder->AddOptionGroup( |
106 l10n_util::GetStringUTF8(IDS_OPTIONS_BROWSING_DATA_GROUP_NAME), | 107 l10n_util::GetStringUTF8(IDS_OPTIONS_BROWSING_DATA_GROUP_NAME), |
107 InitBrowsingDataGroup(), false); | 108 InitBrowsingDataGroup(), false); |
| 109 #endif |
108 options_builder->AddOptionGroup( | 110 options_builder->AddOptionGroup( |
109 l10n_util::GetStringUTF8(IDS_APPEARANCE_GROUP_NAME), | 111 l10n_util::GetStringUTF8(IDS_APPEARANCE_GROUP_NAME), |
110 InitThemesGroup(), false); | 112 InitThemesGroup(), false); |
111 page_ = options_builder->get_page_widget(); | 113 page_ = options_builder->get_page_widget(); |
112 | 114 |
113 // Add preferences observers. | 115 // Add preferences observers. |
114 ask_to_save_passwords_.Init(prefs::kPasswordManagerEnabled, | 116 ask_to_save_passwords_.Init(prefs::kPasswordManagerEnabled, |
115 profile->GetPrefs(), this); | 117 profile->GetPrefs(), this); |
116 enable_form_autofill_.Init(prefs::kAutoFillEnabled, | 118 enable_form_autofill_.Init(prefs::kAutoFillEnabled, |
117 profile->GetPrefs(), this); | 119 profile->GetPrefs(), this); |
(...skipping 493 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
611 sync_service_->ShowLoginDialog(); | 613 sync_service_->ShowLoginDialog(); |
612 } | 614 } |
613 | 615 |
614 void ContentPageGtk::OnStopSyncDialogResponse(GtkWidget* widget, int response) { | 616 void ContentPageGtk::OnStopSyncDialogResponse(GtkWidget* widget, int response) { |
615 if (response == GTK_RESPONSE_ACCEPT) { | 617 if (response == GTK_RESPONSE_ACCEPT) { |
616 sync_service_->DisableForUser(); | 618 sync_service_->DisableForUser(); |
617 ProfileSyncService::SyncEvent(ProfileSyncService::STOP_FROM_OPTIONS); | 619 ProfileSyncService::SyncEvent(ProfileSyncService::STOP_FROM_OPTIONS); |
618 } | 620 } |
619 gtk_widget_destroy(widget); | 621 gtk_widget_destroy(widget); |
620 } | 622 } |
OLD | NEW |