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

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

Issue 4999003: Fix a small typo in AutoFillDownloadManager::OnURLFetchComplete.... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 10 years, 1 month 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 | no next file » | 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 #include <vector>
8 9
9 #include "base/logging.h" 10 #include "base/logging.h"
10 #include "base/rand_util.h" 11 #include "base/rand_util.h"
11 #include "base/stl_util-inl.h" 12 #include "base/stl_util-inl.h"
12 #include "chrome/browser/autofill/autofill_xml_parser.h" 13 #include "chrome/browser/autofill/autofill_xml_parser.h"
13 #include "chrome/browser/prefs/pref_service.h" 14 #include "chrome/browser/prefs/pref_service.h"
14 #include "chrome/browser/profile.h" 15 #include "chrome/browser/profile.h"
15 #include "chrome/common/pref_names.h" 16 #include "chrome/common/pref_names.h"
16 #include "net/http/http_response_headers.h" 17 #include "net/http/http_response_headers.h"
17 18
(...skipping 210 matching lines...) Expand 10 before | Expand all | Expand 10 after
228 if (back_off) { 229 if (back_off) {
229 base::Time back_off_time(base::Time::Now() + source->backoff_delay()); 230 base::Time back_off_time(base::Time::Now() + source->backoff_delay());
230 if (it->second.request_type == AutoFillDownloadManager::REQUEST_QUERY) { 231 if (it->second.request_type == AutoFillDownloadManager::REQUEST_QUERY) {
231 next_query_request_ = back_off_time; 232 next_query_request_ = back_off_time;
232 } else { 233 } else {
233 next_upload_request_ = back_off_time; 234 next_upload_request_ = back_off_time;
234 } 235 }
235 } 236 }
236 237
237 LOG(WARNING) << "AutoFillDownloadManager: " << type_of_request 238 LOG(WARNING) << "AutoFillDownloadManager: " << type_of_request
238 << " request has failed with response" << response_code; 239 << " request has failed with response " << response_code;
239 if (observer_) { 240 if (observer_) {
240 observer_->OnHeuristicsRequestError(it->second.form_signatures[0], 241 observer_->OnHeuristicsRequestError(it->second.form_signatures[0],
241 it->second.request_type, 242 it->second.request_type,
242 response_code); 243 response_code);
243 } 244 }
244 } else { 245 } else {
245 VLOG(1) << "AutoFillDownloadManager: " << type_of_request 246 VLOG(1) << "AutoFillDownloadManager: " << type_of_request
246 << " request has succeeded"; 247 << " request has succeeded";
247 if (it->second.request_type == AutoFillDownloadManager::REQUEST_QUERY) { 248 if (it->second.request_type == AutoFillDownloadManager::REQUEST_QUERY) {
248 if (observer_) 249 if (observer_)
(...skipping 10 matching lines...) Expand all
259 SetNegativeUploadRate(new_negative_upload_rate); 260 SetNegativeUploadRate(new_negative_upload_rate);
260 } 261 }
261 262
262 if (observer_) 263 if (observer_)
263 observer_->OnUploadedAutoFillHeuristics(it->second.form_signatures[0]); 264 observer_->OnUploadedAutoFillHeuristics(it->second.form_signatures[0]);
264 } 265 }
265 } 266 }
266 delete it->first; 267 delete it->first;
267 url_fetchers_.erase(it); 268 url_fetchers_.erase(it);
268 } 269 }
269
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698