Index: chrome/test/chromedriver/commands_unittest.cc |
diff --git a/chrome/test/chromedriver/commands_unittest.cc b/chrome/test/chromedriver/commands_unittest.cc |
index f6584e47b01829c7e28e893d2ffa788079e50661..b5320c2c979f2ce8ee51c52990275abc4411e382 100644 |
--- a/chrome/test/chromedriver/commands_unittest.cc |
+++ b/chrome/test/chromedriver/commands_unittest.cc |
@@ -360,7 +360,7 @@ class FindElementWebView : public StubWebView { |
} |
case kElementNotExistsQueryOnce: { |
if (only_one_) |
- result_.reset(base::Value::CreateNullValue()); |
+ result_ = base::Value::CreateNullValue(); |
else |
result_.reset(new base::ListValue()); |
break; |
@@ -395,7 +395,7 @@ class FindElementWebView : public StubWebView { |
(scenario_ == kElementExistsQueryTwice && current_count_ == 1)) { |
// Always return empty result when testing timeout. |
if (only_one_) |
- result->reset(base::Value::CreateNullValue()); |
+ *result = base::Value::CreateNullValue(); |
else |
result->reset(new base::ListValue()); |
} else { |
@@ -414,10 +414,10 @@ class FindElementWebView : public StubWebView { |
} |
} |
- result->reset(result_->DeepCopy()); |
+ *result = result_->CreateDeepCopy(); |
frame_ = frame; |
function_ = function; |
- args_.reset(args.DeepCopy()); |
+ args_ = args.CreateDeepCopy(); |
} |
return Status(kOk); |
} |