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

Side by Side Diff: components/autofill/core/browser/autofill_download_manager.cc

Issue 2558913003: Restrict transmission of external exp ids to signed in users. (Closed)
Patch Set: Created 4 years 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
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 "components/autofill/core/browser/autofill_download_manager.h" 5 #include "components/autofill/core/browser/autofill_download_manager.h"
6 6
7 #include <utility> 7 #include <utility>
8 8
9 #include "base/bind.h" 9 #include "base/bind.h"
10 #include "base/location.h" 10 #include "base/location.h"
(...skipping 229 matching lines...) Expand 10 before | Expand all | Expand 10 after
240 fetcher, data_use_measurement::DataUseUserData::AUTOFILL); 240 fetcher, data_use_measurement::DataUseUserData::AUTOFILL);
241 url_fetchers_[fetcher] = 241 url_fetchers_[fetcher] =
242 std::make_pair(std::move(owned_fetcher), request_data); 242 std::make_pair(std::move(owned_fetcher), request_data);
243 fetcher->SetAutomaticallyRetryOn5xx(false); 243 fetcher->SetAutomaticallyRetryOn5xx(false);
244 fetcher->SetRequestContext(request_context); 244 fetcher->SetRequestContext(request_context);
245 fetcher->SetUploadData("text/proto", request_data.payload); 245 fetcher->SetUploadData("text/proto", request_data.payload);
246 fetcher->SetLoadFlags(net::LOAD_DO_NOT_SAVE_COOKIES | 246 fetcher->SetLoadFlags(net::LOAD_DO_NOT_SAVE_COOKIES |
247 net::LOAD_DO_NOT_SEND_COOKIES); 247 net::LOAD_DO_NOT_SEND_COOKIES);
248 // Add Chrome experiment state to the request headers. 248 // Add Chrome experiment state to the request headers.
249 net::HttpRequestHeaders headers; 249 net::HttpRequestHeaders headers;
250 variations::AppendVariationHeaders( 250 variations::AppendVariationHeaders(fetcher->GetOriginalURL(),
Mathieu 2016/12/08 18:04:59 Could we check whether the user is signed in, here
Alexei Svitkine (slow) 2016/12/08 20:27:33 It shouldn't affect the experiments coming from th
Mathieu 2016/12/08 20:37:26 Thanks for the clarification! Could we add a comme
Alexei Svitkine (slow) 2016/12/09 15:53:57 Done.
251 fetcher->GetOriginalURL(), driver_->IsOffTheRecord(), false, &headers); 251 driver_->IsOffTheRecord(), false, false,
252 &headers);
252 fetcher->SetExtraRequestHeaders(headers.ToString()); 253 fetcher->SetExtraRequestHeaders(headers.ToString());
253 fetcher->Start(); 254 fetcher->Start();
254 255
255 return true; 256 return true;
256 } 257 }
257 258
258 void AutofillDownloadManager::CacheQueryRequest( 259 void AutofillDownloadManager::CacheQueryRequest(
259 const std::vector<std::string>& forms_in_query, 260 const std::vector<std::string>& forms_in_query,
260 const std::string& query_data) { 261 const std::string& query_data) {
261 std::string signature = GetCombinedSignature(forms_in_query); 262 std::string signature = GetCombinedSignature(forms_in_query);
(...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after
346 it->second.second.form_signatures); 347 it->second.second.form_signatures);
347 } else { 348 } else {
348 VLOG(1) << "AutofillDownloadManager: upload request has succeeded."; 349 VLOG(1) << "AutofillDownloadManager: upload request has succeeded.";
349 observer_->OnUploadedPossibleFieldTypes(); 350 observer_->OnUploadedPossibleFieldTypes();
350 } 351 }
351 } 352 }
352 url_fetchers_.erase(it); 353 url_fetchers_.erase(it);
353 } 354 }
354 355
355 } // namespace autofill 356 } // namespace autofill
OLDNEW
« no previous file with comments | « chrome/browser/loader/chrome_resource_dispatcher_host_delegate.cc ('k') | components/feedback/feedback_uploader_chrome.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698