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

Unified Diff: content/browser/download/mhtml_generation_browsertest.cc

Issue 2026773002: Fix for flaky MHTMLGenerationTest.ViewedMHTMLContainsNoStoreContentIfNoCacheControlPolicy test. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 7 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/download/mhtml_generation_browsertest.cc
diff --git a/content/browser/download/mhtml_generation_browsertest.cc b/content/browser/download/mhtml_generation_browsertest.cc
index 0dbc08b523a034ec014f02aebd3e3e7091b9ab64..0605115bccf62a4075a60d3dd2ceeeabe5cf8a0d 100644
--- a/content/browser/download/mhtml_generation_browsertest.cc
+++ b/content/browser/download/mhtml_generation_browsertest.cc
@@ -64,8 +64,10 @@ class FindTrackingDelegate : public WebContentsDelegate {
const gfx::Rect& selection_rect,
int active_match_ordinal,
bool final_update) override {
- matches_ = number_of_matches;
- run_loop_.Quit();
+ if (final_update) {
+ matches_ = number_of_matches;
+ run_loop_.Quit();
+ }
}
static int global_request_id;
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698