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

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

Issue 8135017: Refactor downloads into a ProfileKeyedService. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Merged to LKGR to run try bots. Created 9 years, 2 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
diff --git a/chrome/browser/ui/panels/panel_browsertest.cc b/chrome/browser/ui/panels/panel_browsertest.cc
index 20ffe14729fdc6c2dc3b73945caa84abd00cf48c..55ef6892e2adf0dde65f22ff94e9924be1384a05 100644
--- a/chrome/browser/ui/panels/panel_browsertest.cc
+++ b/chrome/browser/ui/panels/panel_browsertest.cc
@@ -3,6 +3,8 @@
// found in the LICENSE file.
#include "base/bind.h"
+#include "chrome/browser/download/download_service.h"
+#include "chrome/browser/download/download_service_factory.h"
#include "chrome/browser/net/url_request_mock_util.h"
#include "chrome/browser/prefs/pref_service.h"
#include "chrome/browser/profiles/profile.h"
@@ -942,7 +944,8 @@ class PanelDownloadTest : public PanelBrowserTest {
class DownloadObserver : public DownloadManager::Observer {
public:
explicit DownloadObserver(Profile* profile)
- : download_manager_(profile->GetDownloadManager()),
+ : download_manager_(
+ DownloadServiceFactory::GetForProfile(profile)->GetDownloadManager()),
saw_download_(false),
waiting_(false) {
download_manager_->AddObserver(this);

Powered by Google App Engine
This is Rietveld 408576698