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

Side by Side 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: Review fix Created 8 years, 6 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « dbus/object_path.h ('k') | dbus/string_util.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "dbus/object_path.h" 5 #include "dbus/object_path.h"
6 6
7 #include "dbus/string_util.h"
8
7 namespace dbus { 9 namespace dbus {
8 10
11 bool ObjectPath::IsValid() const {
12 return IsValidObjectPath(value_);
13 }
14
9 bool ObjectPath::operator<(const ObjectPath& that) const { 15 bool ObjectPath::operator<(const ObjectPath& that) const {
10 return value_ < that.value_; 16 return value_ < that.value_;
11 } 17 }
12 18
13 bool ObjectPath::operator==(const ObjectPath& that) const { 19 bool ObjectPath::operator==(const ObjectPath& that) const {
14 return value_ == that.value_; 20 return value_ == that.value_;
15 } 21 }
16 22
17 bool ObjectPath::operator!=(const ObjectPath& that) const { 23 bool ObjectPath::operator!=(const ObjectPath& that) const {
18 return value_ != that.value_; 24 return value_ != that.value_;
19 } 25 }
20 26
21 } // namespace dbus 27 } // namespace dbus
OLDNEW
« no previous file with comments | « dbus/object_path.h ('k') | dbus/string_util.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698