-
Notifications
You must be signed in to change notification settings - Fork 869
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Makes all supported import service available always.
- Loading branch information
Showing
5 changed files
with
42 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
/* Copyright 2020 The Brave Authors. All rights reserved. | ||
* This Source Code Form is subject to the terms of the Mozilla Public | ||
* License, v. 2.0. If a copy of the MPL was not distributed with this file, | ||
* You can obtain one at http://mozilla.org/MPL/2.0/. */ | ||
|
||
// Can't avoid this injection because this code should be surrounded by | ||
// ImporterBridge::NotifyStarted() and NotifyEnded() with other import logic. | ||
#define BRAVE_START_IMPORT \ | ||
if ((items & importer::HISTORY) && !cancelled()) { \ | ||
bridge_->NotifyItemStarted(importer::HISTORY); \ | ||
ImportHistory(); \ | ||
bridge_->NotifyItemEnded(importer::HISTORY); \ | ||
} | ||
|
||
#include "../../../../../chrome/utility/importer/safari_importer.mm" | ||
|
||
#undef BRAVE_START_IMPORT | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
diff --git a/chrome/utility/importer/safari_importer.mm b/chrome/utility/importer/safari_importer.mm | ||
index a83d19200f9b73f3adb22db0005891ab80d3dc80..7943f958997afe14390df7ceb77e95ade3385b5d 100644 | ||
--- a/chrome/utility/importer/safari_importer.mm | ||
+++ b/chrome/utility/importer/safari_importer.mm | ||
@@ -47,6 +47,7 @@ void SafariImporter::StartImport(const importer::SourceProfile& source_profile, | ||
ImportBookmarks(); | ||
bridge_->NotifyItemEnded(importer::FAVORITES); | ||
} | ||
+ BRAVE_START_IMPORT | ||
|
||
bridge_->NotifyEnded(); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters