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

Unified Diff: chrome/browser/chromeos/gdata/gdata_system_service.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/chromeos/gdata/gdata_system_service.cc
===================================================================
--- chrome/browser/chromeos/gdata/gdata_system_service.cc (revision 140592)
+++ chrome/browser/chromeos/gdata/gdata_system_service.cc (working copy)
@@ -15,9 +15,12 @@
#include "chrome/browser/chromeos/gdata/gdata_file_system.h"
#include "chrome/browser/chromeos/gdata/gdata_sync_client.h"
#include "chrome/browser/chromeos/gdata/gdata_uploader.h"
+#include "chrome/browser/profiles/profile.h"
#include "chrome/browser/profiles/profile_dependency_manager.h"
+#include "content/public/browser/browser_context.h"
#include "content/public/browser/browser_thread.h"
+using content::BrowserContext;
using content::BrowserThread;
namespace gdata {
@@ -48,8 +51,7 @@
content::DownloadManager* download_manager =
g_browser_process->download_status_updater() ?
- DownloadServiceFactory::GetForProfile(profile_)->GetDownloadManager() :
- NULL;
+ BrowserContext::GetDownloadManager(profile_) : NULL;
download_observer_->Initialize(
uploader_.get(),
download_manager,

Powered by Google App Engine
This is Rietveld 408576698