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

Unified Diff: chrome/browser/intents/cws_intents_registry.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
Index: chrome/browser/intents/cws_intents_registry.cc
diff --git a/chrome/browser/intents/cws_intents_registry.cc b/chrome/browser/intents/cws_intents_registry.cc
index ee238b67518273915af0c956133ac5fb4e03d53b..42114995576bbd21282bd195088cd2804e5cdf76 100644
--- a/chrome/browser/intents/cws_intents_registry.cc
+++ b/chrome/browser/intents/cws_intents_registry.cc
@@ -14,10 +14,10 @@
#include "chrome/common/extensions/message_bundle.h"
#include "chrome/browser/net/chrome_url_request_context.h"
#include "chrome/browser/webdata/web_data_service.h"
-#include "chrome/common/net/url_util.h"
#include "google_apis/google_api_keys.h"
#include "net/base/load_flags.h"
#include "net/base/mime_util.h"
+#include "net/base/url_util.h"
#include "net/url_request/url_fetcher.h"
namespace {
@@ -225,16 +225,11 @@ void CWSIntentsRegistry::GetIntentServices(const string16& action,
GURL CWSIntentsRegistry::BuildQueryURL(const string16& action,
const string16& type) {
GURL request(kCWSIntentServiceURL);
- request = chrome_common_net::AppendQueryParameter(request, "intent",
- UTF16ToUTF8(action));
- request = chrome_common_net::AppendQueryParameter(request, "mime_types",
- UTF16ToUTF8(type));
- request = chrome_common_net::AppendQueryParameter(request, "start_index",
- "0");
- request = chrome_common_net::AppendQueryParameter(request, "num_results",
- kMaxSuggestions);
- request = chrome_common_net::AppendQueryParameter(request, "key",
- google_apis::GetAPIKey());
+ request = net::AppendQueryParameter(request, "intent", UTF16ToUTF8(action));
+ request = net::AppendQueryParameter(request, "mime_types", UTF16ToUTF8(type));
+ request = net::AppendQueryParameter(request, "start_index", "0");
+ request = net::AppendQueryParameter(request, "num_results", kMaxSuggestions);
+ request = net::AppendQueryParameter(request, "key", google_apis::GetAPIKey());
return request;
}
« no previous file with comments | « chrome/browser/google_apis/gdata_wapi_url_generator.cc ('k') | chrome/browser/net/gaia/gaia_oauth_fetcher.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698