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

Side by Side Diff: components/password_manager/core/browser/affiliated_match_helper.cc

Issue 1551433002: Switch to standard integer types in components/, part 3 of 4. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: more Created 4 years, 12 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
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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/password_manager/core/browser/affiliated_match_helper.h" 5 #include "components/password_manager/core/browser/affiliated_match_helper.h"
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "base/callback.h" 8 #include "base/callback.h"
9 #include "base/single_thread_task_runner.h" 9 #include "base/single_thread_task_runner.h"
10 #include "base/thread_task_runner_handle.h" 10 #include "base/thread_task_runner_handle.h"
(...skipping 12 matching lines...) Expand all
23 if (form.scheme != autofill::PasswordForm::SCHEME_HTML) 23 if (form.scheme != autofill::PasswordForm::SCHEME_HTML)
24 return false; 24 return false;
25 25
26 *facet_uri = FacetURI::FromPotentiallyInvalidSpec(form.signon_realm); 26 *facet_uri = FacetURI::FromPotentiallyInvalidSpec(form.signon_realm);
27 return facet_uri->IsValidAndroidFacetURI(); 27 return facet_uri->IsValidAndroidFacetURI();
28 } 28 }
29 29
30 } // namespace 30 } // namespace
31 31
32 // static 32 // static
33 const int64 AffiliatedMatchHelper::kInitializationDelayOnStartupInSeconds; 33 const int64_t AffiliatedMatchHelper::kInitializationDelayOnStartupInSeconds;
34 34
35 AffiliatedMatchHelper::AffiliatedMatchHelper( 35 AffiliatedMatchHelper::AffiliatedMatchHelper(
36 PasswordStore* password_store, 36 PasswordStore* password_store,
37 scoped_ptr<AffiliationService> affiliation_service) 37 scoped_ptr<AffiliationService> affiliation_service)
38 : password_store_(password_store), 38 : password_store_(password_store),
39 task_runner_for_waiting_(base::ThreadTaskRunnerHandle::Get()), 39 task_runner_for_waiting_(base::ThreadTaskRunnerHandle::Get()),
40 affiliation_service_(affiliation_service.Pass()), 40 affiliation_service_(affiliation_service.Pass()),
41 weak_ptr_factory_(this) { 41 weak_ptr_factory_(this) {
42 } 42 }
43 43
(...skipping 133 matching lines...) Expand 10 before | Expand all | Expand 10 after
177 void AffiliatedMatchHelper::OnGetPasswordStoreResults( 177 void AffiliatedMatchHelper::OnGetPasswordStoreResults(
178 ScopedVector<autofill::PasswordForm> results) { 178 ScopedVector<autofill::PasswordForm> results) {
179 for (autofill::PasswordForm* form : results) { 179 for (autofill::PasswordForm* form : results) {
180 FacetURI facet_uri; 180 FacetURI facet_uri;
181 if (IsAndroidApplicationCredential(*form, &facet_uri)) 181 if (IsAndroidApplicationCredential(*form, &facet_uri))
182 affiliation_service_->Prefetch(facet_uri, base::Time::Max()); 182 affiliation_service_->Prefetch(facet_uri, base::Time::Max());
183 } 183 }
184 } 184 }
185 185
186 } // namespace password_manager 186 } // namespace password_manager
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698