summaryrefslogtreecommitdiffstats
path: root/sync/internal_api/public/util/proto_value_ptr_unittest.cc
diff options
context:
space:
mode:
Diffstat (limited to 'sync/internal_api/public/util/proto_value_ptr_unittest.cc')
-rw-r--r--sync/internal_api/public/util/proto_value_ptr_unittest.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/sync/internal_api/public/util/proto_value_ptr_unittest.cc b/sync/internal_api/public/util/proto_value_ptr_unittest.cc
index f439825..1420980 100644
--- a/sync/internal_api/public/util/proto_value_ptr_unittest.cc
+++ b/sync/internal_api/public/util/proto_value_ptr_unittest.cc
@@ -45,7 +45,7 @@ class TestValue {
int value() const { return value_->value(); }
IntValue* value_ptr() const { return value_.get(); }
- bool is_initialized() const { return value_; }
+ bool is_initialized() const { return !!value_; }
bool is_default() const { return is_default_; }
// TestValue uses the default traits struct with ProtoValuePtr<TestValue>.