Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(600)

Issue 829263004: Add WaitForInterstitialReady to browser_test_utils. (Closed)

Created:
5 years, 11 months ago by meacer
Modified:
5 years, 11 months ago
CC:
chromium-reviews, grt+watch_chromium.org, jam, darin-cc_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Add WaitForInterstitialReady to browser_test_utils. CaptivePortal and SafeBrowsingBlockingPage tests wait for the interstitial to get ready in different ways. This CL unifies them. BUG=448486 Committed: https://crrev.com/8543a23f0bc2072149902d80bf36ae143a8dee48 Cr-Commit-Position: refs/heads/master@{#312908}

Patch Set 1 #

Total comments: 4

Patch Set 2 : mattm comments, fix test #

Total comments: 11

Patch Set 3 : Address comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+40 lines, -39 lines) Patch
M chrome/browser/captive_portal/captive_portal_browsertest.cc View 1 2 chunks +1 line, -26 lines 0 comments Download
M chrome/browser/safe_browsing/safe_browsing_blocking_page.cc View 1 1 chunk +7 lines, -0 lines 0 comments Download
M chrome/browser/safe_browsing/safe_browsing_blocking_page_test.cc View 1 1 chunk +4 lines, -13 lines 0 comments Download
M content/public/test/browser_test_utils.h View 1 2 1 chunk +6 lines, -0 lines 0 comments Download
M content/public/test/browser_test_utils.cc View 1 2 1 chunk +22 lines, -0 lines 0 comments Download

Messages

Total messages: 16 (2 generated)
meacer
Can you PTAL? Thanks.
5 years, 11 months ago (2015-01-22 02:04:28 UTC) #2
mattm
https://codereview.chromium.org/829263004/diff/1/chrome/browser/safe_browsing/safe_browsing_blocking_page_test.cc File chrome/browser/safe_browsing/safe_browsing_blocking_page_test.cc (right): https://codereview.chromium.org/829263004/diff/1/chrome/browser/safe_browsing/safe_browsing_blocking_page_test.cc#newcode516 chrome/browser/safe_browsing/safe_browsing_blocking_page_test.cc:516: browser()->tab_strip_model()->GetActiveWebContents()); I think there should be a "if (!interstitial) ...
5 years, 11 months ago (2015-01-22 02:28:32 UTC) #3
meacer
https://codereview.chromium.org/829263004/diff/1/chrome/browser/safe_browsing/safe_browsing_blocking_page_test.cc File chrome/browser/safe_browsing/safe_browsing_blocking_page_test.cc (right): https://codereview.chromium.org/829263004/diff/1/chrome/browser/safe_browsing/safe_browsing_blocking_page_test.cc#newcode516 chrome/browser/safe_browsing/safe_browsing_blocking_page_test.cc:516: browser()->tab_strip_model()->GetActiveWebContents()); On 2015/01/22 02:28:32, mattm wrote: > I think ...
5 years, 11 months ago (2015-01-22 03:17:50 UTC) #4
meacer
https://codereview.chromium.org/829263004/diff/1/content/public/test/browser_test_utils.cc File content/public/test/browser_test_utils.cc (right): https://codereview.chromium.org/829263004/diff/1/content/public/test/browser_test_utils.cc#newcode728 content/public/test/browser_test_utils.cc:728: content::RenderFrameHost* rfh = interstitial->GetMainFrame(); On 2015/01/22 02:28:32, mattm wrote: ...
5 years, 11 months ago (2015-01-22 03:18:07 UTC) #5
mattm
lgtm https://codereview.chromium.org/829263004/diff/20001/content/public/test/browser_test_utils.cc File content/public/test/browser_test_utils.cc (right): https://codereview.chromium.org/829263004/diff/20001/content/public/test/browser_test_utils.cc#newcode24 content/public/test/browser_test_utils.cc:24: #include "content/public/browser/interstitial_page.h" no longer needed https://codereview.chromium.org/829263004/diff/20001/content/public/test/browser_test_utils.h File content/public/test/browser_test_utils.h ...
5 years, 11 months ago (2015-01-22 04:51:27 UTC) #6
Paweł Hajdan Jr.
https://codereview.chromium.org/829263004/diff/20001/content/public/test/browser_test_utils.cc File content/public/test/browser_test_utils.cc (right): https://codereview.chromium.org/829263004/diff/20001/content/public/test/browser_test_utils.cc#newcode743 content/public/test/browser_test_utils.cc:743: " document.addEventListener('readystatechange', checkState);" I might be wrong (not a ...
5 years, 11 months ago (2015-01-22 15:43:10 UTC) #7
mmenke
https://codereview.chromium.org/829263004/diff/20001/chrome/browser/safe_browsing/safe_browsing_blocking_page.cc File chrome/browser/safe_browsing/safe_browsing_blocking_page.cc (right): https://codereview.chromium.org/829263004/diff/20001/chrome/browser/safe_browsing/safe_browsing_blocking_page.cc#newcode224 chrome/browser/safe_browsing/safe_browsing_blocking_page.cc:224: if (command == "pageLoadComplete") { Should have something in ...
5 years, 11 months ago (2015-01-22 15:53:25 UTC) #8
mmenke
And LGTM
5 years, 11 months ago (2015-01-22 15:53:59 UTC) #9
mmenke
https://codereview.chromium.org/829263004/diff/20001/content/public/test/browser_test_utils.cc File content/public/test/browser_test_utils.cc (right): https://codereview.chromium.org/829263004/diff/20001/content/public/test/browser_test_utils.cc#newcode743 content/public/test/browser_test_utils.cc:743: " document.addEventListener('readystatechange', checkState);" On 2015/01/22 15:53:25, mmenke wrote: > ...
5 years, 11 months ago (2015-01-22 15:55:00 UTC) #10
meacer
https://codereview.chromium.org/829263004/diff/20001/chrome/browser/safe_browsing/safe_browsing_blocking_page.cc File chrome/browser/safe_browsing/safe_browsing_blocking_page.cc (right): https://codereview.chromium.org/829263004/diff/20001/chrome/browser/safe_browsing/safe_browsing_blocking_page.cc#newcode224 chrome/browser/safe_browsing/safe_browsing_blocking_page.cc:224: if (command == "pageLoadComplete") { On 2015/01/22 15:53:25, mmenke ...
5 years, 11 months ago (2015-01-22 18:31:37 UTC) #11
Paweł Hajdan Jr.
LGTM
5 years, 11 months ago (2015-01-23 10:49:14 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/829263004/40001
5 years, 11 months ago (2015-01-23 18:07:37 UTC) #14
commit-bot: I haz the power
Committed patchset #3 (id:40001)
5 years, 11 months ago (2015-01-23 19:59:15 UTC) #15
commit-bot: I haz the power
5 years, 11 months ago (2015-01-23 20:01:31 UTC) #16
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/8543a23f0bc2072149902d80bf36ae143a8dee48
Cr-Commit-Position: refs/heads/master@{#312908}

Powered by Google App Engine
This is Rietveld 408576698