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

Unified Diff: chrome/browser/ui/browser_close_browsertest.cc

Issue 26938003: Don't prompt to save malicious downloads on exit (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fixed unit test compile error Created 7 years, 2 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/ui/browser_close_browsertest.cc
diff --git a/chrome/browser/ui/browser_close_browsertest.cc b/chrome/browser/ui/browser_close_browsertest.cc
index 4f2b14503671a1d1a37b75478829cea3db9a3379..242f58f945f76522cc32702ac63b9893f5b8dada 100644
--- a/chrome/browser/ui/browser_close_browsertest.cc
+++ b/chrome/browser/ui/browser_close_browsertest.cc
@@ -275,13 +275,19 @@ class BrowserCloseTest : public InProcessBrowserTest {
<< ": " << check_case.DebugString();
if (first_profile_ != entry_browser->profile())
return false;
+ int nondangerous_download_count =
+ DownloadService::NonDangerousDownloadCountAllProfiles();
+ EXPECT_EQ(0, nondangerous_download_count)
+ << "Case " << i
+ << ": " << check_case.DebugString();
asanka 2013/10/11 16:02:35 Minor nit: Adding a SCOPED_TRACE at the top of the
felt 2013/10/11 17:26:44 I assume you mean for the whole file, not just for
asanka 2013/10/11 19:09:42 Yup. However, my suggestion seems to have been mis
felt 2013/10/11 23:41:10 Done.
+ if (0 != nondangerous_download_count)
+ return false;
int total_download_count = DownloadService::DownloadCountAllProfiles();
EXPECT_EQ(0, total_download_count)
<< "Case " << i
<< ": " << check_case.DebugString();
if (0 != total_download_count)
return false;
-
Profile* first_profile_incognito = first_profile_->GetOffTheRecordProfile();
Profile* second_profile_incognito =
second_profile_->GetOffTheRecordProfile();

Powered by Google App Engine
This is Rietveld 408576698