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

Unified Diff: chrome/browser/safe_browsing/safe_browsing_blocking_page.cc

Issue 829263004: Add WaitForInterstitialReady to browser_test_utils. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: mattm comments, fix test Created 5 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: chrome/browser/safe_browsing/safe_browsing_blocking_page.cc
diff --git a/chrome/browser/safe_browsing/safe_browsing_blocking_page.cc b/chrome/browser/safe_browsing/safe_browsing_blocking_page.cc
index 5b053b1ca040de77a95d57ccc3c5ad277c54bbda..0515ecd840fd7f5bc6a071cc32795f5bb1f5f1f1 100644
--- a/chrome/browser/safe_browsing/safe_browsing_blocking_page.cc
+++ b/chrome/browser/safe_browsing/safe_browsing_blocking_page.cc
@@ -220,6 +220,13 @@ void SafeBrowsingBlockingPage::CommandReceived(const std::string& cmd) {
if (command.length() > 1 && command[0] == '"') {
command = command.substr(1, command.length() - 2);
}
+
+ if (command == "pageLoadComplete") {
mmenke 2015/01/22 15:53:25 Should have something in the WaitForRenderFrameRea
meacer 2015/01/22 18:31:37 Added a note to WaitForRenderFrameReady doc.
+ // content::WaitForRenderFrameReady sends this message when the page
+ // load completes. Ignore it.
+ return;
+ }
+
if (command == kDoReportCommand) {
SetReportingPreference(true);
return;

Powered by Google App Engine
This is Rietveld 408576698