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

Unified Diff: extensions/common/file_util.h

Issue 1547413002: Reland of Change extension icon load errors to warnings (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years 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
Index: extensions/common/file_util.h
diff --git a/extensions/common/file_util.h b/extensions/common/file_util.h
index 3fda56ad8f0d04e5e98548197d0e098c357fe557..609b27ce3605fb48618e11c8e536709664140178 100644
--- a/extensions/common/file_util.h
+++ b/extensions/common/file_util.h
@@ -71,6 +71,9 @@
const base::FilePath& extension_root,
const base::FilePath::CharType* manifest_filename,
std::string* error);
+
+// Returns true if the given file path exists and is not zero-length.
+bool ValidateFilePath(const base::FilePath& path);
// Returns true if the given extension object is valid and consistent.
// May also append a series of warning messages to |warnings|, but they

Powered by Google App Engine
This is Rietveld 408576698