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

Unified Diff: content/shell/shell_download_manager_delegate.cc

Issue 10829070: Move resource_dispatcher_host_browsertest.cc to content_browsertests. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: sync 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 | « content/shell/shell_download_manager_delegate.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/shell/shell_download_manager_delegate.cc
===================================================================
--- content/shell/shell_download_manager_delegate.cc (revision 148962)
+++ content/shell/shell_download_manager_delegate.cc (working copy)
@@ -24,6 +24,8 @@
ShellDownloadManagerDelegate::ShellDownloadManagerDelegate()
: download_manager_(NULL) {
+ // Balanced in Shutdown();
+ AddRef();
}
ShellDownloadManagerDelegate::~ShellDownloadManagerDelegate(){
@@ -35,6 +37,10 @@
download_manager_ = download_manager;
}
+void ShellDownloadManagerDelegate::Shutdown() {
+ Release();
+}
+
bool ShellDownloadManagerDelegate::DetermineDownloadTarget(
DownloadItem* download,
const DownloadTargetCallback& callback) {
« no previous file with comments | « content/shell/shell_download_manager_delegate.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698