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

Unified Diff: cc/resources/tile_priority.cc

Issue 388963002: Get rid of the rest of CreateStringValue (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix bad rebase Created 6 years, 5 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: 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 {

Powered by Google App Engine
This is Rietveld 408576698