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

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

Issue 10829375: Cleanup: separate WAPI and Drive API code in gdata_documents_service. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 8 years, 4 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 51f4a4c6a4b9023216b39626beb33981af6823ff..a939a0fb8de5ee6e0de1ef9fea3c9b060d39616b 100644
--- a/chrome/browser/chromeos/gdata/gdata_file_system.cc
+++ b/chrome/browser/chromeos/gdata/gdata_file_system.cc
@@ -16,10 +16,10 @@
#include "base/platform_file.h"
#include "base/threading/sequenced_worker_pool.h"
#include "base/values.h"
+#include "chrome/browser/chromeos/gdata/documents_service_interface.h"
#include "chrome/browser/chromeos/gdata/drive_api_parser.h"
#include "chrome/browser/chromeos/gdata/drive_webapps_registry.h"
#include "chrome/browser/chromeos/gdata/gdata.pb.h"
-#include "chrome/browser/chromeos/gdata/gdata_documents_service.h"
#include "chrome/browser/chromeos/gdata/gdata_download_observer.h"
#include "chrome/browser/chromeos/gdata/gdata_files.h"
#include "chrome/browser/chromeos/gdata/gdata_protocol_handler.h"
@@ -2241,7 +2241,7 @@ void GDataFileSystem::GetAvailableSpaceOnUIThread(
DCHECK(!callback.is_null());
if (gdata::util::IsDriveV2ApiEnabled()) {
- documents_service_->GetAboutResource(
+ documents_service_->GetAccountMetadata(
satorux1 2012/08/17 12:05:48 since you are now using the same interface, can yo
kochi 2012/08/20 09:17:30 As we have different callbacks for Drive API and W
satorux1 2012/08/20 16:47:19 Could you make this if-else? Ternary operators are
base::Bind(&GDataFileSystem::OnGetAboutResource,
ui_weak_ptr_,
callback));

Powered by Google App Engine
This is Rietveld 408576698