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

Unified Diff: chrome/browser/chromeos/extensions/file_browser_private_api.cc

Issue 12211005: fix build with enable_web_intents=0 on chromeos (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: test Created 7 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 | « chrome/browser/chromeos/extensions/file_browser_private_api.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/chromeos/extensions/file_browser_private_api.cc
diff --git a/chrome/browser/chromeos/extensions/file_browser_private_api.cc b/chrome/browser/chromeos/extensions/file_browser_private_api.cc
index de72ab4446addf3f1c421019b25dcb31a50242b4..f442150c434bb48239f345e10e304c783a87e2fe 100644
--- a/chrome/browser/chromeos/extensions/file_browser_private_api.cc
+++ b/chrome/browser/chromeos/extensions/file_browser_private_api.cc
@@ -264,6 +264,7 @@ GURL FindPreferredIcon(const InstalledApp::IconList& icons,
return result;
}
+#if defined(ENABLE_WEB_INTENTS)
// Finds the title of the given Web Intents |action|, if the passed extension
// supports this action for all specified |mime_types|. Returns true and
// provides the |title| as output on success.
@@ -303,6 +304,7 @@ bool FindTitleForActionWithTypes(
*title = found_title;
return true;
}
+#endif // defined(ENABLE_WEB_INTENTS)
// Retrieves total and remaining available size on |mount_path|.
void GetSizeStatsOnFileThread(const std::string& mount_path,
@@ -978,6 +980,7 @@ bool GetFileTasksFileBrowserFunction::FindAppTasks(
return true;
}
+#if defined(ENABLE_WEB_INTENTS)
// Find Web Intent platform apps that support the View task, and add them to
// the |result_list|. These will be marked as kTaskWebIntent.
bool GetFileTasksFileBrowserFunction::FindWebIntentTasks(
@@ -1029,6 +1032,7 @@ bool GetFileTasksFileBrowserFunction::FindWebIntentTasks(
return true;
}
+#endif // defined(ENABLE_WEB_INTENTS)
bool GetFileTasksFileBrowserFunction::RunImpl() {
// First argument is the list of files to get tasks for.
@@ -1145,10 +1149,12 @@ bool GetFileTasksFileBrowserFunction::RunImpl() {
if (!FindAppTasks(file_paths, result_list))
return false;
+#if defined(ENABLE_WEB_INTENTS)
// TODO(benwells): remove the web intents tasks once we no longer support
// them.
if (!FindWebIntentTasks(file_paths, result_list))
return false;
+#endif
if (VLOG_IS_ON(1)) {
std::string result_json;
« no previous file with comments | « chrome/browser/chromeos/extensions/file_browser_private_api.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698