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

Unified Diff: Source/modules/filesystem/DOMFilePath.cpp

Issue 23464095: WTF::notFound looks too much like a local variable. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years, 3 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
Index: Source/modules/filesystem/DOMFilePath.cpp
diff --git a/Source/modules/filesystem/DOMFilePath.cpp b/Source/modules/filesystem/DOMFilePath.cpp
index 9869ec01c34294eda53935857c7a95ffd83207ea..fd5b8077e2dcbbd04697b34c9d110943c6ca885e 100644
--- a/Source/modules/filesystem/DOMFilePath.cpp
+++ b/Source/modules/filesystem/DOMFilePath.cpp
@@ -117,11 +117,11 @@ bool DOMFilePath::isValidPath(const String& path)
return true;
// Embedded NULs are not allowed.
- if (path.find(static_cast<UChar>(0)) != WTF::notFound)
+ if (path.find(static_cast<UChar>(0)) != WTF::kNotFound)
return false;
// While not [yet] restricted by the spec, '\\' complicates implementation for Chromium.
- if (path.find('\\') != WTF::notFound)
+ if (path.find('\\') != WTF::kNotFound)
return false;
// This method is only called on fully-evaluated absolute paths. Any sign of ".." or "." is likely an attempt to break out of the sandbox.
« no previous file with comments | « Source/modules/device_orientation/DeviceSensorEventDispatcher.cpp ('k') | Source/modules/mediasource/SourceBufferList.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698