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

Unified Diff: chrome/browser/google_apis/gdata_wapi_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
Index: chrome/browser/google_apis/gdata_wapi_service.cc
diff --git a/chrome/browser/google_apis/gdata_wapi_service.cc b/chrome/browser/google_apis/gdata_wapi_service.cc
index 8f6b22b4780d4d29faef82912f1982807637b5c6..fc7849bf894143a465a722434f72427c3e6f2f55 100644
--- a/chrome/browser/google_apis/gdata_wapi_service.cc
+++ b/chrome/browser/google_apis/gdata_wapi_service.cc
@@ -66,10 +66,9 @@ const char kDriveAppsScope[] = "https://www.googleapis.com/auth/drive.apps";
} // namespace
-GDataWapiService::GDataWapiService()
+GDataWapiService::GDataWapiService(const GURL& base_url)
: runner_(NULL),
- // TODO(satorux): The base URL should be injected.
- url_generator_(GURL(GDataWapiUrlGenerator::kBaseUrlForProduction)) {
+ url_generator_(base_url) {
DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI));
}
« no previous file with comments | « chrome/browser/google_apis/gdata_wapi_service.h ('k') | chrome/browser/google_apis/gdata_wapi_service_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698