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

Unified Diff: dbus/object_path.cc

Issue 10502011: Explicitly CHECK arguments in dbus::MessageWriter::AppendString/ObjectPath (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix wording Created 8 years, 7 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 | « dbus/object_path.h ('k') | dbus/string_util.h » ('j') | dbus/string_util.h » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: dbus/object_path.cc
diff --git a/dbus/object_path.cc b/dbus/object_path.cc
index 2dda466dd23b3ac74a69e41dfcf33de1b0c7ae1a..83a283bc215b404b6e469a35c1b3f8165caa5805 100644
--- a/dbus/object_path.cc
+++ b/dbus/object_path.cc
@@ -4,8 +4,14 @@
#include "dbus/object_path.h"
+#include "dbus/string_util.h"
+
namespace dbus {
+bool ObjectPath::IsValid() const {
+ return IsStringValidObjectPath(value_);
+}
+
bool ObjectPath::operator<(const ObjectPath& that) const {
return value_ < that.value_;
}
« no previous file with comments | « dbus/object_path.h ('k') | dbus/string_util.h » ('j') | dbus/string_util.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698