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

Unified Diff: chrome/browser/download/download_history.cc

Issue 10805020: Kill DownloadItem::IsOtr() (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: . 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
Index: chrome/browser/download/download_history.cc
diff --git a/chrome/browser/download/download_history.cc b/chrome/browser/download/download_history.cc
index d98945f259a03181206a35f977cb271234386688..b4aa58279c12f1edceca6d6030693599df8c27eb 100644
--- a/chrome/browser/download/download_history.cc
+++ b/chrome/browser/download/download_history.cc
@@ -80,8 +80,7 @@ void DownloadHistory::AddEntry(
// the neck first. YMMV.
HistoryService* hs = HistoryServiceFactory::GetForProfileIfExists(
profile_, Profile::EXPLICIT_ACCESS);
- if (download_item->IsOtr() ||
- download_crx_util::IsExtensionDownload(*download_item) ||
+ if (download_crx_util::IsExtensionDownload(*download_item) ||
download_item->IsTemporary() || !hs) {
callback.Run(download_item->GetId(), GetNextFakeDbHandle());
return;

Powered by Google App Engine
This is Rietveld 408576698