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

Unified Diff: chrome/browser/sync_file_system/drive_file_sync_client.cc

Issue 11417109: google_apis: Inject the base WAPI server URL to GDataWapiService (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 1 month 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
« no previous file with comments | « chrome/browser/google_apis/gdata_wapi_service_unittest.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/sync_file_system/drive_file_sync_client.cc
diff --git a/chrome/browser/sync_file_system/drive_file_sync_client.cc b/chrome/browser/sync_file_system/drive_file_sync_client.cc
index 5ef82b67a6b17d4991bef2969f81ef4e0daae629..45d0e4f1b6232b5928fce3c54d68a997b930068f 100644
--- a/chrome/browser/sync_file_system/drive_file_sync_client.cc
+++ b/chrome/browser/sync_file_system/drive_file_sync_client.cc
@@ -11,6 +11,7 @@
#include "base/values.h"
#include "chrome/browser/google_apis/drive_uploader.h"
#include "chrome/browser/google_apis/gdata_wapi_service.h"
+#include "chrome/browser/google_apis/gdata_wapi_url_generator.h"
#include "net/base/escape.h"
#include "net/base/mime_util.h"
@@ -63,7 +64,8 @@ google_apis::DocumentEntry* GetDocumentByTitleAndParent(
} // namespace
DriveFileSyncClient::DriveFileSyncClient(Profile* profile) {
- drive_service_.reset(new google_apis::GDataWapiService);
+ drive_service_.reset(new google_apis::GDataWapiService(
+ GURL(google_apis::GDataWapiUrlGenerator::kBaseUrlForProduction)));
drive_service_->Initialize(profile);
drive_uploader_.reset(new google_apis::DriveUploader(drive_service_.get()));
« no previous file with comments | « chrome/browser/google_apis/gdata_wapi_service_unittest.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698