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

Side by Side Diff: chrome/browser/autofill/autofill_download.cc

Issue 3467017: Fix typo in a function name. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 10 years, 2 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | chrome/common/net/url_fetcher.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "chrome/browser/autofill/autofill_download.h" 5 #include "chrome/browser/autofill/autofill_download.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 8
9 #include "base/logging.h" 9 #include "base/logging.h"
10 #include "base/rand_util.h" 10 #include "base/rand_util.h"
(...skipping 158 matching lines...) Expand 10 before | Expand all | Expand 10 after
169 return true; 169 return true;
170 } 170 }
171 171
172 // Id is ignored for regular chrome, in unit test id's for fake fetcher 172 // Id is ignored for regular chrome, in unit test id's for fake fetcher
173 // factory will be 0, 1, 2, ... 173 // factory will be 0, 1, 2, ...
174 URLFetcher *fetcher = URLFetcher::Create(fetcher_id_for_unittest_++, 174 URLFetcher *fetcher = URLFetcher::Create(fetcher_id_for_unittest_++,
175 GURL(request_url), 175 GURL(request_url),
176 URLFetcher::POST, 176 URLFetcher::POST,
177 this); 177 this);
178 url_fetchers_[fetcher] = request_data; 178 url_fetchers_[fetcher] = request_data;
179 fetcher->set_automatcally_retry_on_5xx(false); 179 fetcher->set_automatically_retry_on_5xx(false);
180 fetcher->set_request_context(Profile::GetDefaultRequestContext()); 180 fetcher->set_request_context(Profile::GetDefaultRequestContext());
181 fetcher->set_upload_data("text/plain", form_xml); 181 fetcher->set_upload_data("text/plain", form_xml);
182 fetcher->Start(); 182 fetcher->Start();
183 return true; 183 return true;
184 } 184 }
185 185
186 void AutoFillDownloadManager::OnURLFetchComplete(const URLFetcher* source, 186 void AutoFillDownloadManager::OnURLFetchComplete(const URLFetcher* source,
187 const GURL& url, 187 const GURL& url,
188 const URLRequestStatus& status, 188 const URLRequestStatus& status,
189 int response_code, 189 int response_code,
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after
259 } 259 }
260 260
261 if (observer_) 261 if (observer_)
262 observer_->OnUploadedAutoFillHeuristics(it->second.form_signatures[0]); 262 observer_->OnUploadedAutoFillHeuristics(it->second.form_signatures[0]);
263 } 263 }
264 } 264 }
265 delete it->first; 265 delete it->first;
266 url_fetchers_.erase(it); 266 url_fetchers_.erase(it);
267 } 267 }
268 268
OLDNEW
« no previous file with comments | « no previous file | chrome/common/net/url_fetcher.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698