Index: base/process/process_metrics_linux.cc |
diff --git a/base/process/process_metrics_linux.cc b/base/process/process_metrics_linux.cc |
index 03cc7ebee9951f817af38c946e6e53a79c68c408..e8db571a317b380b17e7efc5c0595bce35faffb8 100644 |
--- a/base/process/process_metrics_linux.cc |
+++ b/base/process/process_metrics_linux.cc |
@@ -524,7 +524,7 @@ scoped_ptr<Value> SystemMemoryInfoKB::ToValue() const { |
res->SetInteger("gem_size", gem_size); |
#endif |
- return res.PassAs<Value>(); |
+ return res.Pass(); |
} |
// exposed for testing |
@@ -731,7 +731,7 @@ scoped_ptr<Value> SystemDiskInfo::ToValue() const { |
res->SetDouble("io_time", static_cast<double>(io_time)); |
res->SetDouble("weighted_io_time", static_cast<double>(weighted_io_time)); |
- return res.PassAs<Value>(); |
+ return res.Pass(); |
} |
bool IsValidDiskName(const std::string& candidate) { |
@@ -856,7 +856,7 @@ scoped_ptr<Value> SwapInfo::ToValue() const { |
else |
res->SetDouble("compression_ratio", 0); |
- return res.PassAs<Value>(); |
+ return res.Pass(); |
} |
void GetSwapInfo(SwapInfo* swap_info) { |