| OLD | NEW |
| 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 #import "ios/chrome/browser/passwords/credential_manager.h" | 5 #import "ios/chrome/browser/passwords/credential_manager.h" |
| 6 | 6 |
| 7 #include <utility> | 7 #include <utility> |
| 8 | 8 |
| 9 #include "base/ios/ios_util.h" | |
| 10 #import "base/ios/weak_nsobject.h" | 9 #import "base/ios/weak_nsobject.h" |
| 11 #include "base/mac/bind_objc_block.h" | 10 #include "base/mac/bind_objc_block.h" |
| 12 #include "base/memory/scoped_vector.h" | 11 #include "base/memory/scoped_vector.h" |
| 13 #include "base/strings/sys_string_conversions.h" | 12 #include "base/strings/sys_string_conversions.h" |
| 14 #include "base/threading/thread_task_runner_handle.h" | 13 #include "base/threading/thread_task_runner_handle.h" |
| 15 #include "components/password_manager/core/browser/password_store_consumer.h" | 14 #include "components/password_manager/core/browser/password_store_consumer.h" |
| 16 #include "components/password_manager/core/common/credential_manager_types.h" | 15 #include "components/password_manager/core/common/credential_manager_types.h" |
| 17 #include "components/password_manager/core/common/password_manager_pref_names.h" | 16 #include "components/password_manager/core/common/password_manager_pref_names.h" |
| 18 #import "ios/chrome/browser/passwords/js_credential_manager.h" | 17 #import "ios/chrome/browser/passwords/js_credential_manager.h" |
| 19 #import "ios/web/public/url_scheme_util.h" | 18 #import "ios/web/public/url_scheme_util.h" |
| (...skipping 357 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 377 bool CredentialManager::GetUrlWithAbsoluteTrust(GURL* page_url) { | 376 bool CredentialManager::GetUrlWithAbsoluteTrust(GURL* page_url) { |
| 378 web::URLVerificationTrustLevel trust_level = | 377 web::URLVerificationTrustLevel trust_level = |
| 379 web::URLVerificationTrustLevel::kNone; | 378 web::URLVerificationTrustLevel::kNone; |
| 380 const GURL possibly_untrusted_url(web_state()->GetCurrentURL(&trust_level)); | 379 const GURL possibly_untrusted_url(web_state()->GetCurrentURL(&trust_level)); |
| 381 if (trust_level == web::URLVerificationTrustLevel::kAbsolute) { | 380 if (trust_level == web::URLVerificationTrustLevel::kAbsolute) { |
| 382 *page_url = possibly_untrusted_url; | 381 *page_url = possibly_untrusted_url; |
| 383 return true; | 382 return true; |
| 384 } | 383 } |
| 385 return false; | 384 return false; |
| 386 } | 385 } |
| OLD | NEW |