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

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

Issue 11050003: Shift EnsureNoPendingDownloads() implementation into tests. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Incorporated comments. Created 8 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
« no previous file with comments | « content/browser/download/download_browsertest.cc ('k') | content/public/browser/download_manager.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/download/download_manager_impl.cc
diff --git a/content/browser/download/download_manager_impl.cc b/content/browser/download/download_manager_impl.cc
index bfd5ac0be555b9f4c8c8360750e5d13c4c95b338..32f17e252b94307c74b8c057e9271c2b6a264c5f 100644
--- a/content/browser/download/download_manager_impl.cc
+++ b/content/browser/download/download_manager_impl.cc
@@ -197,20 +197,6 @@ class DownloadItemFactoryImpl : public content::DownloadItemFactory {
} // namespace
-namespace content {
-
-bool DownloadManager::EnsureNoPendingDownloadsForTesting() {
- DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI));
- bool result = true;
- BrowserThread::PostTask(
- BrowserThread::IO, FROM_HERE,
- base::Bind(&EnsureNoPendingDownloadJobsOnIO, &result));
- MessageLoop::current()->Run();
- return result;
-}
-
-} // namespace content
-
DownloadManagerImpl::DownloadManagerImpl(
DownloadFileManager* file_manager,
scoped_ptr<content::DownloadItemFactory> factory,
« no previous file with comments | « content/browser/download/download_browsertest.cc ('k') | content/public/browser/download_manager.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698