Index: chrome/browser/extensions/extension_idle_api.cc |
diff --git a/chrome/browser/extensions/extension_idle_api.cc b/chrome/browser/extensions/extension_idle_api.cc |
index bf22ecc7f5cdea29123c775657eb7122cce6d55f..4ce916eb488d939505a3e3143ae49b470a0ceba8 100644 |
--- a/chrome/browser/extensions/extension_idle_api.cc |
+++ b/chrome/browser/extensions/extension_idle_api.cc |
@@ -74,7 +74,8 @@ const char* IdleStateToDescription(IdleState state) { |
// Helper function for reporting the idle state. The lifetime of the object |
// returned is controlled by the caller. |
StringValue* CreateIdleValue(IdleState idle_state) { |
- StringValue* result = new StringValue(IdleStateToDescription(idle_state)); |
+ StringValue* result = |
+ base::StringValue::New(IdleStateToDescription(idle_state)); |
return result; |
} |