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

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

Issue 17515003: [Downloads] Move UpdateObservers out of TransitionTo in DownloadItemImpl (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Restore necessary UpdateObservers() call Created 7 years, 6 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 | 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: content/browser/download/download_browsertest.cc
diff --git a/content/browser/download/download_browsertest.cc b/content/browser/download/download_browsertest.cc
index fc446992a1776412da33d01d72be006e25edf893..9275a7aa00b12e22f1e56d3ff7b0817a4ae4419c 100644
--- a/content/browser/download/download_browsertest.cc
+++ b/content/browser/download/download_browsertest.cc
@@ -1130,7 +1130,7 @@ IN_PROC_BROWSER_TEST_F(DownloadContentTest,
// Starting continuation
{DownloadItem::IN_PROGRESS, GetSafeBufferChunk()},
// Server precondition fail.
- {DownloadItem::INTERRUPTED, GetSafeBufferChunk()},
+ {DownloadItem::INTERRUPTED, 0},
// Notification of successful restart.
{DownloadItem::IN_PROGRESS, 0},
// Completion.
@@ -1227,8 +1227,8 @@ IN_PROC_BROWSER_TEST_F(DownloadContentTest, ResumeWithDeletedFile) {
// Starting continuation
{DownloadItem::IN_PROGRESS, GetSafeBufferChunk()},
// Error because file isn't there.
- {DownloadItem::INTERRUPTED, GetSafeBufferChunk()},
- // Restart
+ {DownloadItem::INTERRUPTED, 0},
+ // Restart.
{DownloadItem::IN_PROGRESS, 0},
// Completion.
{DownloadItem::COMPLETE, GetSafeBufferChunk() * 3},
« no previous file with comments | « no previous file | content/browser/download/download_item_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698