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

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: Adding mock for DocumentsService 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 5a440dfc39fbe660792d316dcbc4e92f224950a1..564279725d63b1fc09544ced9165f318dc8afa54 100644
--- a/chrome/browser/chromeos/gdata/gdata_file_system.cc
+++ b/chrome/browser/chromeos/gdata/gdata_file_system.cc
@@ -408,6 +408,13 @@ GDataFileSystem::~GDataFileSystem() {
DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI));
}
+void GDataFileSystem::ReplaceDocumentsService(
+ scoped_ptr<DocumentsServiceInterface> documents_service) {
+ documents_service_->CancelAll();
+ documents_service_.reset(documents_service.release());
+ documents_service_->Initialize(profile_);
+}
+
void GDataFileSystem::Shutdown() {
DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI));

Powered by Google App Engine
This is Rietveld 408576698