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

Unified Diff: chrome/browser/ui/webui/settings/settings_import_data_handler.cc

Issue 2727813002: Options/MD Settings: use new prefs to drive import data dialog (Closed)
Patch Set: pastarmovj@ review Created 3 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/browser/ui/webui/settings/md_settings_ui.cc ('k') | chrome/common/pref_names.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/webui/settings/settings_import_data_handler.cc
diff --git a/chrome/browser/ui/webui/settings/settings_import_data_handler.cc b/chrome/browser/ui/webui/settings/settings_import_data_handler.cc
index ced4cd230ecb22c4216be71dbd58e8e1e3e257d6..3781457b82816658833ac823836fd6c5546c87d2 100644
--- a/chrome/browser/ui/webui/settings/settings_import_data_handler.cc
+++ b/chrome/browser/ui/webui/settings/settings_import_data_handler.cc
@@ -118,15 +118,15 @@ void ImportDataHandler::ImportData(const base::ListValue* args) {
PrefService* prefs = Profile::FromWebUI(web_ui())->GetPrefs();
uint16_t selected_items = importer::NONE;
- if (prefs->GetBoolean(prefs::kImportAutofillFormData))
+ if (prefs->GetBoolean(prefs::kImportDialogAutofillFormData))
selected_items |= importer::AUTOFILL_FORM_DATA;
- if (prefs->GetBoolean(prefs::kImportBookmarks))
+ if (prefs->GetBoolean(prefs::kImportDialogBookmarks))
selected_items |= importer::FAVORITES;
- if (prefs->GetBoolean(prefs::kImportHistory))
+ if (prefs->GetBoolean(prefs::kImportDialogHistory))
selected_items |= importer::HISTORY;
- if (prefs->GetBoolean(prefs::kImportSavedPasswords))
+ if (prefs->GetBoolean(prefs::kImportDialogSavedPasswords))
selected_items |= importer::PASSWORDS;
- if (prefs->GetBoolean(prefs::kImportSearchEngine))
+ if (prefs->GetBoolean(prefs::kImportDialogSearchEngine))
selected_items |= importer::SEARCH_ENGINES;
const importer::SourceProfile& source_profile =
« no previous file with comments | « chrome/browser/ui/webui/settings/md_settings_ui.cc ('k') | chrome/common/pref_names.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698