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

Unified Diff: chrome/browser/extensions/api/file_handlers/app_file_handler_util.cc

Issue 2621193002: Remove unused FirstFileHandlerForEntry() (Closed)
Patch Set: Created 3 years, 11 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/extensions/api/file_handlers/app_file_handler_util.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/extensions/api/file_handlers/app_file_handler_util.cc
diff --git a/chrome/browser/extensions/api/file_handlers/app_file_handler_util.cc b/chrome/browser/extensions/api/file_handlers/app_file_handler_util.cc
index 07ce6f13126ff20d09f5d515dbd136b3f9745794..53caea04d1f8cfa43ae0e4cb9479f9e265852ac7 100644
--- a/chrome/browser/extensions/api/file_handlers/app_file_handler_util.cc
+++ b/chrome/browser/extensions/api/file_handlers/app_file_handler_util.cc
@@ -217,20 +217,6 @@ const FileHandlerInfo* FileHandlerForId(const Extension& app,
return NULL;
}
-const FileHandlerInfo* FirstFileHandlerForEntry(const Extension& app,
- const EntryInfo& entry) {
- const FileHandlersInfo* file_handlers = FileHandlers::GetFileHandlers(&app);
- if (!file_handlers)
- return NULL;
-
- for (FileHandlersInfo::const_iterator i = file_handlers->begin();
- i != file_handlers->end(); i++) {
- if (FileHandlerCanHandleEntry(*i, entry))
- return &*i;
- }
- return NULL;
-}
-
std::vector<const FileHandlerInfo*> FindFileHandlersForEntries(
const Extension& app,
const std::vector<EntryInfo> entries) {
« no previous file with comments | « chrome/browser/extensions/api/file_handlers/app_file_handler_util.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698