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

Unified Diff: chrome/browser/chromeos/drive/drive_system_service.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 | « no previous file | chrome/browser/google_apis/gdata_wapi_service.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/chromeos/drive/drive_system_service.cc
diff --git a/chrome/browser/chromeos/drive/drive_system_service.cc b/chrome/browser/chromeos/drive/drive_system_service.cc
index 2d2c1beaaccf5ccfd9830024543b801a7dfdfb71..0327b205dc67e1d93084d33c483c53bb75a1ae9c 100644
--- a/chrome/browser/chromeos/drive/drive_system_service.cc
+++ b/chrome/browser/chromeos/drive/drive_system_service.cc
@@ -23,6 +23,7 @@
#include "chrome/browser/google_apis/drive_api_util.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 "chrome/browser/prefs/pref_service.h"
#include "chrome/browser/profiles/profile.h"
#include "chrome/browser/profiles/profile_dependency_manager.h"
@@ -365,10 +366,12 @@ ProfileKeyedService* DriveSystemServiceFactory::BuildServiceInstanceFor(
google_apis::DriveServiceInterface* drive_service = g_test_drive_service;
g_test_drive_service = NULL;
if (!drive_service) {
- if (google_apis::util::IsDriveV2ApiEnabled())
+ if (google_apis::util::IsDriveV2ApiEnabled()) {
drive_service = new DriveAPIService();
- else
- drive_service = new google_apis::GDataWapiService();
+ } else {
+ drive_service = new google_apis::GDataWapiService(
+ GURL(google_apis::GDataWapiUrlGenerator::kBaseUrlForProduction));
+ }
}
FilePath cache_root =
« no previous file with comments | « no previous file | chrome/browser/google_apis/gdata_wapi_service.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698