| Index: chrome/browser/ssl/captive_portal_blocking_page_browsertest.cc
|
| diff --git a/chrome/browser/ssl/captive_portal_blocking_page_browsertest.cc b/chrome/browser/ssl/captive_portal_blocking_page_browsertest.cc
|
| index 2e6b6cd82e949585d36170ae0fcee2f9ebdc1322..ec7402c4aab6ec90f242dfee36ab86105715f7cd 100644
|
| --- a/chrome/browser/ssl/captive_portal_blocking_page_browsertest.cc
|
| +++ b/chrome/browser/ssl/captive_portal_blocking_page_browsertest.cc
|
| @@ -39,12 +39,12 @@ bool IsInterstitialDisplayingText(content::InterstitialPage* interstitial,
|
| DCHECK(text.find("\'") == std::string::npos);
|
| std::string command = base::StringPrintf(
|
| "var hasText = document.body.textContent.indexOf('%s') >= 0;"
|
| - "window.domAutomationController.send(hasText);",
|
| + "window.domAutomationController.send(hasText ? 1 : 0);",
|
| text.c_str());
|
| - bool result = false;
|
| - EXPECT_TRUE(content::ExecuteScriptAndExtractBool(
|
| + int result = 0;
|
| + EXPECT_TRUE(content::ExecuteScriptAndExtractInt(
|
| interstitial->GetMainFrame(), command, &result));
|
| - return result;
|
| + return result == 1;
|
| }
|
|
|
| enum ExpectWiFi {
|
|
|