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

Side by Side Diff: chrome/browser/gtk/options/content_page_gtk.cc

Issue 2866012: Removed import data from other browsers button for ChromeOS.... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 10 years, 6 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 | « no previous file | no next file » | 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/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
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
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 }
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698