Index: chrome/test/webdriver/commands/target_locator_commands.cc |
diff --git a/chrome/test/webdriver/commands/target_locator_commands.cc b/chrome/test/webdriver/commands/target_locator_commands.cc |
index d738fe0ccd56d1b9f23c64a943cd9f56ad1ed8a3..8edd1a42666ff0ffb2a323867516f5d8af8d96f5 100644 |
--- a/chrome/test/webdriver/commands/target_locator_commands.cc |
+++ b/chrome/test/webdriver/commands/target_locator_commands.cc |
@@ -25,7 +25,7 @@ bool WindowHandleCommand::DoesGet() { |
} |
void WindowHandleCommand::ExecuteGet(Response* const response) { |
- response->SetValue(new StringValue( |
+ response->SetValue(base::StringValue::New( |
base::IntToString(session_->current_target().window_id))); |
} |
@@ -49,7 +49,7 @@ void WindowHandlesCommand::ExecuteGet(Response* const response) { |
} |
ListValue* id_list = new ListValue(); |
for (size_t i = 0; i < window_ids.size(); ++i) |
- id_list->Append(new StringValue(base::IntToString(window_ids[i]))); |
+ id_list->Append(base::StringValue::New(base::IntToString(window_ids[i]))); |
response->SetValue(id_list); |
} |