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

Unified Diff: chrome/browser/ui/panels/panel_browsertest.cc

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/ui/panels/panel_browsertest.cc
===================================================================
--- chrome/browser/ui/panels/panel_browsertest.cc (revision 140592)
+++ chrome/browser/ui/panels/panel_browsertest.cc (working copy)
@@ -39,6 +39,7 @@
#include "testing/gtest/include/gtest/gtest.h"
#include "ui/gfx/screen.h"
+using content::BrowserContext;
using content::BrowserThread;
using content::DownloadItem;
using content::DownloadManager;
@@ -1607,7 +1608,7 @@
public:
explicit DownloadObserver(Profile* profile)
: download_manager_(
- DownloadServiceFactory::GetForProfile(profile)->GetDownloadManager()),
+ BrowserContext::GetDownloadManager(profile)),
saw_download_(false),
waiting_(false) {
download_manager_->AddObserver(this);

Powered by Google App Engine
This is Rietveld 408576698