Commit 437824ed authored by Rohit Rao's avatar Rohit Rao Committed by Commit Bot

[ios] Fix scoping of variables in dom_distiller.

BUG=1096151

Change-Id: I2ad7e76edfdf8a0cf42baf04e45aa6a95bebc315
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2250498Reviewed-by: default avatarEric Noyau <noyau@chromium.org>
Commit-Queue: Rohit Rao <rohitrao@chromium.org>
Cr-Commit-Position: refs/heads/master@{#779789}
parent c1ef1a30
...@@ -83,9 +83,9 @@ base::Value ValueResultFromScriptResult(id wk_result, int max_depth) { ...@@ -83,9 +83,9 @@ base::Value ValueResultFromScriptResult(id wk_result, int max_depth) {
return result; return result;
} }
std::vector<base::StringPiece> path = std::string combined_path = base::SysNSStringToUTF8(obj_c_string);
base::SplitStringPiece(base::SysNSStringToUTF8(obj_c_string), ".", std::vector<base::StringPiece> path = base::SplitStringPiece(
base::KEEP_WHITESPACE, base::SPLIT_WANT_ALL); combined_path, ".", base::KEEP_WHITESPACE, base::SPLIT_WANT_ALL);
dictionary.SetPath(path, std::move(value)); dictionary.SetPath(path, std::move(value));
} }
result = std::move(dictionary); result = std::move(dictionary);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment