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

Unified Diff: sync/internal_api/public/util/proto_value_ptr_unittest.cc

Issue 1609923002: Fix remaining incompatibilities between scoped_ptr and unique_ptr. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 11 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: sync/internal_api/public/util/proto_value_ptr_unittest.cc
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 f439825f5cfbd8e1404c47cf0e123099d36d163e..142098048e54ee4d58a174113af8754fc50a4315 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>.

Powered by Google App Engine
This is Rietveld 408576698