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

Unified Diff: chrome/browser/google_apis/gdata_wapi_url_generator.cc

Issue 12069004: google_apis: Move AppendQueryParameter() etc. from common/net/url_util.h to net/base/url_util.h (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 11 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
« no previous file with comments | « chrome/browser/google_apis/gdata_wapi_service.cc ('k') | chrome/browser/intents/cws_intents_registry.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/google_apis/gdata_wapi_url_generator.cc
diff --git a/chrome/browser/google_apis/gdata_wapi_url_generator.cc b/chrome/browser/google_apis/gdata_wapi_url_generator.cc
index 8375b0c3abce5a5859e2f0fa53dd9cfe4345d63b..486bb0218d83b753c8ee4e339414a159d4bdbef4 100644
--- a/chrome/browser/google_apis/gdata_wapi_url_generator.cc
+++ b/chrome/browser/google_apis/gdata_wapi_url_generator.cc
@@ -6,9 +6,9 @@
#include "base/logging.h"
#include "base/stringprintf.h"
-#include "chrome/common/net/url_util.h"
#include "googleurl/src/gurl.h"
#include "net/base/escape.h"
+#include "net/base/url_util.h"
namespace google_apis {
namespace {
@@ -66,17 +66,15 @@ const char GDataWapiUrlGenerator::kBaseUrlForProduction[] =
// static
GURL GDataWapiUrlGenerator::AddStandardUrlParams(const GURL& url) {
- GURL result =
- chrome_common_net::AppendOrReplaceQueryParameter(url, "v", "3");
- result =
- chrome_common_net::AppendOrReplaceQueryParameter(result, "alt", "json");
+ GURL result = net::AppendOrReplaceQueryParameter(url, "v", "3");
+ result = net::AppendOrReplaceQueryParameter(result, "alt", "json");
return result;
}
// static
GURL GDataWapiUrlGenerator::AddMetadataUrlParams(const GURL& url) {
GURL result = AddStandardUrlParams(url);
- result = chrome_common_net::AppendOrReplaceQueryParameter(
+ result = net::AppendOrReplaceQueryParameter(
result, "include-installed-apps", "true");
return result;
}
@@ -88,27 +86,22 @@ GURL GDataWapiUrlGenerator::AddFeedUrlParams(
int changestamp,
const std::string& search_string) {
GURL result = AddStandardUrlParams(url);
- result = chrome_common_net::AppendOrReplaceQueryParameter(
- result,
- "showfolders",
- "true");
- result = chrome_common_net::AppendOrReplaceQueryParameter(
+ result = net::AppendOrReplaceQueryParameter(result, "showfolders", "true");
+ result = net::AppendOrReplaceQueryParameter(
result,
"max-results",
base::StringPrintf("%d", num_items_to_fetch));
- result = chrome_common_net::AppendOrReplaceQueryParameter(
+ result = net::AppendOrReplaceQueryParameter(
result, "include-installed-apps", "true");
if (changestamp) {
- result = chrome_common_net::AppendQueryParameter(
- result,
- "start-index",
- base::StringPrintf("%d", changestamp));
+ result = net::AppendQueryParameter(result,
+ "start-index",
+ base::StringPrintf("%d", changestamp));
}
if (!search_string.empty()) {
- result = chrome_common_net::AppendOrReplaceQueryParameter(
- result, "q", search_string);
+ result = net::AppendOrReplaceQueryParameter(result, "q", search_string);
}
return result;
}
« no previous file with comments | « chrome/browser/google_apis/gdata_wapi_service.cc ('k') | chrome/browser/intents/cws_intents_registry.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698