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

Unified Diff: chrome/utility/importer/bookmarks_file_importer.cc

Issue 23449036: importer: Allow user to import some missing URLS. (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
« no previous file with comments | « no previous file | chrome/utility/importer/bookmarks_file_importer_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/utility/importer/bookmarks_file_importer.cc
diff --git a/chrome/utility/importer/bookmarks_file_importer.cc b/chrome/utility/importer/bookmarks_file_importer.cc
index ff888a376670be8eed68b7d16d748d8287d6732d..097b09d5f569ee2ca4c4fb73c9988066f7995de0 100644
--- a/chrome/utility/importer/bookmarks_file_importer.cc
+++ b/chrome/utility/importer/bookmarks_file_importer.cc
@@ -47,6 +47,10 @@ bool CanImportURL(const GURL& url) {
// that we support.
if (url.SchemeIs(chrome::kChromeUIScheme) ||
url.SchemeIs(chrome::kAboutScheme)) {
+ if (url.host() == chrome::kChromeUIUberHost ||
+ url.host() == chrome::kChromeUIAboutHost)
+ return true;
+
GURL fixed_url(URLFixerUpper::FixupURL(url.spec(), std::string()));
for (size_t i = 0; i < chrome::kNumberOfChromeHostURLs; ++i) {
if (fixed_url.DomainIs(chrome::kChromeHostURLs[i]))
« no previous file with comments | « no previous file | chrome/utility/importer/bookmarks_file_importer_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698