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

Unified Diff: chrome/browser/intents/cws_intents_registry.cc

Issue 10911331: Using API keys for requests to Chrome Web Store. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Remove the internal version of intents/api_key. Created 8 years, 3 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/intents/api_key.cc ('k') | chrome/chrome_browser.gypi » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 96fd943aa1d8c9a30c4234283ffee7c4b484aa0e..ee238b67518273915af0c956133ac5fb4e03d53b 100644
--- a/chrome/browser/intents/cws_intents_registry.cc
+++ b/chrome/browser/intents/cws_intents_registry.cc
@@ -12,10 +12,10 @@
#include "base/utf_string_conversions.h"
#include "chrome/common/extensions/extension_l10n_util.h"
#include "chrome/common/extensions/message_bundle.h"
-#include "chrome/browser/intents/api_key.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/url_request/url_fetcher.h"
@@ -233,10 +233,8 @@ GURL CWSIntentsRegistry::BuildQueryURL(const string16& action,
"0");
request = chrome_common_net::AppendQueryParameter(request, "num_results",
kMaxSuggestions);
- if (web_intents::kApiKey[0]) {
- request = chrome_common_net::AppendQueryParameter(request, "key",
- web_intents::kApiKey);
- }
+ request = chrome_common_net::AppendQueryParameter(request, "key",
+ google_apis::GetAPIKey());
return request;
}
« no previous file with comments | « chrome/browser/intents/api_key.cc ('k') | chrome/chrome_browser.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698