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

Unified Diff: chrome/browser/importer/importer_list.cc

Issue 22332003: Add option to import from bookmarks html file to "Import Bookmarks..." dialog. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rm debug code Created 7 years, 4 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/importer/importer_list.cc
diff --git a/chrome/browser/importer/importer_list.cc b/chrome/browser/importer/importer_list.cc
index 1863d4a46c9f34bd258cc55c423435099774a3d6..46382c557bcf9834f70cb5d0ce812efe0fd3d3d6 100644
--- a/chrome/browser/importer/importer_list.cc
+++ b/chrome/browser/importer/importer_list.cc
@@ -175,6 +175,14 @@ void ImporterList::DetectSourceProfilesWorker(const std::string& locale) {
#else
DetectFirefoxProfiles(locale, &profiles);
#endif
+ importer::SourceProfile* bookmarks_file = new importer::SourceProfile;
+ bookmarks_file->importer_name =
+ l10n_util::GetStringUTF16(IDS_IMPORT_FROM_BOOKMARKS_HTML_FILE);
+ bookmarks_file->importer_type = importer::TYPE_BOOKMARKS_FILE;
+ bookmarks_file->source_path.clear();
+ bookmarks_file->app_path.clear();
Ilya Sherman 2013/08/08 08:09:28 nit: These shouldn't be needed, as they ought to h
tfarina 2013/08/10 15:05:39 Done.
+ bookmarks_file->services_supported = importer::FAVORITES;
+ profiles.push_back(bookmarks_file);
// TODO(jhawkins): Remove this condition once DetectSourceProfilesHack is
// removed.

Powered by Google App Engine
This is Rietveld 408576698