summaryrefslogtreecommitdiffstats
path: root/chrome/browser/autofill/autofill_download.cc
diff options
context:
space:
mode:
authorisherman@chromium.org <isherman@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-02-05 05:53:57 +0000
committerisherman@chromium.org <isherman@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-02-05 05:53:57 +0000
commit6b00cabd15cfff05f5f13bbcecba9b47c9bcdede (patch)
treeda71869e5b9f053bf8acbf2e4f7255fa90b247c2 /chrome/browser/autofill/autofill_download.cc
parentd5692bd16a1d58aef8a877265d25558ae0db6467 (diff)
downloadchromium_src-6b00cabd15cfff05f5f13bbcecba9b47c9bcdede.zip
chromium_src-6b00cabd15cfff05f5f13bbcecba9b47c9bcdede.tar.gz
chromium_src-6b00cabd15cfff05f5f13bbcecba9b47c9bcdede.tar.bz2
Enable AutoFill crowdsourcing for Chromium builds as well.
BUG=71869 TEST=none Review URL: http://codereview.chromium.org/6246100 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@73921 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/autofill/autofill_download.cc')
-rw-r--r--chrome/browser/autofill/autofill_download.cc16
1 files changed, 1 insertions, 15 deletions
diff --git a/chrome/browser/autofill/autofill_download.cc b/chrome/browser/autofill/autofill_download.cc
index f2011ef..4211a80 100644
--- a/chrome/browser/autofill/autofill_download.cc
+++ b/chrome/browser/autofill/autofill_download.cc
@@ -17,19 +17,11 @@
#include "chrome/common/pref_names.h"
#include "net/http/http_response_headers.h"
-#define DISABLED_REQUEST_URL "http://disabled"
-
-#if defined(GOOGLE_CHROME_BUILD)
#define AUTO_FILL_QUERY_SERVER_REQUEST_URL \
"http://toolbarqueries.clients.google.com:80/tbproxy/af/query"
#define AUTO_FILL_UPLOAD_SERVER_REQUEST_URL \
"http://toolbarqueries.clients.google.com:80/tbproxy/af/upload"
#define AUTO_FILL_QUERY_SERVER_NAME_START_IN_HEADER "GFE/"
-#else
-#define AUTO_FILL_QUERY_SERVER_REQUEST_URL DISABLED_REQUEST_URL
-#define AUTO_FILL_UPLOAD_SERVER_REQUEST_URL DISABLED_REQUEST_URL
-#define AUTO_FILL_QUERY_SERVER_NAME_START_IN_HEADER "SOMESERVER/"
-#endif
namespace {
const size_t kMaxFormCacheSize = 16;
@@ -48,8 +40,7 @@ AutoFillDownloadManager::AutoFillDownloadManager(Profile* profile)
next_upload_request_(base::Time::Now()),
positive_upload_rate_(0),
negative_upload_rate_(0),
- fetcher_id_for_unittest_(0),
- is_testing_(false) {
+ fetcher_id_for_unittest_(0) {
// |profile_| could be NULL in some unit-tests.
if (profile_) {
PrefService* preferences = profile_->GetPrefs();
@@ -188,11 +179,6 @@ bool AutoFillDownloadManager::StartRequest(
else
request_url = AUTO_FILL_UPLOAD_SERVER_REQUEST_URL;
- if (!request_url.compare(DISABLED_REQUEST_URL) && !is_testing_) {
- // We have it disabled - return true as if it succeeded, but do nothing.
- return true;
- }
-
// Id is ignored for regular chrome, in unit test id's for fake fetcher
// factory will be 0, 1, 2, ...
URLFetcher *fetcher = URLFetcher::Create(fetcher_id_for_unittest_++,