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

Unified Diff: chrome/browser/app_controller_mac.mm

Issue 10535026: Move creation and ownership of DownloadManager from the embedder to content. This matches all the o… (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: fix cros compile Created 8 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
Index: chrome/browser/app_controller_mac.mm
===================================================================
--- chrome/browser/app_controller_mac.mm (revision 140592)
+++ chrome/browser/app_controller_mac.mm (working copy)
@@ -74,6 +74,7 @@
#include "ui/base/l10n/l10n_util.h"
#include "ui/base/l10n/l10n_util_mac.h"
+using content::BrowserContext;
using content::BrowserThread;
using content::DownloadManager;
using content::UserMetricsAction;
@@ -676,7 +677,7 @@
DownloadServiceFactory::GetForProfile(profiles[i]);
DownloadManager* download_manager =
(download_service->HasCreatedDownloadManager() ?
- download_service->GetDownloadManager() : NULL);
+ BrowserContext::GetDownloadManager(profiles[i]) : NULL);
if (download_manager && download_manager->InProgressCount() > 0) {
int downloadCount = download_manager->InProgressCount();
if ([self userWillWaitForInProgressDownloads:downloadCount]) {
« no previous file with comments | « no previous file | chrome/browser/automation/testing_automation_provider.cc » ('j') | chrome/browser/download/download_service.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698