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

Unified Diff: chrome/browser/bookmarks/bookmark_extension_api.cc

Issue 9559014: Exclude browser/importer from Android build. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Address Yarron's comment: move idef'd include to the bottom of the list Created 8 years, 10 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/browser/net/connection_tester.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/bookmarks/bookmark_extension_api.cc
diff --git a/chrome/browser/bookmarks/bookmark_extension_api.cc b/chrome/browser/bookmarks/bookmark_extension_api.cc
index be6e8a5cebf13bef4e1cdae3a5bde9c120758b83..d5927233671d3ceaac2027ce5e5b731481dbbdcb 100644
--- a/chrome/browser/bookmarks/bookmark_extension_api.cc
+++ b/chrome/browser/bookmarks/bookmark_extension_api.cc
@@ -916,6 +916,10 @@ bool ImportBookmarksFunction::RunImpl() {
void ImportBookmarksFunction::FileSelected(const FilePath& path,
int index,
void* params) {
+#if !defined(OS_ANDROID)
+ // Android does not have support for the standard importers.
+ // TODO(jgreenwald): remove ifdef once extensions are no longer built on
+ // Android.
scoped_refptr<ImporterHost> importer_host(new ImporterHost);
importer::SourceProfile source_profile;
source_profile.importer_type = importer::TYPE_BOOKMARKS_FILE;
@@ -925,6 +929,7 @@ void ImportBookmarksFunction::FileSelected(const FilePath& path,
importer::FAVORITES,
new ProfileWriter(profile()),
true);
+#endif
Release(); // Balanced in BookmarksIOFunction::SelectFile()
}
« no previous file with comments | « no previous file | chrome/browser/net/connection_tester.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698