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

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

Issue 8414007: Rearrange Should*Download delegate calls to be more useful and intuitive. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Tweaked comment. Created 9 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: content/browser/download/mock_download_manager_delegate.cc
diff --git a/content/browser/download/mock_download_manager_delegate.cc b/content/browser/download/mock_download_manager_delegate.cc
index e5b8b66ca9761c9564017fecbcf770ab9c30f649..e5d510408064f0268b866a6ce47a66ce4f308a90 100644
--- a/content/browser/download/mock_download_manager_delegate.cc
+++ b/content/browser/download/mock_download_manager_delegate.cc
@@ -36,11 +36,11 @@ bool MockDownloadManagerDelegate::ShouldOpenFileBasedOnExtension(
return false;
}
-bool MockDownloadManagerDelegate::ShouldOpenDownload(DownloadItem* item) {
+bool MockDownloadManagerDelegate::ShouldCompleteDownload(DownloadItem* item) {
return true;
}
-bool MockDownloadManagerDelegate::ShouldCompleteDownload(DownloadItem* item) {
+bool MockDownloadManagerDelegate::ShouldOpenDownload(DownloadItem* item) {
return true;
}

Powered by Google App Engine
This is Rietveld 408576698