Index: cc/resources/tile_priority.cc |
diff --git a/cc/resources/tile_priority.cc b/cc/resources/tile_priority.cc |
index 425e4edb5dabedad493cdd4ca907a43735d2cd35..18678d2123ba4f0bc00a806d8dda42513bd0c787 100644 |
--- a/cc/resources/tile_priority.cc |
+++ b/cc/resources/tile_priority.cc |
@@ -41,16 +41,15 @@ scoped_ptr<base::Value> TileResolutionAsValue( |
scoped_ptr<base::Value> TilePriorityBinAsValue(TilePriority::PriorityBin bin) { |
switch (bin) { |
case TilePriority::NOW: |
- return scoped_ptr<base::Value>(base::Value::CreateStringValue("NOW")); |
+ return scoped_ptr<base::Value>(new base::StringValue("NOW")); |
case TilePriority::SOON: |
- return scoped_ptr<base::Value>(base::Value::CreateStringValue("SOON")); |
+ return scoped_ptr<base::Value>(new base::StringValue("SOON")); |
case TilePriority::EVENTUALLY: |
- return scoped_ptr<base::Value>( |
- base::Value::CreateStringValue("EVENTUALLY")); |
+ return scoped_ptr<base::Value>(new base::StringValue("EVENTUALLY")); |
} |
DCHECK(false) << "Unrecognized TilePriority::PriorityBin value " << bin; |
- return scoped_ptr<base::Value>(base::Value::CreateStringValue( |
- "<unknown TilePriority::PriorityBin value>")); |
+ return scoped_ptr<base::Value>( |
+ new base::StringValue("<unknown TilePriority::PriorityBin value>")); |
} |
scoped_ptr<base::Value> TilePriority::AsValue() const { |