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

Unified Diff: headless/public/internal/value_conversions.h

Issue 2533083003: Fix the serialization for values in std::unique_ptrs. (Closed)
Patch Set: Created 4 years, 1 month 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: headless/public/internal/value_conversions.h
diff --git a/headless/public/internal/value_conversions.h b/headless/public/internal/value_conversions.h
index 4a85a02a464e1d1202ec7e7d37c9895943c96c1e..78ac41fc4cb40aefff7a05d27f7da78ddf3ce094 100644
--- a/headless/public/internal/value_conversions.h
+++ b/headless/public/internal/value_conversions.h
@@ -67,7 +67,7 @@ std::unique_ptr<base::Value> ToValueImpl(const std::vector<T>& vector,
template <typename T>
std::unique_ptr<base::Value> ToValueImpl(const std::unique_ptr<T>& value,
std::unique_ptr<T>*) {
- return ToValue(value.get());
+ return ToValue(*value);
}
// FromValue specializations for basic types.
« headless/public/domains/types_unittest.cc ('K') | « headless/public/domains/types_unittest.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698