OLD | NEW |
(Empty) | |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #include "chrome/browser/password_manager/password_manager_util.h" |
| 6 |
| 7 #include "base/strings/string_util.h" |
| 8 |
| 9 namespace PasswordManagerUtil { |
| 10 |
| 11 bool IsDomainNameMonitored(const std::string& url_host, |
| 12 std::string& domain_name) { |
| 13 domain_name.clear(); |
| 14 |
| 15 for (std::string::size_type i = 0; i < kMonitoredDomainNameLength; ++i) { |
| 16 if (EndsWith(url_host, kMonitoredDomainName[i], true)) { |
| 17 domain_name = kMonitoredDomainName[i]; |
| 18 return true; |
| 19 } |
| 20 } |
| 21 return false; |
| 22 } |
| 23 |
| 24 } // namespace PasswordManagerUtil |
OLD | NEW |