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

Unified Diff: chrome/browser/safe_browsing/protocol_manager.cc

Issue 10908245: unchecked_malloc() for Skia on OSX. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Back out EBADF, allow syslog logging from sandbox. 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
Index: chrome/browser/safe_browsing/protocol_manager.cc
diff --git a/chrome/browser/safe_browsing/protocol_manager.cc b/chrome/browser/safe_browsing/protocol_manager.cc
index 1303518b4c7c33e1f4fc1c0ab29c7ac9a3c68278..b8f3cacdcdd308bef0eccaf65c244ec224912806 100644
--- a/chrome/browser/safe_browsing/protocol_manager.cc
+++ b/chrome/browser/safe_browsing/protocol_manager.cc
@@ -20,7 +20,6 @@
#include "chrome/common/chrome_version_info.h"
#include "chrome/common/env_vars.h"
#include "content/public/browser/browser_thread.h"
-#include "google_apis/google_api_keys.h"
#include "net/base/escape.h"
#include "net/base/load_flags.h"
#include "net/url_request/url_fetcher.h"
@@ -652,11 +651,6 @@ std::string SafeBrowsingProtocolManager::ComposeUrl(
std::string url = base::StringPrintf("%s/%s?client=%s&appver=%s&pver=2.2",
prefix.c_str(), method.c_str(),
client_name.c_str(), version.c_str());
- std::string api_key = google_apis::GetAPIKey();
- if (!api_key.empty()) {
- base::StringAppendF(&url, "&key=%s",
- net::EscapeQueryParamValue(api_key, true).c_str());
- }
if (!additional_query.empty()) {
DCHECK(url.find("?") != std::string::npos);
url.append("&");
@@ -720,11 +714,6 @@ GURL SafeBrowsingProtocolManager::MalwareDetailsUrl() const {
url_prefix_.c_str(),
client_name_.c_str(),
version_.c_str());
- std::string api_key = google_apis::GetAPIKey();
- if (!api_key.empty()) {
- base::StringAppendF(&url, "&key=%s",
- net::EscapeQueryParamValue(api_key, true).c_str());
- }
return GURL(url);
}

Powered by Google App Engine
This is Rietveld 408576698