| 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 #include <components/password_manager/core/browser/password_ui_utils.h> | 5 #include "components/password_manager/core/browser/password_ui_utils.h" |
| 6 | 6 |
| 7 #include <string> | 7 #include <string> |
| 8 | 8 |
| 9 #include "base/strings/string_util.h" | 9 #include "base/strings/string_util.h" |
| 10 #include "base/strings/utf_string_conversions.h" | 10 #include "base/strings/utf_string_conversions.h" |
| 11 #include "components/autofill/core/common/password_form.h" | 11 #include "components/autofill/core/common/password_form.h" |
| 12 #include "components/password_manager/core/browser/affiliation_utils.h" | 12 #include "components/password_manager/core/browser/affiliation_utils.h" |
| 13 #include "components/url_formatter/elide_url.h" | 13 #include "components/url_formatter/elide_url.h" |
| 14 | 14 |
| 15 namespace password_manager { | 15 namespace password_manager { |
| (...skipping 27 matching lines...) Expand all Loading... |
| 43 result.remove_prefix(prefix.length()); | 43 result.remove_prefix(prefix.length()); |
| 44 break; // Remove only one prefix (e.g. www.mobile.de). | 44 break; // Remove only one prefix (e.g. www.mobile.de). |
| 45 } | 45 } |
| 46 } | 46 } |
| 47 | 47 |
| 48 return result.find('.') != base::StringPiece::npos ? result.as_string() | 48 return result.find('.') != base::StringPiece::npos ? result.as_string() |
| 49 : original; | 49 : original; |
| 50 } | 50 } |
| 51 | 51 |
| 52 } // namespace password_manager | 52 } // namespace password_manager |
| OLD | NEW |