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

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

Issue 10704052: Download filename determination refactor (3/3) (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Merge with r148594 to and resolve conflicts with r148576 Created 8 years, 5 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 | « chrome/browser/profiles/profile_impl.cc ('k') | content/browser/download/download_item_impl.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 2c32118450d029255abc82f18cd429a3d440fb4b..cc080ba791579e0549879714ea181900bf9b32ab 100644
--- a/chrome/browser/ui/browser_close_browsertest.cc
+++ b/chrome/browser/ui/browser_close_browsertest.cc
@@ -119,8 +119,7 @@ class BrowserCloseTest : public InProcessBrowserTest {
BrowserContext::GetDownloadManager(browser->profile());
scoped_ptr<DownloadTestObserver> observer(
new DownloadTestObserverInProgress(download_manager,
- num_downloads,
- true)); // Bail on select file.
+ num_downloads));
// Set of that number of downloads.
size_t count_downloads = num_downloads;
@@ -239,6 +238,8 @@ class BrowserCloseTest : public InProcessBrowserTest {
EXPECT_TRUE(second_profile_);
if (!second_profile_) return false;
+ DownloadTestFileChooserObserver(first_profile_) .EnableFileChooser(false);
+ DownloadTestFileChooserObserver(second_profile_).EnableFileChooser(false);
return true;
}
@@ -276,6 +277,10 @@ class BrowserCloseTest : public InProcessBrowserTest {
Profile* first_profile_incognito = first_profile_->GetOffTheRecordProfile();
Profile* second_profile_incognito =
second_profile_->GetOffTheRecordProfile();
+ DownloadTestFileChooserObserver(first_profile_incognito)
+ .EnableFileChooser(false);
+ DownloadTestFileChooserObserver(second_profile_incognito)
+ .EnableFileChooser(false);
// For simplicty of coding, we create a window on each profile so that
// we can easily create downloads, then we destroy or create windows
« no previous file with comments | « chrome/browser/profiles/profile_impl.cc ('k') | content/browser/download/download_item_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698