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

Unified Diff: chrome/browser/ui/webui/options/import_data_handler.cc

Issue 24345002: Do not add "Bookmarks File" to ImporterList. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 3 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
Index: chrome/browser/ui/webui/options/import_data_handler.cc
diff --git a/chrome/browser/ui/webui/options/import_data_handler.cc b/chrome/browser/ui/webui/options/import_data_handler.cc
index c87759f0eaf0c682e213c56ee50150d8c03db29e..4f338e674612282f91c45cf6b66333af4a64443d 100644
--- a/chrome/browser/ui/webui/options/import_data_handler.cc
+++ b/chrome/browser/ui/webui/options/import_data_handler.cc
@@ -185,6 +185,17 @@ void ImportDataHandler::InitializePage() {
browser_profiles.Append(browser_profile);
}
+ DictionaryValue* bookmarks_profile = new DictionaryValue();
+ bookmarks_profile->SetString(
+ "name", l10n_util::GetStringUTF16(IDS_IMPORT_FROM_BOOKMARKS_HTML_FILE));
+ bookmarks_profile->SetInteger("index", browser_profiles.GetSize());
+ bookmarks_profile->SetBoolean("history", false);
+ bookmarks_profile->SetBoolean("favorites", true);
+ bookmarks_profile->SetBoolean("passwords", false);
+ bookmarks_profile->SetBoolean("search", false);
+ bookmarks_profile->SetBoolean("show_bottom_bar", false);
+ browser_profiles.Append(bookmarks_profile);
+
web_ui()->CallJavascriptFunction("ImportDataOverlay.updateSupportedBrowsers",
browser_profiles);
}
« chrome/browser/importer/importer_list.cc ('K') | « chrome/browser/importer/importer_list.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698