Skip to content

Commit

Permalink
[headless] Fix headless_shell compilation.
Browse files Browse the repository at this point in the history
- DevTools removed wasThrown from results, use GetExceptionDetails
  instead.

R=skyostil@chromium.org

BUG=546953

Review-Url: https://codereview.chromium.org/2246113004
Cr-Commit-Position: refs/heads/master@{#412205}
  • Loading branch information
altimin authored and Commit bot committed Aug 16, 2016
1 parent e14cbdf commit f787418
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion headless/app/headless_shell.cc
Original file line number Diff line number Diff line change
Expand Up @@ -209,7 +209,7 @@ class HeadlessShell : public HeadlessWebContents::Observer,
}

void OnDomFetched(std::unique_ptr<runtime::EvaluateResult> result) {
if (result->GetWasThrown()) {
if (result->GetExceptionDetails()) {
LOG(ERROR) << "Failed to evaluate document.body.innerHTML";
} else {
std::string dom;
Expand Down

0 comments on commit f787418

Please sign in to comment.