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

Unified Diff: chrome/browser/chromeos/gdata/gdata_file_system.cc

Issue 9582037: Make document service an interface (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Upload after merge Created 8 years, 9 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_file_system.cc
diff --git a/chrome/browser/chromeos/gdata/gdata_file_system.cc b/chrome/browser/chromeos/gdata/gdata_file_system.cc
index c5c2591c0b4cb7ce33d624e77e798d82f4bba217..725e634d78b40f6c35070b43b0bdf672d842f6ea 100644
--- a/chrome/browser/chromeos/gdata/gdata_file_system.cc
+++ b/chrome/browser/chromeos/gdata/gdata_file_system.cc
@@ -403,9 +403,10 @@ GDataFileSystem::CreateDirectoryParams::~CreateDirectoryParams() {
// GDataFileSystem class implementatsion.
-GDataFileSystem::GDataFileSystem(Profile* profile)
+GDataFileSystem::GDataFileSystem(Profile* profile,
+ DocumentsServiceInterface* documents_service)
: profile_(profile),
- documents_service_(new DocumentsService),
+ documents_service_(documents_service),
gdata_uploader_(new GDataUploader(ALLOW_THIS_IN_INITIALIZER_LIST(this))),
gdata_download_observer_(new GDataDownloadObserver()),
weak_ptr_factory_(ALLOW_THIS_IN_INITIALIZER_LIST(this)) {
@@ -1122,7 +1123,7 @@ GDataFileSystemFactory::~GDataFileSystemFactory() {
ProfileKeyedService* GDataFileSystemFactory::BuildServiceInstanceFor(
Profile* profile) const {
- return new GDataFileSystem(profile);
+ return new GDataFileSystem(profile, new DocumentsService);
}
} // namespace gdata
« no previous file with comments | « chrome/browser/chromeos/gdata/gdata_file_system.h ('k') | chrome/browser/chromeos/gdata/gdata_file_system_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698